[2025-02-06 00:00:06] Production.INFO: next invoice date [2025-02-06 00:00:06] Production.INFO: 2025-03-06 [2025-02-06 00:00:06] Production.INFO: getdaysdiff [2025-02-06 00:00:06] Production.INFO: +28 [2025-02-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (154,11,1,28,28,'RMScheduler',2025-02-06 00:00:06,1,0,,,0) [2025-02-06 00:00:06] Production.INFO: next invoice date [2025-02-06 00:00:06] Production.INFO: 2025-03-06 [2025-02-06 00:00:06] Production.INFO: getdaysdiff [2025-02-06 00:00:06] Production.INFO: +28 [2025-02-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (207,11,1,28,28,'RMScheduler',2025-02-06 00:00:06,0,0,,,0) [2025-02-06 00:00:06] Production.INFO: next invoice date [2025-02-06 00:00:06] Production.INFO: 2025-03-06 [2025-02-06 00:00:06] Production.INFO: getdaysdiff [2025-02-06 00:00:06] Production.INFO: +28 [2025-02-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (207,13,2,28,28,'RMScheduler',2025-02-06 00:00:06,0,0,,,0) [2025-02-06 00:00:06] Production.INFO: next invoice date [2025-02-06 00:00:06] Production.INFO: 2025-03-06 [2025-02-06 00:00:06] Production.INFO: getdaysdiff [2025-02-06 00:00:06] Production.INFO: +28 [2025-02-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (206,11,1,28,28,'RMScheduler',2025-02-06 00:00:06,0,0,,,0) [2025-02-06 00:00:06] Production.INFO: next invoice date [2025-02-06 00:00:06] Production.INFO: 2025-03-06 [2025-02-06 00:00:06] Production.INFO: getdaysdiff [2025-02-06 00:00:06] Production.INFO: +28 [2025-02-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (206,13,2,28,28,'RMScheduler',2025-02-06 00:00:06,0,0,,,0) [2025-02-06 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:00:07 [end_date_ymd] => 2025-02-06 00:00:07 [RateCDR] => 1 ) [2025-02-06 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-05 21:00:07' and `end` < '2025-02-06 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-06 00:00:22] Production.INFO: count ==787 [2025-02-06 00:00:22] Production.ERROR: pbx CDR StartTime 2025-02-05 21:00:07 - End Time 2025-02-06 00:00:07 [2025-02-06 00:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411225', 'tblTempUsageDetail_20' ) start [2025-02-06 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411225', 'tblTempUsageDetail_20' ) end [2025-02-06 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411225', 'tblTempVendorCDR_20' ) start [2025-02-06 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411225', 'tblTempVendorCDR_20' ) end [2025-02-06 00:00:22] Production.INFO: ProcessCDR(1,14411225,1,1,2) [2025-02-06 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411225', 'tblTempUsageDetail_20' ) start [2025-02-06 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411225', 'tblTempUsageDetail_20' ) end [2025-02-06 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:00:26] Production.INFO: ==7367== Releasing lock... [2025-02-06 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:00:26] Production.INFO: 35 MB #Memory Used# [2025-02-06 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:01:05 [end_date_ymd] => 2025-02-06 00:01:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:01:05' and `end` < '2025-02-06 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-06 00:01:25] Production.INFO: count ==767 [2025-02-06 00:01:25] Production.ERROR: pbx CDR StartTime 2025-02-05 21:01:05 - End Time 2025-02-06 00:01:05 [2025-02-06 00:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411230', 'tblTempUsageDetail_20' ) start [2025-02-06 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411230', 'tblTempUsageDetail_20' ) end [2025-02-06 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411230', 'tblTempVendorCDR_20' ) start [2025-02-06 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411230', 'tblTempVendorCDR_20' ) end [2025-02-06 00:01:25] Production.INFO: ProcessCDR(1,14411230,1,1,2) [2025-02-06 00:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411230', 'tblTempUsageDetail_20' ) start [2025-02-06 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411230', 'tblTempUsageDetail_20' ) end [2025-02-06 00:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:01:28] Production.INFO: ==7478== Releasing lock... [2025-02-06 00:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:01:28] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:02:05 [end_date_ymd] => 2025-02-06 00:02:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:02:05' and `end` < '2025-02-06 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-06 00:02:35] Production.INFO: count ==288 [2025-02-06 00:02:35] Production.ERROR: pbx CDR StartTime 2025-02-05 21:02:05 - End Time 2025-02-06 00:02:05 [2025-02-06 00:02:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411235', 'tblTempUsageDetail_20' ) start [2025-02-06 00:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411235', 'tblTempUsageDetail_20' ) end [2025-02-06 00:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411235', 'tblTempVendorCDR_20' ) start [2025-02-06 00:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411235', 'tblTempVendorCDR_20' ) end [2025-02-06 00:02:35] Production.INFO: ProcessCDR(1,14411235,1,1,2) [2025-02-06 00:02:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:02:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:02:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:02:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411235', 'tblTempUsageDetail_20' ) start [2025-02-06 00:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411235', 'tblTempUsageDetail_20' ) end [2025-02-06 00:02:38] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:02:38] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:02:38] Production.INFO: ==7579== Releasing lock... [2025-02-06 00:02:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:02:38] Production.INFO: 32.5 MB #Memory Used# [2025-02-06 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:03:05 [end_date_ymd] => 2025-02-06 00:03:05 [RateCDR] => 1 ) [2025-02-06 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:03:05' and `end` < '2025-02-06 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:03:32] Production.INFO: count ==291 [2025-02-06 00:03:32] Production.ERROR: pbx CDR StartTime 2025-02-05 21:03:05 - End Time 2025-02-06 00:03:05 [2025-02-06 00:03:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411240', 'tblTempUsageDetail_20' ) start [2025-02-06 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411240', 'tblTempUsageDetail_20' ) end [2025-02-06 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411240', 'tblTempVendorCDR_20' ) start [2025-02-06 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411240', 'tblTempVendorCDR_20' ) end [2025-02-06 00:03:32] Production.INFO: ProcessCDR(1,14411240,1,1,2) [2025-02-06 00:03:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:03:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:03:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411240', 'tblTempUsageDetail_20' ) start [2025-02-06 00:03:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411240', 'tblTempUsageDetail_20' ) end [2025-02-06 00:03:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:03:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:03:36] Production.INFO: ==7677== Releasing lock... [2025-02-06 00:03:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:03:36] Production.INFO: 33 MB #Memory Used# [2025-02-06 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:04:06 [end_date_ymd] => 2025-02-06 00:04:06 [RateCDR] => 1 ) [2025-02-06 00: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-05 21:04:06' and `end` < '2025-02-06 00: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-06 00:04:33] Production.INFO: count ==294 [2025-02-06 00:04:33] Production.ERROR: pbx CDR StartTime 2025-02-05 21:04:06 - End Time 2025-02-06 00:04:06 [2025-02-06 00:04:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411245', 'tblTempUsageDetail_20' ) start [2025-02-06 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411245', 'tblTempUsageDetail_20' ) end [2025-02-06 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411245', 'tblTempVendorCDR_20' ) start [2025-02-06 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411245', 'tblTempVendorCDR_20' ) end [2025-02-06 00:04:33] Production.INFO: ProcessCDR(1,14411245,1,1,2) [2025-02-06 00:04:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411245', 'tblTempUsageDetail_20' ) start [2025-02-06 00:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411245', 'tblTempUsageDetail_20' ) end [2025-02-06 00:04:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:04:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:04:37] Production.INFO: ==7771== Releasing lock... [2025-02-06 00:04:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:04:37] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:05:05 [end_date_ymd] => 2025-02-06 00:05:05 [RateCDR] => 1 ) [2025-02-06 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:05:05' and `end` < '2025-02-06 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:05:33] Production.INFO: count ==293 [2025-02-06 00:05:33] Production.ERROR: pbx CDR StartTime 2025-02-05 21:05:05 - End Time 2025-02-06 00:05:05 [2025-02-06 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411250', 'tblTempUsageDetail_20' ) start [2025-02-06 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411250', 'tblTempUsageDetail_20' ) end [2025-02-06 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411250', 'tblTempVendorCDR_20' ) start [2025-02-06 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411250', 'tblTempVendorCDR_20' ) end [2025-02-06 00:05:33] Production.INFO: ProcessCDR(1,14411250,1,1,2) [2025-02-06 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411250', 'tblTempUsageDetail_20' ) start [2025-02-06 00:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411250', 'tblTempUsageDetail_20' ) end [2025-02-06 00:05:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:05:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:05:36] Production.INFO: ==7869== Releasing lock... [2025-02-06 00:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:05:36] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:06:06 [end_date_ymd] => 2025-02-06 00:06:06 [RateCDR] => 1 ) [2025-02-06 00:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:06:06' and `end` < '2025-02-06 00:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:06:28] Production.INFO: count ==292 [2025-02-06 00:06:28] Production.ERROR: pbx CDR StartTime 2025-02-05 21:06:06 - End Time 2025-02-06 00:06:06 [2025-02-06 00:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411255', 'tblTempUsageDetail_20' ) start [2025-02-06 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411255', 'tblTempUsageDetail_20' ) end [2025-02-06 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411255', 'tblTempVendorCDR_20' ) start [2025-02-06 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411255', 'tblTempVendorCDR_20' ) end [2025-02-06 00:06:28] Production.INFO: ProcessCDR(1,14411255,1,1,2) [2025-02-06 00:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411255', 'tblTempUsageDetail_20' ) start [2025-02-06 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411255', 'tblTempUsageDetail_20' ) end [2025-02-06 00:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:06:31] Production.INFO: ==7965== Releasing lock... [2025-02-06 00:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:06:31] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:07:05 [end_date_ymd] => 2025-02-06 00:07:05 [RateCDR] => 1 ) [2025-02-06 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:07:05' and `end` < '2025-02-06 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:07:24] Production.INFO: count ==292 [2025-02-06 00:07:24] Production.ERROR: pbx CDR StartTime 2025-02-05 21:07:05 - End Time 2025-02-06 00:07:05 [2025-02-06 00:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411260', 'tblTempUsageDetail_20' ) start [2025-02-06 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411260', 'tblTempUsageDetail_20' ) end [2025-02-06 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411260', 'tblTempVendorCDR_20' ) start [2025-02-06 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411260', 'tblTempVendorCDR_20' ) end [2025-02-06 00:07:24] Production.INFO: ProcessCDR(1,14411260,1,1,2) [2025-02-06 00:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411260', 'tblTempUsageDetail_20' ) start [2025-02-06 00:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411260', 'tblTempUsageDetail_20' ) end [2025-02-06 00:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:07:27] Production.INFO: ==8058== Releasing lock... [2025-02-06 00:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:07:27] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:08:05 [end_date_ymd] => 2025-02-06 00:08:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:08:05' and `end` < '2025-02-06 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-06 00:08:19] Production.INFO: count ==294 [2025-02-06 00:08:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:08:05 - End Time 2025-02-06 00:08:05 [2025-02-06 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411265', 'tblTempUsageDetail_20' ) start [2025-02-06 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411265', 'tblTempUsageDetail_20' ) end [2025-02-06 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411265', 'tblTempVendorCDR_20' ) start [2025-02-06 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411265', 'tblTempVendorCDR_20' ) end [2025-02-06 00:08:19] Production.INFO: ProcessCDR(1,14411265,1,1,2) [2025-02-06 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411265', 'tblTempUsageDetail_20' ) start [2025-02-06 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411265', 'tblTempUsageDetail_20' ) end [2025-02-06 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:08:22] Production.INFO: ==8153== Releasing lock... [2025-02-06 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:08:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:09:05 [end_date_ymd] => 2025-02-06 00:09:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:09:05' and `end` < '2025-02-06 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-06 00:09:26] Production.INFO: count ==297 [2025-02-06 00:09:26] Production.ERROR: pbx CDR StartTime 2025-02-05 21:09:05 - End Time 2025-02-06 00:09:05 [2025-02-06 00:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411270', 'tblTempUsageDetail_20' ) start [2025-02-06 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411270', 'tblTempUsageDetail_20' ) end [2025-02-06 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411270', 'tblTempVendorCDR_20' ) start [2025-02-06 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411270', 'tblTempVendorCDR_20' ) end [2025-02-06 00:09:26] Production.INFO: ProcessCDR(1,14411270,1,1,2) [2025-02-06 00:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411270', 'tblTempUsageDetail_20' ) start [2025-02-06 00:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411270', 'tblTempUsageDetail_20' ) end [2025-02-06 00:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:09:30] Production.INFO: ==8250== Releasing lock... [2025-02-06 00:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:09:30] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:10:05 [end_date_ymd] => 2025-02-06 00:10:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:10:05' and `end` < '2025-02-06 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-06 00:10:19] Production.INFO: count ==303 [2025-02-06 00:10:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:10:05 - End Time 2025-02-06 00:10:05 [2025-02-06 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411276', 'tblTempUsageDetail_20' ) start [2025-02-06 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411276', 'tblTempUsageDetail_20' ) end [2025-02-06 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411276', 'tblTempVendorCDR_20' ) start [2025-02-06 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411276', 'tblTempVendorCDR_20' ) end [2025-02-06 00:10:19] Production.INFO: ProcessCDR(1,14411276,1,1,2) [2025-02-06 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411276', 'tblTempUsageDetail_20' ) start [2025-02-06 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411276', 'tblTempUsageDetail_20' ) end [2025-02-06 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:10:22] Production.INFO: ==8344== Releasing lock... [2025-02-06 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:10:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:11:05 [end_date_ymd] => 2025-02-06 00:11:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:11:05' and `end` < '2025-02-06 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-06 00:11:45] Production.INFO: count ==325 [2025-02-06 00:11:45] Production.ERROR: pbx CDR StartTime 2025-02-05 21:11:05 - End Time 2025-02-06 00:11:05 [2025-02-06 00:11:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:11:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411281', 'tblTempUsageDetail_20' ) start [2025-02-06 00:11:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411281', 'tblTempUsageDetail_20' ) end [2025-02-06 00:11:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411281', 'tblTempVendorCDR_20' ) start [2025-02-06 00:11:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411281', 'tblTempVendorCDR_20' ) end [2025-02-06 00:11:45] Production.INFO: ProcessCDR(1,14411281,1,1,2) [2025-02-06 00:11:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:11:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:11:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:11:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:11:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411281', 'tblTempUsageDetail_20' ) start [2025-02-06 00:11:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411281', 'tblTempUsageDetail_20' ) end [2025-02-06 00:11:48] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:11:48] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:11:48] Production.INFO: ==8445== Releasing lock... [2025-02-06 00:11:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:11:48] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:12:04 [end_date_ymd] => 2025-02-06 00:12:04 [RateCDR] => 1 ) [2025-02-06 00:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:12:04' and `end` < '2025-02-06 00:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:12:27] Production.INFO: count ==324 [2025-02-06 00:12:27] Production.ERROR: pbx CDR StartTime 2025-02-05 21:12:04 - End Time 2025-02-06 00:12:04 [2025-02-06 00:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411286', 'tblTempUsageDetail_20' ) start [2025-02-06 00:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411286', 'tblTempUsageDetail_20' ) end [2025-02-06 00:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411286', 'tblTempVendorCDR_20' ) start [2025-02-06 00:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411286', 'tblTempVendorCDR_20' ) end [2025-02-06 00:12:27] Production.INFO: ProcessCDR(1,14411286,1,1,2) [2025-02-06 00:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411286', 'tblTempUsageDetail_20' ) start [2025-02-06 00:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411286', 'tblTempUsageDetail_20' ) end [2025-02-06 00:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:12:30] Production.INFO: ==8576== Releasing lock... [2025-02-06 00:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:12:30] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:13:05 [end_date_ymd] => 2025-02-06 00:13:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:13:05' and `end` < '2025-02-06 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-06 00:13:23] Production.INFO: count ==326 [2025-02-06 00:13:23] Production.ERROR: pbx CDR StartTime 2025-02-05 21:13:05 - End Time 2025-02-06 00:13:05 [2025-02-06 00:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411291', 'tblTempUsageDetail_20' ) start [2025-02-06 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411291', 'tblTempUsageDetail_20' ) end [2025-02-06 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411291', 'tblTempVendorCDR_20' ) start [2025-02-06 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411291', 'tblTempVendorCDR_20' ) end [2025-02-06 00:13:23] Production.INFO: ProcessCDR(1,14411291,1,1,2) [2025-02-06 00:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411291', 'tblTempUsageDetail_20' ) start [2025-02-06 00:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411291', 'tblTempUsageDetail_20' ) end [2025-02-06 00:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:13:26] Production.INFO: ==8664== Releasing lock... [2025-02-06 00:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:13:26] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:14:04 [end_date_ymd] => 2025-02-06 00:14:04 [RateCDR] => 1 ) [2025-02-06 00:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:14:04' and `end` < '2025-02-06 00:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:14:21] Production.INFO: count ==326 [2025-02-06 00:14:21] Production.ERROR: pbx CDR StartTime 2025-02-05 21:14:04 - End Time 2025-02-06 00:14:04 [2025-02-06 00:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411296', 'tblTempUsageDetail_20' ) start [2025-02-06 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411296', 'tblTempUsageDetail_20' ) end [2025-02-06 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411296', 'tblTempVendorCDR_20' ) start [2025-02-06 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411296', 'tblTempVendorCDR_20' ) end [2025-02-06 00:14:21] Production.INFO: ProcessCDR(1,14411296,1,1,2) [2025-02-06 00:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411296', 'tblTempUsageDetail_20' ) start [2025-02-06 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411296', 'tblTempUsageDetail_20' ) end [2025-02-06 00:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:14:24] Production.INFO: ==8753== Releasing lock... [2025-02-06 00:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:14:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:15:05 [end_date_ymd] => 2025-02-06 00:15:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:15:05' and `end` < '2025-02-06 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-06 00:15:20] Production.INFO: count ==326 [2025-02-06 00:15:20] Production.ERROR: pbx CDR StartTime 2025-02-05 21:15:05 - End Time 2025-02-06 00:15:05 [2025-02-06 00:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411301', 'tblTempUsageDetail_20' ) start [2025-02-06 00:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411301', 'tblTempUsageDetail_20' ) end [2025-02-06 00:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411301', 'tblTempVendorCDR_20' ) start [2025-02-06 00:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411301', 'tblTempVendorCDR_20' ) end [2025-02-06 00:15:20] Production.INFO: ProcessCDR(1,14411301,1,1,2) [2025-02-06 00:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411301', 'tblTempUsageDetail_20' ) start [2025-02-06 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411301', 'tblTempUsageDetail_20' ) end [2025-02-06 00:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:15:23] Production.INFO: ==8844== Releasing lock... [2025-02-06 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:15:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:16:05 [end_date_ymd] => 2025-02-06 00:16:05 [RateCDR] => 1 ) [2025-02-06 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:16:05' and `end` < '2025-02-06 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:16:25] Production.INFO: count ==329 [2025-02-06 00:16:25] Production.ERROR: pbx CDR StartTime 2025-02-05 21:16:05 - End Time 2025-02-06 00:16:05 [2025-02-06 00:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411306', 'tblTempUsageDetail_20' ) start [2025-02-06 00:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411306', 'tblTempUsageDetail_20' ) end [2025-02-06 00:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411306', 'tblTempVendorCDR_20' ) start [2025-02-06 00:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411306', 'tblTempVendorCDR_20' ) end [2025-02-06 00:16:25] Production.INFO: ProcessCDR(1,14411306,1,1,2) [2025-02-06 00:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411306', 'tblTempUsageDetail_20' ) start [2025-02-06 00:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411306', 'tblTempUsageDetail_20' ) end [2025-02-06 00:16:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:16:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:16:28] Production.INFO: ==8936== Releasing lock... [2025-02-06 00:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:16:28] Production.INFO: 31.75 MB #Memory Used# [2025-02-06 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:17:05 [end_date_ymd] => 2025-02-06 00:17:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:17:05' and `end` < '2025-02-06 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-06 00:17:19] Production.INFO: count ==329 [2025-02-06 00:17:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:17:05 - End Time 2025-02-06 00:17:05 [2025-02-06 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411311', 'tblTempUsageDetail_20' ) start [2025-02-06 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411311', 'tblTempUsageDetail_20' ) end [2025-02-06 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411311', 'tblTempVendorCDR_20' ) start [2025-02-06 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411311', 'tblTempVendorCDR_20' ) end [2025-02-06 00:17:19] Production.INFO: ProcessCDR(1,14411311,1,1,2) [2025-02-06 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411311', 'tblTempUsageDetail_20' ) start [2025-02-06 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411311', 'tblTempUsageDetail_20' ) end [2025-02-06 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:17:22] Production.INFO: ==9027== Releasing lock... [2025-02-06 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:17:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-06 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:18:05 [end_date_ymd] => 2025-02-06 00:18:05 [RateCDR] => 1 ) [2025-02-06 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:18:05' and `end` < '2025-02-06 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:18:19] Production.INFO: count ==328 [2025-02-06 00:18:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:18:05 - End Time 2025-02-06 00:18:05 [2025-02-06 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411316', 'tblTempUsageDetail_20' ) start [2025-02-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411316', 'tblTempUsageDetail_20' ) end [2025-02-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411316', 'tblTempVendorCDR_20' ) start [2025-02-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411316', 'tblTempVendorCDR_20' ) end [2025-02-06 00:18:19] Production.INFO: ProcessCDR(1,14411316,1,1,2) [2025-02-06 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411316', 'tblTempUsageDetail_20' ) start [2025-02-06 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411316', 'tblTempUsageDetail_20' ) end [2025-02-06 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:18:22] Production.INFO: ==9127== Releasing lock... [2025-02-06 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:19:05 [end_date_ymd] => 2025-02-06 00:19:05 [RateCDR] => 1 ) [2025-02-06 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:19:05' and `end` < '2025-02-06 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:19:18] Production.INFO: count ==332 [2025-02-06 00:19:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:19:05 - End Time 2025-02-06 00:19:05 [2025-02-06 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411321', 'tblTempUsageDetail_20' ) start [2025-02-06 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411321', 'tblTempUsageDetail_20' ) end [2025-02-06 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411321', 'tblTempVendorCDR_20' ) start [2025-02-06 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411321', 'tblTempVendorCDR_20' ) end [2025-02-06 00:19:18] Production.INFO: ProcessCDR(1,14411321,1,1,2) [2025-02-06 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411321', 'tblTempUsageDetail_20' ) start [2025-02-06 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411321', 'tblTempUsageDetail_20' ) end [2025-02-06 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:19:21] Production.INFO: ==9219== Releasing lock... [2025-02-06 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:19:21] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:20:06 [end_date_ymd] => 2025-02-06 00:20:06 [RateCDR] => 1 ) [2025-02-06 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-05 21:20:06' and `end` < '2025-02-06 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-06 00:20:19] Production.INFO: count ==341 [2025-02-06 00:20:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:20:06 - End Time 2025-02-06 00:20:06 [2025-02-06 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411327', 'tblTempUsageDetail_20' ) start [2025-02-06 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411327', 'tblTempUsageDetail_20' ) end [2025-02-06 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411327', 'tblTempVendorCDR_20' ) start [2025-02-06 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411327', 'tblTempVendorCDR_20' ) end [2025-02-06 00:20:19] Production.INFO: ProcessCDR(1,14411327,1,1,2) [2025-02-06 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411327', 'tblTempUsageDetail_20' ) start [2025-02-06 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411327', 'tblTempUsageDetail_20' ) end [2025-02-06 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:20:22] Production.INFO: ==9310== Releasing lock... [2025-02-06 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:20:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:21:05 [end_date_ymd] => 2025-02-06 00:21:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:21:05' and `end` < '2025-02-06 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-06 00:21:19] Production.INFO: count ==351 [2025-02-06 00:21:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:21:05 - End Time 2025-02-06 00:21:05 [2025-02-06 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411332', 'tblTempUsageDetail_20' ) start [2025-02-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411332', 'tblTempUsageDetail_20' ) end [2025-02-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411332', 'tblTempVendorCDR_20' ) start [2025-02-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411332', 'tblTempVendorCDR_20' ) end [2025-02-06 00:21:19] Production.INFO: ProcessCDR(1,14411332,1,1,2) [2025-02-06 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411332', 'tblTempUsageDetail_20' ) start [2025-02-06 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411332', 'tblTempUsageDetail_20' ) end [2025-02-06 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:21:22] Production.INFO: ==9408== Releasing lock... [2025-02-06 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:21:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:22:05 [end_date_ymd] => 2025-02-06 00:22:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:22:05' and `end` < '2025-02-06 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-06 00:22:19] Production.INFO: count ==357 [2025-02-06 00:22:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:22:05 - End Time 2025-02-06 00:22:05 [2025-02-06 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411337', 'tblTempUsageDetail_20' ) start [2025-02-06 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411337', 'tblTempUsageDetail_20' ) end [2025-02-06 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411337', 'tblTempVendorCDR_20' ) start [2025-02-06 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411337', 'tblTempVendorCDR_20' ) end [2025-02-06 00:22:19] Production.INFO: ProcessCDR(1,14411337,1,1,2) [2025-02-06 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411337', 'tblTempUsageDetail_20' ) start [2025-02-06 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411337', 'tblTempUsageDetail_20' ) end [2025-02-06 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:22:22] Production.INFO: ==9510== Releasing lock... [2025-02-06 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:22:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:23:06 [end_date_ymd] => 2025-02-06 00:23:06 [RateCDR] => 1 ) [2025-02-06 00: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-05 21:23:06' and `end` < '2025-02-06 00: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-06 00:23:19] Production.INFO: count ==358 [2025-02-06 00:23:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:23:06 - End Time 2025-02-06 00:23:06 [2025-02-06 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411342', 'tblTempUsageDetail_20' ) start [2025-02-06 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411342', 'tblTempUsageDetail_20' ) end [2025-02-06 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411342', 'tblTempVendorCDR_20' ) start [2025-02-06 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411342', 'tblTempVendorCDR_20' ) end [2025-02-06 00:23:19] Production.INFO: ProcessCDR(1,14411342,1,1,2) [2025-02-06 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411342', 'tblTempUsageDetail_20' ) start [2025-02-06 00:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411342', 'tblTempUsageDetail_20' ) end [2025-02-06 00:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:23:24] Production.INFO: ==9610== Releasing lock... [2025-02-06 00:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:23:24] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:24:05 [end_date_ymd] => 2025-02-06 00:24:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:24:05' and `end` < '2025-02-06 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-06 00:24:19] Production.INFO: count ==358 [2025-02-06 00:24:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:24:05 - End Time 2025-02-06 00:24:05 [2025-02-06 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411347', 'tblTempUsageDetail_20' ) start [2025-02-06 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411347', 'tblTempUsageDetail_20' ) end [2025-02-06 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411347', 'tblTempVendorCDR_20' ) start [2025-02-06 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411347', 'tblTempVendorCDR_20' ) end [2025-02-06 00:24:19] Production.INFO: ProcessCDR(1,14411347,1,1,2) [2025-02-06 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411347', 'tblTempUsageDetail_20' ) start [2025-02-06 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411347', 'tblTempUsageDetail_20' ) end [2025-02-06 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:24:22] Production.INFO: ==9708== Releasing lock... [2025-02-06 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:25:05 [end_date_ymd] => 2025-02-06 00:25:05 [RateCDR] => 1 ) [2025-02-06 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:25:05' and `end` < '2025-02-06 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:25:18] Production.INFO: count ==358 [2025-02-06 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:25:05 - End Time 2025-02-06 00:25:05 [2025-02-06 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411352', 'tblTempUsageDetail_20' ) start [2025-02-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411352', 'tblTempUsageDetail_20' ) end [2025-02-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411352', 'tblTempVendorCDR_20' ) start [2025-02-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411352', 'tblTempVendorCDR_20' ) end [2025-02-06 00:25:18] Production.INFO: ProcessCDR(1,14411352,1,1,2) [2025-02-06 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411352', 'tblTempUsageDetail_20' ) start [2025-02-06 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411352', 'tblTempUsageDetail_20' ) end [2025-02-06 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:25:21] Production.INFO: ==9809== Releasing lock... [2025-02-06 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:26:05 [end_date_ymd] => 2025-02-06 00:26:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:26:05' and `end` < '2025-02-06 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-06 00:26:20] Production.INFO: count ==358 [2025-02-06 00:26:20] Production.ERROR: pbx CDR StartTime 2025-02-05 21:26:05 - End Time 2025-02-06 00:26:05 [2025-02-06 00:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411357', 'tblTempUsageDetail_20' ) start [2025-02-06 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411357', 'tblTempUsageDetail_20' ) end [2025-02-06 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411357', 'tblTempVendorCDR_20' ) start [2025-02-06 00:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411357', 'tblTempVendorCDR_20' ) end [2025-02-06 00:26:20] Production.INFO: ProcessCDR(1,14411357,1,1,2) [2025-02-06 00:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411357', 'tblTempUsageDetail_20' ) start [2025-02-06 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411357', 'tblTempUsageDetail_20' ) end [2025-02-06 00:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:26:23] Production.INFO: ==9900== Releasing lock... [2025-02-06 00:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:26:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:27:05 [end_date_ymd] => 2025-02-06 00:27:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:27:05' and `end` < '2025-02-06 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-06 00:27:19] Production.INFO: count ==351 [2025-02-06 00:27:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:27:05 - End Time 2025-02-06 00:27:05 [2025-02-06 00:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411362', 'tblTempUsageDetail_20' ) start [2025-02-06 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411362', 'tblTempUsageDetail_20' ) end [2025-02-06 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411362', 'tblTempVendorCDR_20' ) start [2025-02-06 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411362', 'tblTempVendorCDR_20' ) end [2025-02-06 00:27:19] Production.INFO: ProcessCDR(1,14411362,1,1,2) [2025-02-06 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411362', 'tblTempUsageDetail_20' ) start [2025-02-06 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411362', 'tblTempUsageDetail_20' ) end [2025-02-06 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:27:22] Production.INFO: ==10027== Releasing lock... [2025-02-06 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:28:05 [end_date_ymd] => 2025-02-06 00:28:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:28:05' and `end` < '2025-02-06 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-06 00:28:18] Production.INFO: count ==347 [2025-02-06 00:28:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:28:05 - End Time 2025-02-06 00:28:05 [2025-02-06 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411367', 'tblTempUsageDetail_20' ) start [2025-02-06 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411367', 'tblTempUsageDetail_20' ) end [2025-02-06 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411367', 'tblTempVendorCDR_20' ) start [2025-02-06 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411367', 'tblTempVendorCDR_20' ) end [2025-02-06 00:28:18] Production.INFO: ProcessCDR(1,14411367,1,1,2) [2025-02-06 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411367', 'tblTempUsageDetail_20' ) start [2025-02-06 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411367', 'tblTempUsageDetail_20' ) end [2025-02-06 00:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:28:23] Production.INFO: ==10118== Releasing lock... [2025-02-06 00:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:28:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-06 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:29:04 [end_date_ymd] => 2025-02-06 00:29:04 [RateCDR] => 1 ) [2025-02-06 00: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-05 21:29:04' and `end` < '2025-02-06 00: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-06 00:29:17] Production.INFO: count ==337 [2025-02-06 00:29:17] Production.ERROR: pbx CDR StartTime 2025-02-05 21:29:04 - End Time 2025-02-06 00:29:04 [2025-02-06 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411372', 'tblTempUsageDetail_20' ) start [2025-02-06 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411372', 'tblTempUsageDetail_20' ) end [2025-02-06 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411372', 'tblTempVendorCDR_20' ) start [2025-02-06 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411372', 'tblTempVendorCDR_20' ) end [2025-02-06 00:29:17] Production.INFO: ProcessCDR(1,14411372,1,1,2) [2025-02-06 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411372', 'tblTempUsageDetail_20' ) start [2025-02-06 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411372', 'tblTempUsageDetail_20' ) end [2025-02-06 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:29:20] Production.INFO: ==10200== Releasing lock... [2025-02-06 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:29:20] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:30:06 [end_date_ymd] => 2025-02-06 00:30:06 [RateCDR] => 1 ) [2025-02-06 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:30:06' and `end` < '2025-02-06 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:30:19] Production.INFO: count ==334 [2025-02-06 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:30:06 - End Time 2025-02-06 00:30:06 [2025-02-06 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411378', 'tblTempUsageDetail_20' ) start [2025-02-06 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411378', 'tblTempUsageDetail_20' ) end [2025-02-06 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411378', 'tblTempVendorCDR_20' ) start [2025-02-06 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411378', 'tblTempVendorCDR_20' ) end [2025-02-06 00:30:19] Production.INFO: ProcessCDR(1,14411378,1,1,2) [2025-02-06 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411378', 'tblTempUsageDetail_20' ) start [2025-02-06 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411378', 'tblTempUsageDetail_20' ) end [2025-02-06 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:30:22] Production.INFO: ==10281== Releasing lock... [2025-02-06 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:31:05 [end_date_ymd] => 2025-02-06 00:31:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:31:05' and `end` < '2025-02-06 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-06 00:31:20] Production.INFO: count ==346 [2025-02-06 00:31:20] Production.ERROR: pbx CDR StartTime 2025-02-05 21:31:05 - End Time 2025-02-06 00:31:05 [2025-02-06 00:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411383', 'tblTempUsageDetail_20' ) start [2025-02-06 00:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411383', 'tblTempUsageDetail_20' ) end [2025-02-06 00:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411383', 'tblTempVendorCDR_20' ) start [2025-02-06 00:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411383', 'tblTempVendorCDR_20' ) end [2025-02-06 00:31:20] Production.INFO: ProcessCDR(1,14411383,1,1,2) [2025-02-06 00:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411383', 'tblTempUsageDetail_20' ) start [2025-02-06 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411383', 'tblTempUsageDetail_20' ) end [2025-02-06 00:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:31:23] Production.INFO: ==10362== Releasing lock... [2025-02-06 00:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:31:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:32:05 [end_date_ymd] => 2025-02-06 00:32:05 [RateCDR] => 1 ) [2025-02-06 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:32:05' and `end` < '2025-02-06 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:32:18] Production.INFO: count ==340 [2025-02-06 00:32:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:32:05 - End Time 2025-02-06 00:32:05 [2025-02-06 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411388', 'tblTempUsageDetail_20' ) start [2025-02-06 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411388', 'tblTempUsageDetail_20' ) end [2025-02-06 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411388', 'tblTempVendorCDR_20' ) start [2025-02-06 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411388', 'tblTempVendorCDR_20' ) end [2025-02-06 00:32:18] Production.INFO: ProcessCDR(1,14411388,1,1,2) [2025-02-06 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411388', 'tblTempUsageDetail_20' ) start [2025-02-06 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411388', 'tblTempUsageDetail_20' ) end [2025-02-06 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:32:22] Production.INFO: ==10438== Releasing lock... [2025-02-06 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:32:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:33:06 [end_date_ymd] => 2025-02-06 00:33:06 [RateCDR] => 1 ) [2025-02-06 00: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-05 21:33:06' and `end` < '2025-02-06 00: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-06 00:33:19] Production.INFO: count ==340 [2025-02-06 00:33:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:33:06 - End Time 2025-02-06 00:33:06 [2025-02-06 00:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411393', 'tblTempUsageDetail_20' ) start [2025-02-06 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411393', 'tblTempUsageDetail_20' ) end [2025-02-06 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411393', 'tblTempVendorCDR_20' ) start [2025-02-06 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411393', 'tblTempVendorCDR_20' ) end [2025-02-06 00:33:19] Production.INFO: ProcessCDR(1,14411393,1,1,2) [2025-02-06 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411393', 'tblTempUsageDetail_20' ) start [2025-02-06 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411393', 'tblTempUsageDetail_20' ) end [2025-02-06 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:33:22] Production.INFO: ==10519== Releasing lock... [2025-02-06 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:33:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:34:05 [end_date_ymd] => 2025-02-06 00:34:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:34:05' and `end` < '2025-02-06 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-06 00:34:20] Production.INFO: count ==342 [2025-02-06 00:34:20] Production.ERROR: pbx CDR StartTime 2025-02-05 21:34:05 - End Time 2025-02-06 00:34:05 [2025-02-06 00:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411398', 'tblTempUsageDetail_20' ) start [2025-02-06 00:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411398', 'tblTempUsageDetail_20' ) end [2025-02-06 00:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411398', 'tblTempVendorCDR_20' ) start [2025-02-06 00:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411398', 'tblTempVendorCDR_20' ) end [2025-02-06 00:34:20] Production.INFO: ProcessCDR(1,14411398,1,1,2) [2025-02-06 00:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411398', 'tblTempUsageDetail_20' ) start [2025-02-06 00:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411398', 'tblTempUsageDetail_20' ) end [2025-02-06 00:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:34:24] Production.INFO: ==10600== Releasing lock... [2025-02-06 00:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:34:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:35:05 [end_date_ymd] => 2025-02-06 00:35:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:35:05' and `end` < '2025-02-06 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-06 00:35:18] Production.INFO: count ==342 [2025-02-06 00:35:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:35:05 - End Time 2025-02-06 00:35:05 [2025-02-06 00:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411403', 'tblTempUsageDetail_20' ) start [2025-02-06 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411403', 'tblTempUsageDetail_20' ) end [2025-02-06 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411403', 'tblTempVendorCDR_20' ) start [2025-02-06 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411403', 'tblTempVendorCDR_20' ) end [2025-02-06 00:35:19] Production.INFO: ProcessCDR(1,14411403,1,1,2) [2025-02-06 00:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411403', 'tblTempUsageDetail_20' ) start [2025-02-06 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411403', 'tblTempUsageDetail_20' ) end [2025-02-06 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:35:22] Production.INFO: ==10677== Releasing lock... [2025-02-06 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:35:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 00:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:36:04 [end_date_ymd] => 2025-02-06 00:36:04 [RateCDR] => 1 ) [2025-02-06 00:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:36:04' and `end` < '2025-02-06 00:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:36:17] Production.INFO: count ==333 [2025-02-06 00:36:17] Production.ERROR: pbx CDR StartTime 2025-02-05 21:36:04 - End Time 2025-02-06 00:36:04 [2025-02-06 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411408', 'tblTempUsageDetail_20' ) start [2025-02-06 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411408', 'tblTempUsageDetail_20' ) end [2025-02-06 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411408', 'tblTempVendorCDR_20' ) start [2025-02-06 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411408', 'tblTempVendorCDR_20' ) end [2025-02-06 00:36:17] Production.INFO: ProcessCDR(1,14411408,1,1,2) [2025-02-06 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411408', 'tblTempUsageDetail_20' ) start [2025-02-06 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411408', 'tblTempUsageDetail_20' ) end [2025-02-06 00:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:36:20] Production.INFO: ==10749== Releasing lock... [2025-02-06 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:36:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:37:06 [end_date_ymd] => 2025-02-06 00:37:06 [RateCDR] => 1 ) [2025-02-06 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-05 21:37:06' and `end` < '2025-02-06 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-06 00:37:19] Production.INFO: count ==333 [2025-02-06 00:37:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:37:06 - End Time 2025-02-06 00:37:06 [2025-02-06 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411413', 'tblTempUsageDetail_20' ) start [2025-02-06 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411413', 'tblTempUsageDetail_20' ) end [2025-02-06 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411413', 'tblTempVendorCDR_20' ) start [2025-02-06 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411413', 'tblTempVendorCDR_20' ) end [2025-02-06 00:37:19] Production.INFO: ProcessCDR(1,14411413,1,1,2) [2025-02-06 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411413', 'tblTempUsageDetail_20' ) start [2025-02-06 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411413', 'tblTempUsageDetail_20' ) end [2025-02-06 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:37:22] Production.INFO: ==10827== Releasing lock... [2025-02-06 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:38:05 [end_date_ymd] => 2025-02-06 00:38:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:38:05' and `end` < '2025-02-06 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-06 00:38:18] Production.INFO: count ==328 [2025-02-06 00:38:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:38:05 - End Time 2025-02-06 00:38:05 [2025-02-06 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411418', 'tblTempUsageDetail_20' ) start [2025-02-06 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411418', 'tblTempUsageDetail_20' ) end [2025-02-06 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411418', 'tblTempVendorCDR_20' ) start [2025-02-06 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411418', 'tblTempVendorCDR_20' ) end [2025-02-06 00:38:18] Production.INFO: ProcessCDR(1,14411418,1,1,2) [2025-02-06 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411418', 'tblTempUsageDetail_20' ) start [2025-02-06 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411418', 'tblTempUsageDetail_20' ) end [2025-02-06 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:38:21] Production.INFO: ==10909== Releasing lock... [2025-02-06 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:39:05 [end_date_ymd] => 2025-02-06 00:39:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:39:05' and `end` < '2025-02-06 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-06 00:39:18] Production.INFO: count ==324 [2025-02-06 00:39:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:39:05 - End Time 2025-02-06 00:39:05 [2025-02-06 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411423', 'tblTempUsageDetail_20' ) start [2025-02-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411423', 'tblTempUsageDetail_20' ) end [2025-02-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411423', 'tblTempVendorCDR_20' ) start [2025-02-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411423', 'tblTempVendorCDR_20' ) end [2025-02-06 00:39:18] Production.INFO: ProcessCDR(1,14411423,1,1,2) [2025-02-06 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411423', 'tblTempUsageDetail_20' ) start [2025-02-06 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411423', 'tblTempUsageDetail_20' ) end [2025-02-06 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:39:22] Production.INFO: ==10992== Releasing lock... [2025-02-06 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:40:06 [end_date_ymd] => 2025-02-06 00:40:06 [RateCDR] => 1 ) [2025-02-06 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-05 21:40:06' and `end` < '2025-02-06 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-06 00:40:20] Production.INFO: count ==324 [2025-02-06 00:40:20] Production.ERROR: pbx CDR StartTime 2025-02-05 21:40:06 - End Time 2025-02-06 00:40:06 [2025-02-06 00:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411429', 'tblTempUsageDetail_20' ) start [2025-02-06 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411429', 'tblTempUsageDetail_20' ) end [2025-02-06 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411429', 'tblTempVendorCDR_20' ) start [2025-02-06 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411429', 'tblTempVendorCDR_20' ) end [2025-02-06 00:40:20] Production.INFO: ProcessCDR(1,14411429,1,1,2) [2025-02-06 00:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411429', 'tblTempUsageDetail_20' ) start [2025-02-06 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411429', 'tblTempUsageDetail_20' ) end [2025-02-06 00:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:40:25] Production.INFO: ==11073== Releasing lock... [2025-02-06 00:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:40:25] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:41:05 [end_date_ymd] => 2025-02-06 00:41:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:41:05' and `end` < '2025-02-06 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-06 00:41:18] Production.INFO: count ==319 [2025-02-06 00:41:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:41:05 - End Time 2025-02-06 00:41:05 [2025-02-06 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411434', 'tblTempUsageDetail_20' ) start [2025-02-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411434', 'tblTempUsageDetail_20' ) end [2025-02-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411434', 'tblTempVendorCDR_20' ) start [2025-02-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411434', 'tblTempVendorCDR_20' ) end [2025-02-06 00:41:18] Production.INFO: ProcessCDR(1,14411434,1,1,2) [2025-02-06 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411434', 'tblTempUsageDetail_20' ) start [2025-02-06 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411434', 'tblTempUsageDetail_20' ) end [2025-02-06 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:41:21] Production.INFO: ==11156== Releasing lock... [2025-02-06 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:42:05 [end_date_ymd] => 2025-02-06 00:42:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:42:05' and `end` < '2025-02-06 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-06 00:42:19] Production.INFO: count ==319 [2025-02-06 00:42:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:42:05 - End Time 2025-02-06 00:42:05 [2025-02-06 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411439', 'tblTempUsageDetail_20' ) start [2025-02-06 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411439', 'tblTempUsageDetail_20' ) end [2025-02-06 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411439', 'tblTempVendorCDR_20' ) start [2025-02-06 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411439', 'tblTempVendorCDR_20' ) end [2025-02-06 00:42:19] Production.INFO: ProcessCDR(1,14411439,1,1,2) [2025-02-06 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411439', 'tblTempUsageDetail_20' ) start [2025-02-06 00:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411439', 'tblTempUsageDetail_20' ) end [2025-02-06 00:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:42:23] Production.INFO: ==11273== Releasing lock... [2025-02-06 00:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:42:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:43:06 [end_date_ymd] => 2025-02-06 00:43:06 [RateCDR] => 1 ) [2025-02-06 00: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-05 21:43:06' and `end` < '2025-02-06 00: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-06 00:43:19] Production.INFO: count ==318 [2025-02-06 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:43:06 - End Time 2025-02-06 00:43:06 [2025-02-06 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411444', 'tblTempUsageDetail_20' ) start [2025-02-06 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411444', 'tblTempUsageDetail_20' ) end [2025-02-06 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411444', 'tblTempVendorCDR_20' ) start [2025-02-06 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411444', 'tblTempVendorCDR_20' ) end [2025-02-06 00:43:19] Production.INFO: ProcessCDR(1,14411444,1,1,2) [2025-02-06 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411444', 'tblTempUsageDetail_20' ) start [2025-02-06 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411444', 'tblTempUsageDetail_20' ) end [2025-02-06 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:43:22] Production.INFO: ==11348== Releasing lock... [2025-02-06 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:43:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:44:05 [end_date_ymd] => 2025-02-06 00:44:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:44:05' and `end` < '2025-02-06 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-06 00:44:18] Production.INFO: count ==318 [2025-02-06 00:44:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:44:05 - End Time 2025-02-06 00:44:05 [2025-02-06 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411449', 'tblTempUsageDetail_20' ) start [2025-02-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411449', 'tblTempUsageDetail_20' ) end [2025-02-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411449', 'tblTempVendorCDR_20' ) start [2025-02-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411449', 'tblTempVendorCDR_20' ) end [2025-02-06 00:44:18] Production.INFO: ProcessCDR(1,14411449,1,1,2) [2025-02-06 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411449', 'tblTempUsageDetail_20' ) start [2025-02-06 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411449', 'tblTempUsageDetail_20' ) end [2025-02-06 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:44:22] Production.INFO: ==11424== Releasing lock... [2025-02-06 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:44:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:45:05 [end_date_ymd] => 2025-02-06 00:45:05 [RateCDR] => 1 ) [2025-02-06 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:45:05' and `end` < '2025-02-06 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:45:18] Production.INFO: count ==320 [2025-02-06 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:45:05 - End Time 2025-02-06 00:45:05 [2025-02-06 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411454', 'tblTempUsageDetail_20' ) start [2025-02-06 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411454', 'tblTempUsageDetail_20' ) end [2025-02-06 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411454', 'tblTempVendorCDR_20' ) start [2025-02-06 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411454', 'tblTempVendorCDR_20' ) end [2025-02-06 00:45:18] Production.INFO: ProcessCDR(1,14411454,1,1,2) [2025-02-06 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411454', 'tblTempUsageDetail_20' ) start [2025-02-06 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411454', 'tblTempUsageDetail_20' ) end [2025-02-06 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:45:21] Production.INFO: ==11498== Releasing lock... [2025-02-06 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:46:05 [end_date_ymd] => 2025-02-06 00:46:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:46:05' and `end` < '2025-02-06 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-06 00:46:18] Production.INFO: count ==326 [2025-02-06 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:46:05 - End Time 2025-02-06 00:46:05 [2025-02-06 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411459', 'tblTempUsageDetail_20' ) start [2025-02-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411459', 'tblTempUsageDetail_20' ) end [2025-02-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411459', 'tblTempVendorCDR_20' ) start [2025-02-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411459', 'tblTempVendorCDR_20' ) end [2025-02-06 00:46:18] Production.INFO: ProcessCDR(1,14411459,1,1,2) [2025-02-06 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411459', 'tblTempUsageDetail_20' ) start [2025-02-06 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411459', 'tblTempUsageDetail_20' ) end [2025-02-06 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:46:21] Production.INFO: ==11578== Releasing lock... [2025-02-06 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:47:05 [end_date_ymd] => 2025-02-06 00:47:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:47:05' and `end` < '2025-02-06 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-06 00:47:20] Production.INFO: count ==325 [2025-02-06 00:47:20] Production.ERROR: pbx CDR StartTime 2025-02-05 21:47:05 - End Time 2025-02-06 00:47:05 [2025-02-06 00:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411464', 'tblTempUsageDetail_20' ) start [2025-02-06 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411464', 'tblTempUsageDetail_20' ) end [2025-02-06 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411464', 'tblTempVendorCDR_20' ) start [2025-02-06 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411464', 'tblTempVendorCDR_20' ) end [2025-02-06 00:47:20] Production.INFO: ProcessCDR(1,14411464,1,1,2) [2025-02-06 00:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411464', 'tblTempUsageDetail_20' ) start [2025-02-06 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411464', 'tblTempUsageDetail_20' ) end [2025-02-06 00:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:47:23] Production.INFO: ==11651== Releasing lock... [2025-02-06 00:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:47:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:48:05 [end_date_ymd] => 2025-02-06 00:48:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:48:05' and `end` < '2025-02-06 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-06 00:48:19] Production.INFO: count ==329 [2025-02-06 00:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:48:05 - End Time 2025-02-06 00:48:05 [2025-02-06 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411469', 'tblTempUsageDetail_20' ) start [2025-02-06 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411469', 'tblTempUsageDetail_20' ) end [2025-02-06 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411469', 'tblTempVendorCDR_20' ) start [2025-02-06 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411469', 'tblTempVendorCDR_20' ) end [2025-02-06 00:48:19] Production.INFO: ProcessCDR(1,14411469,1,1,2) [2025-02-06 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411469', 'tblTempUsageDetail_20' ) start [2025-02-06 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411469', 'tblTempUsageDetail_20' ) end [2025-02-06 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:48:22] Production.INFO: ==11724== Releasing lock... [2025-02-06 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:48:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:49:05 [end_date_ymd] => 2025-02-06 00:49:05 [RateCDR] => 1 ) [2025-02-06 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:49:05' and `end` < '2025-02-06 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:49:19] Production.INFO: count ==329 [2025-02-06 00:49:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:49:05 - End Time 2025-02-06 00:49:05 [2025-02-06 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411474', 'tblTempUsageDetail_20' ) start [2025-02-06 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411474', 'tblTempUsageDetail_20' ) end [2025-02-06 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411474', 'tblTempVendorCDR_20' ) start [2025-02-06 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411474', 'tblTempVendorCDR_20' ) end [2025-02-06 00:49:19] Production.INFO: ProcessCDR(1,14411474,1,1,2) [2025-02-06 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411474', 'tblTempUsageDetail_20' ) start [2025-02-06 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411474', 'tblTempUsageDetail_20' ) end [2025-02-06 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:49:22] Production.INFO: ==11799== Releasing lock... [2025-02-06 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:50:06 [end_date_ymd] => 2025-02-06 00:50:06 [RateCDR] => 1 ) [2025-02-06 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-05 21:50:06' and `end` < '2025-02-06 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-06 00:50:19] Production.INFO: count ==337 [2025-02-06 00:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:50:06 - End Time 2025-02-06 00:50:06 [2025-02-06 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411480', 'tblTempUsageDetail_20' ) start [2025-02-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411480', 'tblTempUsageDetail_20' ) end [2025-02-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411480', 'tblTempVendorCDR_20' ) start [2025-02-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411480', 'tblTempVendorCDR_20' ) end [2025-02-06 00:50:19] Production.INFO: ProcessCDR(1,14411480,1,1,2) [2025-02-06 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411480', 'tblTempUsageDetail_20' ) start [2025-02-06 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411480', 'tblTempUsageDetail_20' ) end [2025-02-06 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:50:22] Production.INFO: ==11881== Releasing lock... [2025-02-06 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:50:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:51:05 [end_date_ymd] => 2025-02-06 00:51:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:51:05' and `end` < '2025-02-06 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-06 00:51:18] Production.INFO: count ==346 [2025-02-06 00:51:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:51:05 - End Time 2025-02-06 00:51:05 [2025-02-06 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411485', 'tblTempUsageDetail_20' ) start [2025-02-06 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411485', 'tblTempUsageDetail_20' ) end [2025-02-06 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411485', 'tblTempVendorCDR_20' ) start [2025-02-06 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411485', 'tblTempVendorCDR_20' ) end [2025-02-06 00:51:18] Production.INFO: ProcessCDR(1,14411485,1,1,2) [2025-02-06 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411485', 'tblTempUsageDetail_20' ) start [2025-02-06 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411485', 'tblTempUsageDetail_20' ) end [2025-02-06 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:51:21] Production.INFO: ==11962== Releasing lock... [2025-02-06 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:52:05 [end_date_ymd] => 2025-02-06 00:52:05 [RateCDR] => 1 ) [2025-02-06 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:52:05' and `end` < '2025-02-06 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 00:52:18] Production.INFO: count ==345 [2025-02-06 00:52:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:52:05 - End Time 2025-02-06 00:52:05 [2025-02-06 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411490', 'tblTempUsageDetail_20' ) start [2025-02-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411490', 'tblTempUsageDetail_20' ) end [2025-02-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411490', 'tblTempVendorCDR_20' ) start [2025-02-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411490', 'tblTempVendorCDR_20' ) end [2025-02-06 00:52:18] Production.INFO: ProcessCDR(1,14411490,1,1,2) [2025-02-06 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411490', 'tblTempUsageDetail_20' ) start [2025-02-06 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411490', 'tblTempUsageDetail_20' ) end [2025-02-06 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:52:21] Production.INFO: ==12048== Releasing lock... [2025-02-06 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:52:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:53:05 [end_date_ymd] => 2025-02-06 00:53:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:53:05' and `end` < '2025-02-06 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-06 00:53:18] Production.INFO: count ==345 [2025-02-06 00:53:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:53:05 - End Time 2025-02-06 00:53:05 [2025-02-06 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411495', 'tblTempUsageDetail_20' ) start [2025-02-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411495', 'tblTempUsageDetail_20' ) end [2025-02-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411495', 'tblTempVendorCDR_20' ) start [2025-02-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411495', 'tblTempVendorCDR_20' ) end [2025-02-06 00:53:18] Production.INFO: ProcessCDR(1,14411495,1,1,2) [2025-02-06 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411495', 'tblTempUsageDetail_20' ) start [2025-02-06 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411495', 'tblTempUsageDetail_20' ) end [2025-02-06 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:53:21] Production.INFO: ==12130== Releasing lock... [2025-02-06 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:54:05 [end_date_ymd] => 2025-02-06 00:54:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:54:05' and `end` < '2025-02-06 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-06 00:54:18] Production.INFO: count ==345 [2025-02-06 00:54:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:54:05 - End Time 2025-02-06 00:54:05 [2025-02-06 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411500', 'tblTempUsageDetail_20' ) start [2025-02-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411500', 'tblTempUsageDetail_20' ) end [2025-02-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411500', 'tblTempVendorCDR_20' ) start [2025-02-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411500', 'tblTempVendorCDR_20' ) end [2025-02-06 00:54:18] Production.INFO: ProcessCDR(1,14411500,1,1,2) [2025-02-06 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411500', 'tblTempUsageDetail_20' ) start [2025-02-06 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411500', 'tblTempUsageDetail_20' ) end [2025-02-06 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:54:21] Production.INFO: ==12210== Releasing lock... [2025-02-06 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:55:05 [end_date_ymd] => 2025-02-06 00:55:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:55:05' and `end` < '2025-02-06 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-06 00:55:19] Production.INFO: count ==344 [2025-02-06 00:55:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:55:05 - End Time 2025-02-06 00:55:05 [2025-02-06 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411505', 'tblTempUsageDetail_20' ) start [2025-02-06 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411505', 'tblTempUsageDetail_20' ) end [2025-02-06 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411505', 'tblTempVendorCDR_20' ) start [2025-02-06 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411505', 'tblTempVendorCDR_20' ) end [2025-02-06 00:55:19] Production.INFO: ProcessCDR(1,14411505,1,1,2) [2025-02-06 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411505', 'tblTempUsageDetail_20' ) start [2025-02-06 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411505', 'tblTempUsageDetail_20' ) end [2025-02-06 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:55:22] Production.INFO: ==12283== Releasing lock... [2025-02-06 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:55:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:56:05 [end_date_ymd] => 2025-02-06 00:56:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:56:05' and `end` < '2025-02-06 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-06 00:56:19] Production.INFO: count ==345 [2025-02-06 00:56:19] Production.ERROR: pbx CDR StartTime 2025-02-05 21:56:05 - End Time 2025-02-06 00:56:05 [2025-02-06 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411510', 'tblTempUsageDetail_20' ) start [2025-02-06 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411510', 'tblTempUsageDetail_20' ) end [2025-02-06 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411510', 'tblTempVendorCDR_20' ) start [2025-02-06 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411510', 'tblTempVendorCDR_20' ) end [2025-02-06 00:56:19] Production.INFO: ProcessCDR(1,14411510,1,1,2) [2025-02-06 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411510', 'tblTempUsageDetail_20' ) start [2025-02-06 00:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411510', 'tblTempUsageDetail_20' ) end [2025-02-06 00:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:56:24] Production.INFO: ==12361== Releasing lock... [2025-02-06 00:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:56:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:57:05 [end_date_ymd] => 2025-02-06 00:57:05 [RateCDR] => 1 ) [2025-02-06 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-05 21:57:05' and `end` < '2025-02-06 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-06 00:57:18] Production.INFO: count ==345 [2025-02-06 00:57:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:57:05 - End Time 2025-02-06 00:57:05 [2025-02-06 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411515', 'tblTempUsageDetail_20' ) start [2025-02-06 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411515', 'tblTempUsageDetail_20' ) end [2025-02-06 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411515', 'tblTempVendorCDR_20' ) start [2025-02-06 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411515', 'tblTempVendorCDR_20' ) end [2025-02-06 00:57:18] Production.INFO: ProcessCDR(1,14411515,1,1,2) [2025-02-06 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411515', 'tblTempUsageDetail_20' ) start [2025-02-06 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411515', 'tblTempUsageDetail_20' ) end [2025-02-06 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:57:21] Production.INFO: ==12436== Releasing lock... [2025-02-06 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:58:04 [end_date_ymd] => 2025-02-06 00:58:04 [RateCDR] => 1 ) [2025-02-06 00: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-05 21:58:04' and `end` < '2025-02-06 00: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-06 00:58:17] Production.INFO: count ==344 [2025-02-06 00:58:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:58:04 - End Time 2025-02-06 00:58:04 [2025-02-06 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411520', 'tblTempUsageDetail_20' ) start [2025-02-06 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411520', 'tblTempUsageDetail_20' ) end [2025-02-06 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411520', 'tblTempVendorCDR_20' ) start [2025-02-06 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411520', 'tblTempVendorCDR_20' ) end [2025-02-06 00:58:18] Production.INFO: ProcessCDR(1,14411520,1,1,2) [2025-02-06 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411520', 'tblTempUsageDetail_20' ) start [2025-02-06 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411520', 'tblTempUsageDetail_20' ) end [2025-02-06 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:58:21] Production.INFO: ==12551== Releasing lock... [2025-02-06 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:58:21] Production.INFO: 31 MB #Memory Used# [2025-02-06 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 21:59:05 [end_date_ymd] => 2025-02-06 00:59:05 [RateCDR] => 1 ) [2025-02-06 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 21:59:05' and `end` < '2025-02-06 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-06 00:59:18] Production.INFO: count ==349 [2025-02-06 00:59:18] Production.ERROR: pbx CDR StartTime 2025-02-05 21:59:05 - End Time 2025-02-06 00:59:05 [2025-02-06 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411525', 'tblTempUsageDetail_20' ) start [2025-02-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411525', 'tblTempUsageDetail_20' ) end [2025-02-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411525', 'tblTempVendorCDR_20' ) start [2025-02-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411525', 'tblTempVendorCDR_20' ) end [2025-02-06 00:59:18] Production.INFO: ProcessCDR(1,14411525,1,1,2) [2025-02-06 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411525', 'tblTempUsageDetail_20' ) start [2025-02-06 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411525', 'tblTempUsageDetail_20' ) end [2025-02-06 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 00:59:21] Production.INFO: ==12626== Releasing lock... [2025-02-06 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 00:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:00:06 [end_date_ymd] => 2025-02-06 01:00:06 [RateCDR] => 1 ) [2025-02-06 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:00:06' and `end` < '2025-02-06 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:00:19] Production.INFO: count ==357 [2025-02-06 01:00:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:00:06 - End Time 2025-02-06 01:00:06 [2025-02-06 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411531', 'tblTempUsageDetail_20' ) start [2025-02-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411531', 'tblTempUsageDetail_20' ) end [2025-02-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411531', 'tblTempVendorCDR_20' ) start [2025-02-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411531', 'tblTempVendorCDR_20' ) end [2025-02-06 01:00:19] Production.INFO: ProcessCDR(1,14411531,1,1,2) [2025-02-06 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411531', 'tblTempUsageDetail_20' ) start [2025-02-06 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411531', 'tblTempUsageDetail_20' ) end [2025-02-06 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:00:22] Production.INFO: ==12708== Releasing lock... [2025-02-06 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:00:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:01:05 [end_date_ymd] => 2025-02-06 01:01:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:01:05' and `end` < '2025-02-06 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-06 01:01:19] Production.INFO: count ==364 [2025-02-06 01:01:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:01:05 - End Time 2025-02-06 01:01:05 [2025-02-06 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411536', 'tblTempUsageDetail_20' ) start [2025-02-06 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411536', 'tblTempUsageDetail_20' ) end [2025-02-06 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411536', 'tblTempVendorCDR_20' ) start [2025-02-06 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411536', 'tblTempVendorCDR_20' ) end [2025-02-06 01:01:19] Production.INFO: ProcessCDR(1,14411536,1,1,2) [2025-02-06 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411536', 'tblTempUsageDetail_20' ) start [2025-02-06 01:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411536', 'tblTempUsageDetail_20' ) end [2025-02-06 01:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:01:24] Production.INFO: ==12802== Releasing lock... [2025-02-06 01:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:01:24] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:02:05 [end_date_ymd] => 2025-02-06 01:02:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:02:05' and `end` < '2025-02-06 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-06 01:02:17] Production.INFO: count ==368 [2025-02-06 01:02:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:02:05 - End Time 2025-02-06 01:02:05 [2025-02-06 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411541', 'tblTempUsageDetail_20' ) start [2025-02-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411541', 'tblTempUsageDetail_20' ) end [2025-02-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411541', 'tblTempVendorCDR_20' ) start [2025-02-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411541', 'tblTempVendorCDR_20' ) end [2025-02-06 01:02:18] Production.INFO: ProcessCDR(1,14411541,1,1,2) [2025-02-06 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411541', 'tblTempUsageDetail_20' ) start [2025-02-06 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411541', 'tblTempUsageDetail_20' ) end [2025-02-06 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:02:22] Production.INFO: ==12879== Releasing lock... [2025-02-06 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:02:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:03:05 [end_date_ymd] => 2025-02-06 01:03:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:03:05' and `end` < '2025-02-06 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-06 01:03:18] Production.INFO: count ==369 [2025-02-06 01:03:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:03:05 - End Time 2025-02-06 01:03:05 [2025-02-06 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411546', 'tblTempUsageDetail_20' ) start [2025-02-06 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411546', 'tblTempUsageDetail_20' ) end [2025-02-06 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411546', 'tblTempVendorCDR_20' ) start [2025-02-06 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411546', 'tblTempVendorCDR_20' ) end [2025-02-06 01:03:18] Production.INFO: ProcessCDR(1,14411546,1,1,2) [2025-02-06 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411546', 'tblTempUsageDetail_20' ) start [2025-02-06 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411546', 'tblTempUsageDetail_20' ) end [2025-02-06 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:03:21] Production.INFO: ==12957== Releasing lock... [2025-02-06 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:04:05 [end_date_ymd] => 2025-02-06 01:04:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:04:05' and `end` < '2025-02-06 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-06 01:04:19] Production.INFO: count ==369 [2025-02-06 01:04:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:04:05 - End Time 2025-02-06 01:04:05 [2025-02-06 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411551', 'tblTempUsageDetail_20' ) start [2025-02-06 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411551', 'tblTempUsageDetail_20' ) end [2025-02-06 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411551', 'tblTempVendorCDR_20' ) start [2025-02-06 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411551', 'tblTempVendorCDR_20' ) end [2025-02-06 01:04:19] Production.INFO: ProcessCDR(1,14411551,1,1,2) [2025-02-06 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411551', 'tblTempUsageDetail_20' ) start [2025-02-06 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411551', 'tblTempUsageDetail_20' ) end [2025-02-06 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:04:22] Production.INFO: ==13032== Releasing lock... [2025-02-06 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:04:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:05:05 [end_date_ymd] => 2025-02-06 01:05:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:05:05' and `end` < '2025-02-06 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-06 01:05:18] Production.INFO: count ==369 [2025-02-06 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:05:05 - End Time 2025-02-06 01:05:05 [2025-02-06 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411556', 'tblTempUsageDetail_20' ) start [2025-02-06 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411556', 'tblTempUsageDetail_20' ) end [2025-02-06 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411556', 'tblTempVendorCDR_20' ) start [2025-02-06 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411556', 'tblTempVendorCDR_20' ) end [2025-02-06 01:05:18] Production.INFO: ProcessCDR(1,14411556,1,1,2) [2025-02-06 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411556', 'tblTempUsageDetail_20' ) start [2025-02-06 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411556', 'tblTempUsageDetail_20' ) end [2025-02-06 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:05:22] Production.INFO: ==13106== Releasing lock... [2025-02-06 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:06:05 [end_date_ymd] => 2025-02-06 01:06:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:06:05' and `end` < '2025-02-06 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-06 01:06:19] Production.INFO: count ==366 [2025-02-06 01:06:20] Production.ERROR: pbx CDR StartTime 2025-02-05 22:06:05 - End Time 2025-02-06 01:06:05 [2025-02-06 01:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411561', 'tblTempUsageDetail_20' ) start [2025-02-06 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411561', 'tblTempUsageDetail_20' ) end [2025-02-06 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411561', 'tblTempVendorCDR_20' ) start [2025-02-06 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411561', 'tblTempVendorCDR_20' ) end [2025-02-06 01:06:20] Production.INFO: ProcessCDR(1,14411561,1,1,2) [2025-02-06 01:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411561', 'tblTempUsageDetail_20' ) start [2025-02-06 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411561', 'tblTempUsageDetail_20' ) end [2025-02-06 01:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:06:23] Production.INFO: ==13179== Releasing lock... [2025-02-06 01:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:06:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:07:05 [end_date_ymd] => 2025-02-06 01:07:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:07:05' and `end` < '2025-02-06 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-06 01:07:19] Production.INFO: count ==365 [2025-02-06 01:07:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:07:05 - End Time 2025-02-06 01:07:05 [2025-02-06 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411566', 'tblTempUsageDetail_20' ) start [2025-02-06 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411566', 'tblTempUsageDetail_20' ) end [2025-02-06 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411566', 'tblTempVendorCDR_20' ) start [2025-02-06 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411566', 'tblTempVendorCDR_20' ) end [2025-02-06 01:07:19] Production.INFO: ProcessCDR(1,14411566,1,1,2) [2025-02-06 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411566', 'tblTempUsageDetail_20' ) start [2025-02-06 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411566', 'tblTempUsageDetail_20' ) end [2025-02-06 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:07:22] Production.INFO: ==13256== Releasing lock... [2025-02-06 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:07:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:08:05 [end_date_ymd] => 2025-02-06 01:08:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:08:05' and `end` < '2025-02-06 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-06 01:08:18] Production.INFO: count ==361 [2025-02-06 01:08:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:08:05 - End Time 2025-02-06 01:08:05 [2025-02-06 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411571', 'tblTempUsageDetail_20' ) start [2025-02-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411571', 'tblTempUsageDetail_20' ) end [2025-02-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411571', 'tblTempVendorCDR_20' ) start [2025-02-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411571', 'tblTempVendorCDR_20' ) end [2025-02-06 01:08:18] Production.INFO: ProcessCDR(1,14411571,1,1,2) [2025-02-06 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411571', 'tblTempUsageDetail_20' ) start [2025-02-06 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411571', 'tblTempUsageDetail_20' ) end [2025-02-06 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:08:22] Production.INFO: ==13332== Releasing lock... [2025-02-06 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:08:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:09:05 [end_date_ymd] => 2025-02-06 01:09:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:09:05' and `end` < '2025-02-06 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-06 01:09:19] Production.INFO: count ==360 [2025-02-06 01:09:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:09:05 - End Time 2025-02-06 01:09:05 [2025-02-06 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411576', 'tblTempUsageDetail_20' ) start [2025-02-06 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411576', 'tblTempUsageDetail_20' ) end [2025-02-06 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411576', 'tblTempVendorCDR_20' ) start [2025-02-06 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411576', 'tblTempVendorCDR_20' ) end [2025-02-06 01:09:19] Production.INFO: ProcessCDR(1,14411576,1,1,2) [2025-02-06 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411576', 'tblTempUsageDetail_20' ) start [2025-02-06 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411576', 'tblTempUsageDetail_20' ) end [2025-02-06 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:09:22] Production.INFO: ==13409== Releasing lock... [2025-02-06 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:09:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:10:06 [end_date_ymd] => 2025-02-06 01:10:06 [RateCDR] => 1 ) [2025-02-06 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-05 22:10:06' and `end` < '2025-02-06 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-06 01:10:19] Production.INFO: count ==368 [2025-02-06 01:10:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:10:06 - End Time 2025-02-06 01:10:06 [2025-02-06 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411582', 'tblTempUsageDetail_20' ) start [2025-02-06 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411582', 'tblTempUsageDetail_20' ) end [2025-02-06 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411582', 'tblTempVendorCDR_20' ) start [2025-02-06 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411582', 'tblTempVendorCDR_20' ) end [2025-02-06 01:10:19] Production.INFO: ProcessCDR(1,14411582,1,1,2) [2025-02-06 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411582', 'tblTempUsageDetail_20' ) start [2025-02-06 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411582', 'tblTempUsageDetail_20' ) end [2025-02-06 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:10:22] Production.INFO: ==13490== Releasing lock... [2025-02-06 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:10:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:11:05 [end_date_ymd] => 2025-02-06 01:11:05 [RateCDR] => 1 ) [2025-02-06 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:11:05' and `end` < '2025-02-06 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:11:18] Production.INFO: count ==380 [2025-02-06 01:11:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:11:05 - End Time 2025-02-06 01:11:05 [2025-02-06 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411587', 'tblTempUsageDetail_20' ) start [2025-02-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411587', 'tblTempUsageDetail_20' ) end [2025-02-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411587', 'tblTempVendorCDR_20' ) start [2025-02-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411587', 'tblTempVendorCDR_20' ) end [2025-02-06 01:11:18] Production.INFO: ProcessCDR(1,14411587,1,1,2) [2025-02-06 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411587', 'tblTempUsageDetail_20' ) start [2025-02-06 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411587', 'tblTempUsageDetail_20' ) end [2025-02-06 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:11:21] Production.INFO: ==13563== Releasing lock... [2025-02-06 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:12:05 [end_date_ymd] => 2025-02-06 01:12:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:12:05' and `end` < '2025-02-06 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-06 01:12:18] Production.INFO: count ==383 [2025-02-06 01:12:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:12:05 - End Time 2025-02-06 01:12:05 [2025-02-06 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411592', 'tblTempUsageDetail_20' ) start [2025-02-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411592', 'tblTempUsageDetail_20' ) end [2025-02-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411592', 'tblTempVendorCDR_20' ) start [2025-02-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411592', 'tblTempVendorCDR_20' ) end [2025-02-06 01:12:18] Production.INFO: ProcessCDR(1,14411592,1,1,2) [2025-02-06 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411592', 'tblTempUsageDetail_20' ) start [2025-02-06 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411592', 'tblTempUsageDetail_20' ) end [2025-02-06 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:12:21] Production.INFO: ==13639== Releasing lock... [2025-02-06 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:12:21] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:13:06 [end_date_ymd] => 2025-02-06 01:13:06 [RateCDR] => 1 ) [2025-02-06 01: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-05 22:13:06' and `end` < '2025-02-06 01: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-06 01:13:19] Production.INFO: count ==379 [2025-02-06 01:13:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:13:06 - End Time 2025-02-06 01:13:06 [2025-02-06 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411597', 'tblTempUsageDetail_20' ) start [2025-02-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411597', 'tblTempUsageDetail_20' ) end [2025-02-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411597', 'tblTempVendorCDR_20' ) start [2025-02-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411597', 'tblTempVendorCDR_20' ) end [2025-02-06 01:13:19] Production.INFO: ProcessCDR(1,14411597,1,1,2) [2025-02-06 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411597', 'tblTempUsageDetail_20' ) start [2025-02-06 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411597', 'tblTempUsageDetail_20' ) end [2025-02-06 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:13:22] Production.INFO: ==13751== Releasing lock... [2025-02-06 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:13:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:14:05 [end_date_ymd] => 2025-02-06 01:14:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:14:05' and `end` < '2025-02-06 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-06 01:14:18] Production.INFO: count ==379 [2025-02-06 01:14:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:14:05 - End Time 2025-02-06 01:14:05 [2025-02-06 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411602', 'tblTempUsageDetail_20' ) start [2025-02-06 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411602', 'tblTempUsageDetail_20' ) end [2025-02-06 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411602', 'tblTempVendorCDR_20' ) start [2025-02-06 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411602', 'tblTempVendorCDR_20' ) end [2025-02-06 01:14:18] Production.INFO: ProcessCDR(1,14411602,1,1,2) [2025-02-06 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411602', 'tblTempUsageDetail_20' ) start [2025-02-06 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411602', 'tblTempUsageDetail_20' ) end [2025-02-06 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:14:21] Production.INFO: ==13822== Releasing lock... [2025-02-06 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:14:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:15:05 [end_date_ymd] => 2025-02-06 01:15:05 [RateCDR] => 1 ) [2025-02-06 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:15:05' and `end` < '2025-02-06 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:15:18] Production.INFO: count ==379 [2025-02-06 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:15:05 - End Time 2025-02-06 01:15:05 [2025-02-06 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411607', 'tblTempUsageDetail_20' ) start [2025-02-06 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411607', 'tblTempUsageDetail_20' ) end [2025-02-06 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411607', 'tblTempVendorCDR_20' ) start [2025-02-06 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411607', 'tblTempVendorCDR_20' ) end [2025-02-06 01:15:18] Production.INFO: ProcessCDR(1,14411607,1,1,2) [2025-02-06 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411607', 'tblTempUsageDetail_20' ) start [2025-02-06 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411607', 'tblTempUsageDetail_20' ) end [2025-02-06 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:15:21] Production.INFO: ==13897== Releasing lock... [2025-02-06 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:16:05 [end_date_ymd] => 2025-02-06 01:16:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:16:05' and `end` < '2025-02-06 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-06 01:16:19] Production.INFO: count ==377 [2025-02-06 01:16:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:16:05 - End Time 2025-02-06 01:16:05 [2025-02-06 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411612', 'tblTempUsageDetail_20' ) start [2025-02-06 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411612', 'tblTempUsageDetail_20' ) end [2025-02-06 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411612', 'tblTempVendorCDR_20' ) start [2025-02-06 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411612', 'tblTempVendorCDR_20' ) end [2025-02-06 01:16:19] Production.INFO: ProcessCDR(1,14411612,1,1,2) [2025-02-06 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411612', 'tblTempUsageDetail_20' ) start [2025-02-06 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411612', 'tblTempUsageDetail_20' ) end [2025-02-06 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:16:22] Production.INFO: ==13978== Releasing lock... [2025-02-06 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:16:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:17:05 [end_date_ymd] => 2025-02-06 01:17:05 [RateCDR] => 1 ) [2025-02-06 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:17:05' and `end` < '2025-02-06 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:17:18] Production.INFO: count ==374 [2025-02-06 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:17:05 - End Time 2025-02-06 01:17:05 [2025-02-06 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411617', 'tblTempUsageDetail_20' ) start [2025-02-06 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411617', 'tblTempUsageDetail_20' ) end [2025-02-06 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411617', 'tblTempVendorCDR_20' ) start [2025-02-06 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411617', 'tblTempVendorCDR_20' ) end [2025-02-06 01:17:18] Production.INFO: ProcessCDR(1,14411617,1,1,2) [2025-02-06 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411617', 'tblTempUsageDetail_20' ) start [2025-02-06 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411617', 'tblTempUsageDetail_20' ) end [2025-02-06 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:17:21] Production.INFO: ==14052== Releasing lock... [2025-02-06 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:18:05 [end_date_ymd] => 2025-02-06 01:18:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:18:05' and `end` < '2025-02-06 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-06 01:18:18] Production.INFO: count ==370 [2025-02-06 01:18:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:18:05 - End Time 2025-02-06 01:18:05 [2025-02-06 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411622', 'tblTempUsageDetail_20' ) start [2025-02-06 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411622', 'tblTempUsageDetail_20' ) end [2025-02-06 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411622', 'tblTempVendorCDR_20' ) start [2025-02-06 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411622', 'tblTempVendorCDR_20' ) end [2025-02-06 01:18:18] Production.INFO: ProcessCDR(1,14411622,1,1,2) [2025-02-06 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411622', 'tblTempUsageDetail_20' ) start [2025-02-06 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411622', 'tblTempUsageDetail_20' ) end [2025-02-06 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:18:23] Production.INFO: ==14125== Releasing lock... [2025-02-06 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:18:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:19:05 [end_date_ymd] => 2025-02-06 01:19:05 [RateCDR] => 1 ) [2025-02-06 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:19:05' and `end` < '2025-02-06 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:19:18] Production.INFO: count ==370 [2025-02-06 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:19:05 - End Time 2025-02-06 01:19:05 [2025-02-06 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411627', 'tblTempUsageDetail_20' ) start [2025-02-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411627', 'tblTempUsageDetail_20' ) end [2025-02-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411627', 'tblTempVendorCDR_20' ) start [2025-02-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411627', 'tblTempVendorCDR_20' ) end [2025-02-06 01:19:18] Production.INFO: ProcessCDR(1,14411627,1,1,2) [2025-02-06 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411627', 'tblTempUsageDetail_20' ) start [2025-02-06 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411627', 'tblTempUsageDetail_20' ) end [2025-02-06 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:19:21] Production.INFO: ==14203== Releasing lock... [2025-02-06 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:20:06 [end_date_ymd] => 2025-02-06 01:20:06 [RateCDR] => 1 ) [2025-02-06 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-05 22:20:06' and `end` < '2025-02-06 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-06 01:20:19] Production.INFO: count ==376 [2025-02-06 01:20:20] Production.ERROR: pbx CDR StartTime 2025-02-05 22:20:06 - End Time 2025-02-06 01:20:06 [2025-02-06 01:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411633', 'tblTempUsageDetail_20' ) start [2025-02-06 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411633', 'tblTempUsageDetail_20' ) end [2025-02-06 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411633', 'tblTempVendorCDR_20' ) start [2025-02-06 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411633', 'tblTempVendorCDR_20' ) end [2025-02-06 01:20:20] Production.INFO: ProcessCDR(1,14411633,1,1,2) [2025-02-06 01:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411633', 'tblTempUsageDetail_20' ) start [2025-02-06 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411633', 'tblTempUsageDetail_20' ) end [2025-02-06 01:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:20:24] Production.INFO: ==14282== Releasing lock... [2025-02-06 01:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:20:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:21:05 [end_date_ymd] => 2025-02-06 01:21:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:21:05' and `end` < '2025-02-06 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-06 01:21:20] Production.INFO: count ==372 [2025-02-06 01:21:20] Production.ERROR: pbx CDR StartTime 2025-02-05 22:21:05 - End Time 2025-02-06 01:21:05 [2025-02-06 01:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411638', 'tblTempUsageDetail_20' ) start [2025-02-06 01:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411638', 'tblTempUsageDetail_20' ) end [2025-02-06 01:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411638', 'tblTempVendorCDR_20' ) start [2025-02-06 01:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411638', 'tblTempVendorCDR_20' ) end [2025-02-06 01:21:20] Production.INFO: ProcessCDR(1,14411638,1,1,2) [2025-02-06 01:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411638', 'tblTempUsageDetail_20' ) start [2025-02-06 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411638', 'tblTempUsageDetail_20' ) end [2025-02-06 01:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:21:23] Production.INFO: ==14354== Releasing lock... [2025-02-06 01:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:21:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:22:05 [end_date_ymd] => 2025-02-06 01:22:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:22:05' and `end` < '2025-02-06 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-06 01:22:18] Production.INFO: count ==362 [2025-02-06 01:22:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:22:05 - End Time 2025-02-06 01:22:05 [2025-02-06 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411643', 'tblTempUsageDetail_20' ) start [2025-02-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411643', 'tblTempUsageDetail_20' ) end [2025-02-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411643', 'tblTempVendorCDR_20' ) start [2025-02-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411643', 'tblTempVendorCDR_20' ) end [2025-02-06 01:22:18] Production.INFO: ProcessCDR(1,14411643,1,1,2) [2025-02-06 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411643', 'tblTempUsageDetail_20' ) start [2025-02-06 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411643', 'tblTempUsageDetail_20' ) end [2025-02-06 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:22:21] Production.INFO: ==14435== Releasing lock... [2025-02-06 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:23:04 [end_date_ymd] => 2025-02-06 01:23:04 [RateCDR] => 1 ) [2025-02-06 01: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-05 22:23:04' and `end` < '2025-02-06 01: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-06 01:23:17] Production.INFO: count ==358 [2025-02-06 01:23:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:23:04 - End Time 2025-02-06 01:23:04 [2025-02-06 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411648', 'tblTempUsageDetail_20' ) start [2025-02-06 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411648', 'tblTempUsageDetail_20' ) end [2025-02-06 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411648', 'tblTempVendorCDR_20' ) start [2025-02-06 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411648', 'tblTempVendorCDR_20' ) end [2025-02-06 01:23:18] Production.INFO: ProcessCDR(1,14411648,1,1,2) [2025-02-06 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411648', 'tblTempUsageDetail_20' ) start [2025-02-06 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411648', 'tblTempUsageDetail_20' ) end [2025-02-06 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:23:21] Production.INFO: ==14513== Releasing lock... [2025-02-06 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:23:21] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:24:05 [end_date_ymd] => 2025-02-06 01:24:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:24:05' and `end` < '2025-02-06 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-06 01:24:20] Production.INFO: count ==358 [2025-02-06 01:24:20] Production.ERROR: pbx CDR StartTime 2025-02-05 22:24:05 - End Time 2025-02-06 01:24:05 [2025-02-06 01:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411653', 'tblTempUsageDetail_20' ) start [2025-02-06 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411653', 'tblTempUsageDetail_20' ) end [2025-02-06 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411653', 'tblTempVendorCDR_20' ) start [2025-02-06 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411653', 'tblTempVendorCDR_20' ) end [2025-02-06 01:24:20] Production.INFO: ProcessCDR(1,14411653,1,1,2) [2025-02-06 01:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411653', 'tblTempUsageDetail_20' ) start [2025-02-06 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411653', 'tblTempUsageDetail_20' ) end [2025-02-06 01:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:24:23] Production.INFO: ==14588== Releasing lock... [2025-02-06 01:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:24:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:25:06 [end_date_ymd] => 2025-02-06 01:25:06 [RateCDR] => 1 ) [2025-02-06 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-05 22:25:06' and `end` < '2025-02-06 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-06 01:25:19] Production.INFO: count ==366 [2025-02-06 01:25:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:25:06 - End Time 2025-02-06 01:25:06 [2025-02-06 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411658', 'tblTempUsageDetail_20' ) start [2025-02-06 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411658', 'tblTempUsageDetail_20' ) end [2025-02-06 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411658', 'tblTempVendorCDR_20' ) start [2025-02-06 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411658', 'tblTempVendorCDR_20' ) end [2025-02-06 01:25:19] Production.INFO: ProcessCDR(1,14411658,1,1,2) [2025-02-06 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411658', 'tblTempUsageDetail_20' ) start [2025-02-06 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411658', 'tblTempUsageDetail_20' ) end [2025-02-06 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:25:22] Production.INFO: ==14662== Releasing lock... [2025-02-06 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:26:05 [end_date_ymd] => 2025-02-06 01:26:05 [RateCDR] => 1 ) [2025-02-06 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:26:05' and `end` < '2025-02-06 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:26:18] Production.INFO: count ==374 [2025-02-06 01:26:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:26:05 - End Time 2025-02-06 01:26:05 [2025-02-06 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411663', 'tblTempUsageDetail_20' ) start [2025-02-06 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411663', 'tblTempUsageDetail_20' ) end [2025-02-06 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411663', 'tblTempVendorCDR_20' ) start [2025-02-06 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411663', 'tblTempVendorCDR_20' ) end [2025-02-06 01:26:18] Production.INFO: ProcessCDR(1,14411663,1,1,2) [2025-02-06 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411663', 'tblTempUsageDetail_20' ) start [2025-02-06 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411663', 'tblTempUsageDetail_20' ) end [2025-02-06 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:26:21] Production.INFO: ==14736== Releasing lock... [2025-02-06 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:27:05 [end_date_ymd] => 2025-02-06 01:27:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:27:05' and `end` < '2025-02-06 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-06 01:27:18] Production.INFO: count ==378 [2025-02-06 01:27:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:27:05 - End Time 2025-02-06 01:27:05 [2025-02-06 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411668', 'tblTempUsageDetail_20' ) start [2025-02-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411668', 'tblTempUsageDetail_20' ) end [2025-02-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411668', 'tblTempVendorCDR_20' ) start [2025-02-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411668', 'tblTempVendorCDR_20' ) end [2025-02-06 01:27:18] Production.INFO: ProcessCDR(1,14411668,1,1,2) [2025-02-06 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411668', 'tblTempUsageDetail_20' ) start [2025-02-06 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411668', 'tblTempUsageDetail_20' ) end [2025-02-06 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:27:22] Production.INFO: ==14813== Releasing lock... [2025-02-06 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:28:05 [end_date_ymd] => 2025-02-06 01:28:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:28:05' and `end` < '2025-02-06 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-06 01:28:19] Production.INFO: count ==382 [2025-02-06 01:28:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:28:05 - End Time 2025-02-06 01:28:05 [2025-02-06 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411673', 'tblTempUsageDetail_20' ) start [2025-02-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411673', 'tblTempUsageDetail_20' ) end [2025-02-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411673', 'tblTempVendorCDR_20' ) start [2025-02-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411673', 'tblTempVendorCDR_20' ) end [2025-02-06 01:28:19] Production.INFO: ProcessCDR(1,14411673,1,1,2) [2025-02-06 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411673', 'tblTempUsageDetail_20' ) start [2025-02-06 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411673', 'tblTempUsageDetail_20' ) end [2025-02-06 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:28:22] Production.INFO: ==14884== Releasing lock... [2025-02-06 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:28:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:29:06 [end_date_ymd] => 2025-02-06 01:29:06 [RateCDR] => 1 ) [2025-02-06 01:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:29:06' and `end` < '2025-02-06 01:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:29:19] Production.INFO: count ==380 [2025-02-06 01:29:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:29:06 - End Time 2025-02-06 01:29:06 [2025-02-06 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411678', 'tblTempUsageDetail_20' ) start [2025-02-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411678', 'tblTempUsageDetail_20' ) end [2025-02-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411678', 'tblTempVendorCDR_20' ) start [2025-02-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411678', 'tblTempVendorCDR_20' ) end [2025-02-06 01:29:19] Production.INFO: ProcessCDR(1,14411678,1,1,2) [2025-02-06 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411678', 'tblTempUsageDetail_20' ) start [2025-02-06 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411678', 'tblTempUsageDetail_20' ) end [2025-02-06 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:29:22] Production.INFO: ==14998== Releasing lock... [2025-02-06 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-06 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:30:06 [end_date_ymd] => 2025-02-06 01:30:06 [RateCDR] => 1 ) [2025-02-06 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-05 22:30:06' and `end` < '2025-02-06 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-06 01:30:19] Production.INFO: count ==393 [2025-02-06 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:30:06 - End Time 2025-02-06 01:30:06 [2025-02-06 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411684', 'tblTempUsageDetail_20' ) start [2025-02-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411684', 'tblTempUsageDetail_20' ) end [2025-02-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411684', 'tblTempVendorCDR_20' ) start [2025-02-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411684', 'tblTempVendorCDR_20' ) end [2025-02-06 01:30:19] Production.INFO: ProcessCDR(1,14411684,1,1,2) [2025-02-06 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411684', 'tblTempUsageDetail_20' ) start [2025-02-06 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411684', 'tblTempUsageDetail_20' ) end [2025-02-06 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:30:22] Production.INFO: ==15074== Releasing lock... [2025-02-06 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:31:06 [end_date_ymd] => 2025-02-06 01:31:06 [RateCDR] => 1 ) [2025-02-06 01: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-05 22:31:06' and `end` < '2025-02-06 01: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-06 01:31:20] Production.INFO: count ==393 [2025-02-06 01:31:20] Production.ERROR: pbx CDR StartTime 2025-02-05 22:31:06 - End Time 2025-02-06 01:31:06 [2025-02-06 01:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411689', 'tblTempUsageDetail_20' ) start [2025-02-06 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411689', 'tblTempUsageDetail_20' ) end [2025-02-06 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411689', 'tblTempVendorCDR_20' ) start [2025-02-06 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411689', 'tblTempVendorCDR_20' ) end [2025-02-06 01:31:20] Production.INFO: ProcessCDR(1,14411689,1,1,2) [2025-02-06 01:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411689', 'tblTempUsageDetail_20' ) start [2025-02-06 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411689', 'tblTempUsageDetail_20' ) end [2025-02-06 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:31:23] Production.INFO: ==15154== Releasing lock... [2025-02-06 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:31:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:32:05 [end_date_ymd] => 2025-02-06 01:32:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:32:05' and `end` < '2025-02-06 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-06 01:32:18] Production.INFO: count ==393 [2025-02-06 01:32:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:32:05 - End Time 2025-02-06 01:32:05 [2025-02-06 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411694', 'tblTempUsageDetail_20' ) start [2025-02-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411694', 'tblTempUsageDetail_20' ) end [2025-02-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411694', 'tblTempVendorCDR_20' ) start [2025-02-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411694', 'tblTempVendorCDR_20' ) end [2025-02-06 01:32:18] Production.INFO: ProcessCDR(1,14411694,1,1,2) [2025-02-06 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411694', 'tblTempUsageDetail_20' ) start [2025-02-06 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411694', 'tblTempUsageDetail_20' ) end [2025-02-06 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:32:21] Production.INFO: ==15223== Releasing lock... [2025-02-06 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:33:05 [end_date_ymd] => 2025-02-06 01:33:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:33:05' and `end` < '2025-02-06 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-06 01:33:19] Production.INFO: count ==389 [2025-02-06 01:33:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:33:05 - End Time 2025-02-06 01:33:05 [2025-02-06 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411699', 'tblTempUsageDetail_20' ) start [2025-02-06 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411699', 'tblTempUsageDetail_20' ) end [2025-02-06 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411699', 'tblTempVendorCDR_20' ) start [2025-02-06 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411699', 'tblTempVendorCDR_20' ) end [2025-02-06 01:33:19] Production.INFO: ProcessCDR(1,14411699,1,1,2) [2025-02-06 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411699', 'tblTempUsageDetail_20' ) start [2025-02-06 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411699', 'tblTempUsageDetail_20' ) end [2025-02-06 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:33:22] Production.INFO: ==15302== Releasing lock... [2025-02-06 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:33:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:34:05 [end_date_ymd] => 2025-02-06 01:34:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:34:05' and `end` < '2025-02-06 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-06 01:34:19] Production.INFO: count ==384 [2025-02-06 01:34:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:34:05 - End Time 2025-02-06 01:34:05 [2025-02-06 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411704', 'tblTempUsageDetail_20' ) start [2025-02-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411704', 'tblTempUsageDetail_20' ) end [2025-02-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411704', 'tblTempVendorCDR_20' ) start [2025-02-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411704', 'tblTempVendorCDR_20' ) end [2025-02-06 01:34:19] Production.INFO: ProcessCDR(1,14411704,1,1,2) [2025-02-06 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411704', 'tblTempUsageDetail_20' ) start [2025-02-06 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411704', 'tblTempUsageDetail_20' ) end [2025-02-06 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:34:22] Production.INFO: ==15376== Releasing lock... [2025-02-06 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:34:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-06 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:35:06 [end_date_ymd] => 2025-02-06 01:35:06 [RateCDR] => 1 ) [2025-02-06 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-05 22:35:06' and `end` < '2025-02-06 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-06 01:35:18] Production.INFO: count ==384 [2025-02-06 01:35:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:35:06 - End Time 2025-02-06 01:35:06 [2025-02-06 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411709', 'tblTempUsageDetail_20' ) start [2025-02-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411709', 'tblTempUsageDetail_20' ) end [2025-02-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411709', 'tblTempVendorCDR_20' ) start [2025-02-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411709', 'tblTempVendorCDR_20' ) end [2025-02-06 01:35:19] Production.INFO: ProcessCDR(1,14411709,1,1,2) [2025-02-06 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411709', 'tblTempUsageDetail_20' ) start [2025-02-06 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411709', 'tblTempUsageDetail_20' ) end [2025-02-06 01:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:35:23] Production.INFO: ==15449== Releasing lock... [2025-02-06 01:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:35:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:36:05 [end_date_ymd] => 2025-02-06 01:36:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:36:05' and `end` < '2025-02-06 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-06 01:36:19] Production.INFO: count ==384 [2025-02-06 01:36:20] Production.ERROR: pbx CDR StartTime 2025-02-05 22:36:05 - End Time 2025-02-06 01:36:05 [2025-02-06 01:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411714', 'tblTempUsageDetail_20' ) start [2025-02-06 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411714', 'tblTempUsageDetail_20' ) end [2025-02-06 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411714', 'tblTempVendorCDR_20' ) start [2025-02-06 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411714', 'tblTempVendorCDR_20' ) end [2025-02-06 01:36:20] Production.INFO: ProcessCDR(1,14411714,1,1,2) [2025-02-06 01:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411714', 'tblTempUsageDetail_20' ) start [2025-02-06 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411714', 'tblTempUsageDetail_20' ) end [2025-02-06 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:36:23] Production.INFO: ==15529== Releasing lock... [2025-02-06 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:36:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:37:05 [end_date_ymd] => 2025-02-06 01:37:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:37:05' and `end` < '2025-02-06 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-06 01:37:18] Production.INFO: count ==384 [2025-02-06 01:37:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:37:05 - End Time 2025-02-06 01:37:05 [2025-02-06 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411719', 'tblTempUsageDetail_20' ) start [2025-02-06 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411719', 'tblTempUsageDetail_20' ) end [2025-02-06 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411719', 'tblTempVendorCDR_20' ) start [2025-02-06 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411719', 'tblTempVendorCDR_20' ) end [2025-02-06 01:37:19] Production.INFO: ProcessCDR(1,14411719,1,1,2) [2025-02-06 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411719', 'tblTempUsageDetail_20' ) start [2025-02-06 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411719', 'tblTempUsageDetail_20' ) end [2025-02-06 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:37:22] Production.INFO: ==15601== Releasing lock... [2025-02-06 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-06 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:38:05 [end_date_ymd] => 2025-02-06 01:38:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:38:05' and `end` < '2025-02-06 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-06 01:38:18] Production.INFO: count ==383 [2025-02-06 01:38:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:38:05 - End Time 2025-02-06 01:38:05 [2025-02-06 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411724', 'tblTempUsageDetail_20' ) start [2025-02-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411724', 'tblTempUsageDetail_20' ) end [2025-02-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411724', 'tblTempVendorCDR_20' ) start [2025-02-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411724', 'tblTempVendorCDR_20' ) end [2025-02-06 01:38:18] Production.INFO: ProcessCDR(1,14411724,1,1,2) [2025-02-06 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411724', 'tblTempUsageDetail_20' ) start [2025-02-06 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411724', 'tblTempUsageDetail_20' ) end [2025-02-06 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:38:22] Production.INFO: ==15675== Releasing lock... [2025-02-06 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-06 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:39:05 [end_date_ymd] => 2025-02-06 01:39:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:39:05' and `end` < '2025-02-06 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-06 01:39:19] Production.INFO: count ==379 [2025-02-06 01:39:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:39:05 - End Time 2025-02-06 01:39:05 [2025-02-06 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411729', 'tblTempUsageDetail_20' ) start [2025-02-06 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411729', 'tblTempUsageDetail_20' ) end [2025-02-06 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411729', 'tblTempVendorCDR_20' ) start [2025-02-06 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411729', 'tblTempVendorCDR_20' ) end [2025-02-06 01:39:19] Production.INFO: ProcessCDR(1,14411729,1,1,2) [2025-02-06 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411729', 'tblTempUsageDetail_20' ) start [2025-02-06 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411729', 'tblTempUsageDetail_20' ) end [2025-02-06 01:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:39:23] Production.INFO: ==15755== Releasing lock... [2025-02-06 01:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:39:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-06 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:40:07 [end_date_ymd] => 2025-02-06 01:40:07 [RateCDR] => 1 ) [2025-02-06 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-05 22:40:07' and `end` < '2025-02-06 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-06 01:40:20] Production.INFO: count ==384 [2025-02-06 01:40:20] Production.ERROR: pbx CDR StartTime 2025-02-05 22:40:07 - End Time 2025-02-06 01:40:07 [2025-02-06 01:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411734', 'tblTempUsageDetail_20' ) start [2025-02-06 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411734', 'tblTempUsageDetail_20' ) end [2025-02-06 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411734', 'tblTempVendorCDR_20' ) start [2025-02-06 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411734', 'tblTempVendorCDR_20' ) end [2025-02-06 01:40:20] Production.INFO: ProcessCDR(1,14411734,1,1,2) [2025-02-06 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411734', 'tblTempUsageDetail_20' ) start [2025-02-06 01:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411734', 'tblTempUsageDetail_20' ) end [2025-02-06 01:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:40:24] Production.INFO: ==15834== Releasing lock... [2025-02-06 01:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:40:24] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:41:05 [end_date_ymd] => 2025-02-06 01:41:05 [RateCDR] => 1 ) [2025-02-06 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:41:05' and `end` < '2025-02-06 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:41:19] Production.INFO: count ==386 [2025-02-06 01:41:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:41:05 - End Time 2025-02-06 01:41:05 [2025-02-06 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411740', 'tblTempUsageDetail_20' ) start [2025-02-06 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411740', 'tblTempUsageDetail_20' ) end [2025-02-06 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411740', 'tblTempVendorCDR_20' ) start [2025-02-06 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411740', 'tblTempVendorCDR_20' ) end [2025-02-06 01:41:19] Production.INFO: ProcessCDR(1,14411740,1,1,2) [2025-02-06 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411740', 'tblTempUsageDetail_20' ) start [2025-02-06 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411740', 'tblTempUsageDetail_20' ) end [2025-02-06 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:41:23] Production.INFO: ==15911== Releasing lock... [2025-02-06 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:41:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-06 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:42:06 [end_date_ymd] => 2025-02-06 01:42:06 [RateCDR] => 1 ) [2025-02-06 01: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-05 22:42:06' and `end` < '2025-02-06 01: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-06 01:42:19] Production.INFO: count ==386 [2025-02-06 01:42:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:42:06 - End Time 2025-02-06 01:42:06 [2025-02-06 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411745', 'tblTempUsageDetail_20' ) start [2025-02-06 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411745', 'tblTempUsageDetail_20' ) end [2025-02-06 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411745', 'tblTempVendorCDR_20' ) start [2025-02-06 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411745', 'tblTempVendorCDR_20' ) end [2025-02-06 01:42:19] Production.INFO: ProcessCDR(1,14411745,1,1,2) [2025-02-06 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411745', 'tblTempUsageDetail_20' ) start [2025-02-06 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411745', 'tblTempUsageDetail_20' ) end [2025-02-06 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:42:23] Production.INFO: ==15984== Releasing lock... [2025-02-06 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:42:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-06 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:43:05 [end_date_ymd] => 2025-02-06 01:43:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:43:05' and `end` < '2025-02-06 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-06 01:43:18] Production.INFO: count ==387 [2025-02-06 01:43:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:43:05 - End Time 2025-02-06 01:43:05 [2025-02-06 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411750', 'tblTempUsageDetail_20' ) start [2025-02-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411750', 'tblTempUsageDetail_20' ) end [2025-02-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411750', 'tblTempVendorCDR_20' ) start [2025-02-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411750', 'tblTempVendorCDR_20' ) end [2025-02-06 01:43:18] Production.INFO: ProcessCDR(1,14411750,1,1,2) [2025-02-06 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411750', 'tblTempUsageDetail_20' ) start [2025-02-06 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411750', 'tblTempUsageDetail_20' ) end [2025-02-06 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:43:22] Production.INFO: ==16055== Releasing lock... [2025-02-06 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:43:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:44:05 [end_date_ymd] => 2025-02-06 01:44:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:44:05' and `end` < '2025-02-06 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-06 01:44:18] Production.INFO: count ==387 [2025-02-06 01:44:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:44:05 - End Time 2025-02-06 01:44:05 [2025-02-06 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411755', 'tblTempUsageDetail_20' ) start [2025-02-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411755', 'tblTempUsageDetail_20' ) end [2025-02-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411755', 'tblTempVendorCDR_20' ) start [2025-02-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411755', 'tblTempVendorCDR_20' ) end [2025-02-06 01:44:19] Production.INFO: ProcessCDR(1,14411755,1,1,2) [2025-02-06 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411755', 'tblTempUsageDetail_20' ) start [2025-02-06 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411755', 'tblTempUsageDetail_20' ) end [2025-02-06 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:44:22] Production.INFO: ==16169== Releasing lock... [2025-02-06 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:44:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:45:05 [end_date_ymd] => 2025-02-06 01:45:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:45:05' and `end` < '2025-02-06 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-06 01:45:18] Production.INFO: count ==383 [2025-02-06 01:45:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:45:05 - End Time 2025-02-06 01:45:05 [2025-02-06 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411760', 'tblTempUsageDetail_20' ) start [2025-02-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411760', 'tblTempUsageDetail_20' ) end [2025-02-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411760', 'tblTempVendorCDR_20' ) start [2025-02-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411760', 'tblTempVendorCDR_20' ) end [2025-02-06 01:45:18] Production.INFO: ProcessCDR(1,14411760,1,1,2) [2025-02-06 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411760', 'tblTempUsageDetail_20' ) start [2025-02-06 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411760', 'tblTempUsageDetail_20' ) end [2025-02-06 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:45:22] Production.INFO: ==16244== Releasing lock... [2025-02-06 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:45:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:46:06 [end_date_ymd] => 2025-02-06 01:46:06 [RateCDR] => 1 ) [2025-02-06 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-05 22:46:06' and `end` < '2025-02-06 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-06 01:46:20] Production.INFO: count ==382 [2025-02-06 01:46:20] Production.ERROR: pbx CDR StartTime 2025-02-05 22:46:06 - End Time 2025-02-06 01:46:06 [2025-02-06 01:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411765', 'tblTempUsageDetail_20' ) start [2025-02-06 01:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411765', 'tblTempUsageDetail_20' ) end [2025-02-06 01:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411765', 'tblTempVendorCDR_20' ) start [2025-02-06 01:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411765', 'tblTempVendorCDR_20' ) end [2025-02-06 01:46:20] Production.INFO: ProcessCDR(1,14411765,1,1,2) [2025-02-06 01:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411765', 'tblTempUsageDetail_20' ) start [2025-02-06 01:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411765', 'tblTempUsageDetail_20' ) end [2025-02-06 01:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:46:24] Production.INFO: ==16319== Releasing lock... [2025-02-06 01:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:46:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:47:05 [end_date_ymd] => 2025-02-06 01:47:05 [RateCDR] => 1 ) [2025-02-06 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:47:05' and `end` < '2025-02-06 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:47:18] Production.INFO: count ==376 [2025-02-06 01:47:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:47:05 - End Time 2025-02-06 01:47:05 [2025-02-06 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411770', 'tblTempUsageDetail_20' ) start [2025-02-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411770', 'tblTempUsageDetail_20' ) end [2025-02-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411770', 'tblTempVendorCDR_20' ) start [2025-02-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411770', 'tblTempVendorCDR_20' ) end [2025-02-06 01:47:18] Production.INFO: ProcessCDR(1,14411770,1,1,2) [2025-02-06 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411770', 'tblTempUsageDetail_20' ) start [2025-02-06 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411770', 'tblTempUsageDetail_20' ) end [2025-02-06 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:47:22] Production.INFO: ==16393== Releasing lock... [2025-02-06 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:47:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:48:06 [end_date_ymd] => 2025-02-06 01:48:06 [RateCDR] => 1 ) [2025-02-06 01: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-05 22:48:06' and `end` < '2025-02-06 01: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-06 01:48:19] Production.INFO: count ==368 [2025-02-06 01:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:48:06 - End Time 2025-02-06 01:48:06 [2025-02-06 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411775', 'tblTempUsageDetail_20' ) start [2025-02-06 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411775', 'tblTempUsageDetail_20' ) end [2025-02-06 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411775', 'tblTempVendorCDR_20' ) start [2025-02-06 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411775', 'tblTempVendorCDR_20' ) end [2025-02-06 01:48:19] Production.INFO: ProcessCDR(1,14411775,1,1,2) [2025-02-06 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411775', 'tblTempUsageDetail_20' ) start [2025-02-06 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411775', 'tblTempUsageDetail_20' ) end [2025-02-06 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:48:22] Production.INFO: ==16468== Releasing lock... [2025-02-06 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:48:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:49:05 [end_date_ymd] => 2025-02-06 01:49:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:49:05' and `end` < '2025-02-06 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-06 01:49:18] Production.INFO: count ==366 [2025-02-06 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:49:05 - End Time 2025-02-06 01:49:05 [2025-02-06 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411780', 'tblTempUsageDetail_20' ) start [2025-02-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411780', 'tblTempUsageDetail_20' ) end [2025-02-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411780', 'tblTempVendorCDR_20' ) start [2025-02-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411780', 'tblTempVendorCDR_20' ) end [2025-02-06 01:49:18] Production.INFO: ProcessCDR(1,14411780,1,1,2) [2025-02-06 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411780', 'tblTempUsageDetail_20' ) start [2025-02-06 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411780', 'tblTempUsageDetail_20' ) end [2025-02-06 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:49:22] Production.INFO: ==16539== Releasing lock... [2025-02-06 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:50:06 [end_date_ymd] => 2025-02-06 01:50:06 [RateCDR] => 1 ) [2025-02-06 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-05 22:50:06' and `end` < '2025-02-06 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-06 01:50:19] Production.INFO: count ==370 [2025-02-06 01:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:50:06 - End Time 2025-02-06 01:50:06 [2025-02-06 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411786', 'tblTempUsageDetail_20' ) start [2025-02-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411786', 'tblTempUsageDetail_20' ) end [2025-02-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411786', 'tblTempVendorCDR_20' ) start [2025-02-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411786', 'tblTempVendorCDR_20' ) end [2025-02-06 01:50:20] Production.INFO: ProcessCDR(1,14411786,1,1,2) [2025-02-06 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411786', 'tblTempUsageDetail_20' ) start [2025-02-06 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411786', 'tblTempUsageDetail_20' ) end [2025-02-06 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:50:23] Production.INFO: ==16624== Releasing lock... [2025-02-06 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:50:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:51:05 [end_date_ymd] => 2025-02-06 01:51:05 [RateCDR] => 1 ) [2025-02-06 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:51:05' and `end` < '2025-02-06 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:51:19] Production.INFO: count ==366 [2025-02-06 01:51:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:51:05 - End Time 2025-02-06 01:51:05 [2025-02-06 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411791', 'tblTempUsageDetail_20' ) start [2025-02-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411791', 'tblTempUsageDetail_20' ) end [2025-02-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411791', 'tblTempVendorCDR_20' ) start [2025-02-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411791', 'tblTempVendorCDR_20' ) end [2025-02-06 01:51:19] Production.INFO: ProcessCDR(1,14411791,1,1,2) [2025-02-06 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411791', 'tblTempUsageDetail_20' ) start [2025-02-06 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411791', 'tblTempUsageDetail_20' ) end [2025-02-06 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:51:22] Production.INFO: ==16703== Releasing lock... [2025-02-06 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:51:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:52:06 [end_date_ymd] => 2025-02-06 01:52:06 [RateCDR] => 1 ) [2025-02-06 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:52:06' and `end` < '2025-02-06 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:52:19] Production.INFO: count ==363 [2025-02-06 01:52:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:52:06 - End Time 2025-02-06 01:52:06 [2025-02-06 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411796', 'tblTempUsageDetail_20' ) start [2025-02-06 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411796', 'tblTempUsageDetail_20' ) end [2025-02-06 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411796', 'tblTempVendorCDR_20' ) start [2025-02-06 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411796', 'tblTempVendorCDR_20' ) end [2025-02-06 01:52:19] Production.INFO: ProcessCDR(1,14411796,1,1,2) [2025-02-06 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411796', 'tblTempUsageDetail_20' ) start [2025-02-06 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411796', 'tblTempUsageDetail_20' ) end [2025-02-06 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:52:22] Production.INFO: ==16776== Releasing lock... [2025-02-06 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:52:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:53:05 [end_date_ymd] => 2025-02-06 01:53:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:53:05' and `end` < '2025-02-06 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-06 01:53:18] Production.INFO: count ==361 [2025-02-06 01:53:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:53:05 - End Time 2025-02-06 01:53:05 [2025-02-06 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411801', 'tblTempUsageDetail_20' ) start [2025-02-06 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411801', 'tblTempUsageDetail_20' ) end [2025-02-06 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411801', 'tblTempVendorCDR_20' ) start [2025-02-06 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411801', 'tblTempVendorCDR_20' ) end [2025-02-06 01:53:19] Production.INFO: ProcessCDR(1,14411801,1,1,2) [2025-02-06 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411801', 'tblTempUsageDetail_20' ) start [2025-02-06 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411801', 'tblTempUsageDetail_20' ) end [2025-02-06 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:53:22] Production.INFO: ==16849== Releasing lock... [2025-02-06 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:54:06 [end_date_ymd] => 2025-02-06 01:54:06 [RateCDR] => 1 ) [2025-02-06 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:54:06' and `end` < '2025-02-06 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:54:19] Production.INFO: count ==360 [2025-02-06 01:54:20] Production.ERROR: pbx CDR StartTime 2025-02-05 22:54:06 - End Time 2025-02-06 01:54:06 [2025-02-06 01:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411806', 'tblTempUsageDetail_20' ) start [2025-02-06 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411806', 'tblTempUsageDetail_20' ) end [2025-02-06 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411806', 'tblTempVendorCDR_20' ) start [2025-02-06 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411806', 'tblTempVendorCDR_20' ) end [2025-02-06 01:54:20] Production.INFO: ProcessCDR(1,14411806,1,1,2) [2025-02-06 01:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411806', 'tblTempUsageDetail_20' ) start [2025-02-06 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411806', 'tblTempUsageDetail_20' ) end [2025-02-06 01:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:54:23] Production.INFO: ==16920== Releasing lock... [2025-02-06 01:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:54:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:55:05 [end_date_ymd] => 2025-02-06 01:55:05 [RateCDR] => 1 ) [2025-02-06 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-05 22:55:05' and `end` < '2025-02-06 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-06 01:55:19] Production.INFO: count ==358 [2025-02-06 01:55:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:55:05 - End Time 2025-02-06 01:55:05 [2025-02-06 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411811', 'tblTempUsageDetail_20' ) start [2025-02-06 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411811', 'tblTempUsageDetail_20' ) end [2025-02-06 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411811', 'tblTempVendorCDR_20' ) start [2025-02-06 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411811', 'tblTempVendorCDR_20' ) end [2025-02-06 01:55:19] Production.INFO: ProcessCDR(1,14411811,1,1,2) [2025-02-06 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411811', 'tblTempUsageDetail_20' ) start [2025-02-06 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411811', 'tblTempUsageDetail_20' ) end [2025-02-06 01:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:55:23] Production.INFO: ==16990== Releasing lock... [2025-02-06 01:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:55:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:56:06 [end_date_ymd] => 2025-02-06 01:56:06 [RateCDR] => 1 ) [2025-02-06 01: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-05 22:56:06' and `end` < '2025-02-06 01: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-06 01:56:21] Production.INFO: count ==357 [2025-02-06 01:56:21] Production.ERROR: pbx CDR StartTime 2025-02-05 22:56:06 - End Time 2025-02-06 01:56:06 [2025-02-06 01:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411816', 'tblTempUsageDetail_20' ) start [2025-02-06 01:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411816', 'tblTempUsageDetail_20' ) end [2025-02-06 01:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411816', 'tblTempVendorCDR_20' ) start [2025-02-06 01:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411816', 'tblTempVendorCDR_20' ) end [2025-02-06 01:56:21] Production.INFO: ProcessCDR(1,14411816,1,1,2) [2025-02-06 01:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411816', 'tblTempUsageDetail_20' ) start [2025-02-06 01:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411816', 'tblTempUsageDetail_20' ) end [2025-02-06 01:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:56:25] Production.INFO: ==17065== Releasing lock... [2025-02-06 01:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:56:25] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:57:05 [end_date_ymd] => 2025-02-06 01:57:05 [RateCDR] => 1 ) [2025-02-06 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 22:57:05' and `end` < '2025-02-06 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 01:57:18] Production.INFO: count ==357 [2025-02-06 01:57:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:57:05 - End Time 2025-02-06 01:57:05 [2025-02-06 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411821', 'tblTempUsageDetail_20' ) start [2025-02-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411821', 'tblTempUsageDetail_20' ) end [2025-02-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411821', 'tblTempVendorCDR_20' ) start [2025-02-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411821', 'tblTempVendorCDR_20' ) end [2025-02-06 01:57:18] Production.INFO: ProcessCDR(1,14411821,1,1,2) [2025-02-06 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411821', 'tblTempUsageDetail_20' ) start [2025-02-06 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411821', 'tblTempUsageDetail_20' ) end [2025-02-06 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:57:22] Production.INFO: ==17135== Releasing lock... [2025-02-06 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:57:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:58:06 [end_date_ymd] => 2025-02-06 01:58:06 [RateCDR] => 1 ) [2025-02-06 01: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-05 22:58:06' and `end` < '2025-02-06 01: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-06 01:58:19] Production.INFO: count ==357 [2025-02-06 01:58:19] Production.ERROR: pbx CDR StartTime 2025-02-05 22:58:06 - End Time 2025-02-06 01:58:06 [2025-02-06 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411826', 'tblTempUsageDetail_20' ) start [2025-02-06 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411826', 'tblTempUsageDetail_20' ) end [2025-02-06 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411826', 'tblTempVendorCDR_20' ) start [2025-02-06 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411826', 'tblTempVendorCDR_20' ) end [2025-02-06 01:58:19] Production.INFO: ProcessCDR(1,14411826,1,1,2) [2025-02-06 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411826', 'tblTempUsageDetail_20' ) start [2025-02-06 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411826', 'tblTempUsageDetail_20' ) end [2025-02-06 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:58:22] Production.INFO: ==17214== Releasing lock... [2025-02-06 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:58:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 22:59:06 [end_date_ymd] => 2025-02-06 01:59:06 [RateCDR] => 1 ) [2025-02-06 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-05 22:59:06' and `end` < '2025-02-06 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-06 01:59:18] Production.INFO: count ==355 [2025-02-06 01:59:18] Production.ERROR: pbx CDR StartTime 2025-02-05 22:59:06 - End Time 2025-02-06 01:59:06 [2025-02-06 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411831', 'tblTempUsageDetail_20' ) start [2025-02-06 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411831', 'tblTempUsageDetail_20' ) end [2025-02-06 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411831', 'tblTempVendorCDR_20' ) start [2025-02-06 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411831', 'tblTempVendorCDR_20' ) end [2025-02-06 01:59:19] Production.INFO: ProcessCDR(1,14411831,1,1,2) [2025-02-06 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411831', 'tblTempUsageDetail_20' ) start [2025-02-06 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411831', 'tblTempUsageDetail_20' ) end [2025-02-06 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 01:59:22] Production.INFO: ==17291== Releasing lock... [2025-02-06 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 01:59:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:00:07 [end_date_ymd] => 2025-02-06 02:00:07 [RateCDR] => 1 ) [2025-02-06 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-05 23:00:07' and `end` < '2025-02-06 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-06 02:00:20] Production.INFO: count ==368 [2025-02-06 02:00:20] Production.ERROR: pbx CDR StartTime 2025-02-05 23:00:07 - End Time 2025-02-06 02:00:07 [2025-02-06 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411837', 'tblTempUsageDetail_20' ) start [2025-02-06 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411837', 'tblTempUsageDetail_20' ) end [2025-02-06 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411837', 'tblTempVendorCDR_20' ) start [2025-02-06 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411837', 'tblTempVendorCDR_20' ) end [2025-02-06 02:00:20] Production.INFO: ProcessCDR(1,14411837,1,1,2) [2025-02-06 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411837', 'tblTempUsageDetail_20' ) start [2025-02-06 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411837', 'tblTempUsageDetail_20' ) end [2025-02-06 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:00:24] Production.INFO: ==17404== Releasing lock... [2025-02-06 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:00:24] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:01:05 [end_date_ymd] => 2025-02-06 02:01:05 [RateCDR] => 1 ) [2025-02-06 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:01:05' and `end` < '2025-02-06 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:01:20] Production.INFO: count ==370 [2025-02-06 02:01:20] Production.ERROR: pbx CDR StartTime 2025-02-05 23:01:05 - End Time 2025-02-06 02:01:05 [2025-02-06 02:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411842', 'tblTempUsageDetail_20' ) start [2025-02-06 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411842', 'tblTempUsageDetail_20' ) end [2025-02-06 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411842', 'tblTempVendorCDR_20' ) start [2025-02-06 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411842', 'tblTempVendorCDR_20' ) end [2025-02-06 02:01:20] Production.INFO: ProcessCDR(1,14411842,1,1,2) [2025-02-06 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411842', 'tblTempUsageDetail_20' ) start [2025-02-06 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411842', 'tblTempUsageDetail_20' ) end [2025-02-06 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:01:23] Production.INFO: ==17580== Releasing lock... [2025-02-06 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:01:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:02:05 [end_date_ymd] => 2025-02-06 02:02:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:02:05' and `end` < '2025-02-06 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-06 02:02:19] Production.INFO: count ==370 [2025-02-06 02:02:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:02:05 - End Time 2025-02-06 02:02:05 [2025-02-06 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411847', 'tblTempUsageDetail_20' ) start [2025-02-06 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411847', 'tblTempUsageDetail_20' ) end [2025-02-06 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411847', 'tblTempVendorCDR_20' ) start [2025-02-06 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411847', 'tblTempVendorCDR_20' ) end [2025-02-06 02:02:19] Production.INFO: ProcessCDR(1,14411847,1,1,2) [2025-02-06 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411847', 'tblTempUsageDetail_20' ) start [2025-02-06 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411847', 'tblTempUsageDetail_20' ) end [2025-02-06 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:02:23] Production.INFO: ==17651== Releasing lock... [2025-02-06 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:02:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:03:06 [end_date_ymd] => 2025-02-06 02:03:06 [RateCDR] => 1 ) [2025-02-06 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-05 23:03:06' and `end` < '2025-02-06 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-06 02:03:19] Production.INFO: count ==370 [2025-02-06 02:03:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:03:06 - End Time 2025-02-06 02:03:06 [2025-02-06 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411852', 'tblTempUsageDetail_20' ) start [2025-02-06 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411852', 'tblTempUsageDetail_20' ) end [2025-02-06 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411852', 'tblTempVendorCDR_20' ) start [2025-02-06 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411852', 'tblTempVendorCDR_20' ) end [2025-02-06 02:03:19] Production.INFO: ProcessCDR(1,14411852,1,1,2) [2025-02-06 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411852', 'tblTempUsageDetail_20' ) start [2025-02-06 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411852', 'tblTempUsageDetail_20' ) end [2025-02-06 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:03:22] Production.INFO: ==17725== Releasing lock... [2025-02-06 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:03:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:04:05 [end_date_ymd] => 2025-02-06 02:04:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:04:05' and `end` < '2025-02-06 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-06 02:04:19] Production.INFO: count ==375 [2025-02-06 02:04:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:04:05 - End Time 2025-02-06 02:04:05 [2025-02-06 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411857', 'tblTempUsageDetail_20' ) start [2025-02-06 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411857', 'tblTempUsageDetail_20' ) end [2025-02-06 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411857', 'tblTempVendorCDR_20' ) start [2025-02-06 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411857', 'tblTempVendorCDR_20' ) end [2025-02-06 02:04:19] Production.INFO: ProcessCDR(1,14411857,1,1,2) [2025-02-06 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411857', 'tblTempUsageDetail_20' ) start [2025-02-06 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411857', 'tblTempUsageDetail_20' ) end [2025-02-06 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:04:23] Production.INFO: ==17797== Releasing lock... [2025-02-06 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:04:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:05:05 [end_date_ymd] => 2025-02-06 02:05:05 [RateCDR] => 1 ) [2025-02-06 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:05:05' and `end` < '2025-02-06 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:05:18] Production.INFO: count ==372 [2025-02-06 02:05:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:05:05 - End Time 2025-02-06 02:05:05 [2025-02-06 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411862', 'tblTempUsageDetail_20' ) start [2025-02-06 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411862', 'tblTempUsageDetail_20' ) end [2025-02-06 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411862', 'tblTempVendorCDR_20' ) start [2025-02-06 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411862', 'tblTempVendorCDR_20' ) end [2025-02-06 02:05:18] Production.INFO: ProcessCDR(1,14411862,1,1,2) [2025-02-06 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411862', 'tblTempUsageDetail_20' ) start [2025-02-06 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411862', 'tblTempUsageDetail_20' ) end [2025-02-06 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:05:22] Production.INFO: ==17870== Releasing lock... [2025-02-06 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:05:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:06:05 [end_date_ymd] => 2025-02-06 02:06:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:06:05' and `end` < '2025-02-06 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-06 02:06:18] Production.INFO: count ==368 [2025-02-06 02:06:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:06:05 - End Time 2025-02-06 02:06:05 [2025-02-06 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411867', 'tblTempUsageDetail_20' ) start [2025-02-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411867', 'tblTempUsageDetail_20' ) end [2025-02-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411867', 'tblTempVendorCDR_20' ) start [2025-02-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411867', 'tblTempVendorCDR_20' ) end [2025-02-06 02:06:18] Production.INFO: ProcessCDR(1,14411867,1,1,2) [2025-02-06 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411867', 'tblTempUsageDetail_20' ) start [2025-02-06 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411867', 'tblTempUsageDetail_20' ) end [2025-02-06 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:06:22] Production.INFO: ==17943== Releasing lock... [2025-02-06 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:06:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:07:05 [end_date_ymd] => 2025-02-06 02:07:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:07:05' and `end` < '2025-02-06 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-06 02:07:18] Production.INFO: count ==368 [2025-02-06 02:07:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:07:05 - End Time 2025-02-06 02:07:05 [2025-02-06 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411872', 'tblTempUsageDetail_20' ) start [2025-02-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411872', 'tblTempUsageDetail_20' ) end [2025-02-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411872', 'tblTempVendorCDR_20' ) start [2025-02-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411872', 'tblTempVendorCDR_20' ) end [2025-02-06 02:07:18] Production.INFO: ProcessCDR(1,14411872,1,1,2) [2025-02-06 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411872', 'tblTempUsageDetail_20' ) start [2025-02-06 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411872', 'tblTempUsageDetail_20' ) end [2025-02-06 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:07:22] Production.INFO: ==18015== Releasing lock... [2025-02-06 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:07:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:08:05 [end_date_ymd] => 2025-02-06 02:08:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:08:05' and `end` < '2025-02-06 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-06 02:08:18] Production.INFO: count ==367 [2025-02-06 02:08:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:08:05 - End Time 2025-02-06 02:08:05 [2025-02-06 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411877', 'tblTempUsageDetail_20' ) start [2025-02-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411877', 'tblTempUsageDetail_20' ) end [2025-02-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411877', 'tblTempVendorCDR_20' ) start [2025-02-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411877', 'tblTempVendorCDR_20' ) end [2025-02-06 02:08:18] Production.INFO: ProcessCDR(1,14411877,1,1,2) [2025-02-06 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411877', 'tblTempUsageDetail_20' ) start [2025-02-06 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411877', 'tblTempUsageDetail_20' ) end [2025-02-06 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:08:22] Production.INFO: ==18088== Releasing lock... [2025-02-06 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:08:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:09:05 [end_date_ymd] => 2025-02-06 02:09:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:09:05' and `end` < '2025-02-06 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-06 02:09:18] Production.INFO: count ==367 [2025-02-06 02:09:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:09:05 - End Time 2025-02-06 02:09:05 [2025-02-06 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411882', 'tblTempUsageDetail_20' ) start [2025-02-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411882', 'tblTempUsageDetail_20' ) end [2025-02-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411882', 'tblTempVendorCDR_20' ) start [2025-02-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411882', 'tblTempVendorCDR_20' ) end [2025-02-06 02:09:19] Production.INFO: ProcessCDR(1,14411882,1,1,2) [2025-02-06 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411882', 'tblTempUsageDetail_20' ) start [2025-02-06 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411882', 'tblTempUsageDetail_20' ) end [2025-02-06 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:09:22] Production.INFO: ==18158== Releasing lock... [2025-02-06 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:09:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:10:06 [end_date_ymd] => 2025-02-06 02:10:06 [RateCDR] => 1 ) [2025-02-06 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-05 23:10:06' and `end` < '2025-02-06 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-06 02:10:21] Production.INFO: count ==375 [2025-02-06 02:10:21] Production.ERROR: pbx CDR StartTime 2025-02-05 23:10:06 - End Time 2025-02-06 02:10:06 [2025-02-06 02:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411888', 'tblTempUsageDetail_20' ) start [2025-02-06 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411888', 'tblTempUsageDetail_20' ) end [2025-02-06 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411888', 'tblTempVendorCDR_20' ) start [2025-02-06 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411888', 'tblTempVendorCDR_20' ) end [2025-02-06 02:10:21] Production.INFO: ProcessCDR(1,14411888,1,1,2) [2025-02-06 02:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411888', 'tblTempUsageDetail_20' ) start [2025-02-06 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411888', 'tblTempUsageDetail_20' ) end [2025-02-06 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:10:24] Production.INFO: ==18232== Releasing lock... [2025-02-06 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:10:24] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:11:06 [end_date_ymd] => 2025-02-06 02:11:06 [RateCDR] => 1 ) [2025-02-06 02: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-05 23:11:06' and `end` < '2025-02-06 02: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-06 02:11:19] Production.INFO: count ==381 [2025-02-06 02:11:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:11:06 - End Time 2025-02-06 02:11:06 [2025-02-06 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411893', 'tblTempUsageDetail_20' ) start [2025-02-06 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411893', 'tblTempUsageDetail_20' ) end [2025-02-06 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411893', 'tblTempVendorCDR_20' ) start [2025-02-06 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411893', 'tblTempVendorCDR_20' ) end [2025-02-06 02:11:19] Production.INFO: ProcessCDR(1,14411893,1,1,2) [2025-02-06 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411893', 'tblTempUsageDetail_20' ) start [2025-02-06 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411893', 'tblTempUsageDetail_20' ) end [2025-02-06 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:11:23] Production.INFO: ==18307== Releasing lock... [2025-02-06 02:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:11:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:12:05 [end_date_ymd] => 2025-02-06 02:12:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:12:05' and `end` < '2025-02-06 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-06 02:12:19] Production.INFO: count ==381 [2025-02-06 02:12:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:12:05 - End Time 2025-02-06 02:12:05 [2025-02-06 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411898', 'tblTempUsageDetail_20' ) start [2025-02-06 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411898', 'tblTempUsageDetail_20' ) end [2025-02-06 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411898', 'tblTempVendorCDR_20' ) start [2025-02-06 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411898', 'tblTempVendorCDR_20' ) end [2025-02-06 02:12:19] Production.INFO: ProcessCDR(1,14411898,1,1,2) [2025-02-06 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411898', 'tblTempUsageDetail_20' ) start [2025-02-06 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411898', 'tblTempUsageDetail_20' ) end [2025-02-06 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:12:22] Production.INFO: ==18380== Releasing lock... [2025-02-06 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:12:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:13:04 [end_date_ymd] => 2025-02-06 02:13:04 [RateCDR] => 1 ) [2025-02-06 02: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-05 23:13:04' and `end` < '2025-02-06 02: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-06 02:13:17] Production.INFO: count ==379 [2025-02-06 02:13:17] Production.ERROR: pbx CDR StartTime 2025-02-05 23:13:04 - End Time 2025-02-06 02:13:04 [2025-02-06 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411903', 'tblTempUsageDetail_20' ) start [2025-02-06 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411903', 'tblTempUsageDetail_20' ) end [2025-02-06 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411903', 'tblTempVendorCDR_20' ) start [2025-02-06 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411903', 'tblTempVendorCDR_20' ) end [2025-02-06 02:13:17] Production.INFO: ProcessCDR(1,14411903,1,1,2) [2025-02-06 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411903', 'tblTempUsageDetail_20' ) start [2025-02-06 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411903', 'tblTempUsageDetail_20' ) end [2025-02-06 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:13:20] Production.INFO: ==18451== Releasing lock... [2025-02-06 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:13:20] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:14:06 [end_date_ymd] => 2025-02-06 02:14:06 [RateCDR] => 1 ) [2025-02-06 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:14:06' and `end` < '2025-02-06 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:14:19] Production.INFO: count ==379 [2025-02-06 02:14:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:14:06 - End Time 2025-02-06 02:14:06 [2025-02-06 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411908', 'tblTempUsageDetail_20' ) start [2025-02-06 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411908', 'tblTempUsageDetail_20' ) end [2025-02-06 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411908', 'tblTempVendorCDR_20' ) start [2025-02-06 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411908', 'tblTempVendorCDR_20' ) end [2025-02-06 02:14:19] Production.INFO: ProcessCDR(1,14411908,1,1,2) [2025-02-06 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411908', 'tblTempUsageDetail_20' ) start [2025-02-06 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411908', 'tblTempUsageDetail_20' ) end [2025-02-06 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:14:22] Production.INFO: ==18525== Releasing lock... [2025-02-06 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:14:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:15:05 [end_date_ymd] => 2025-02-06 02:15:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:15:05' and `end` < '2025-02-06 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-06 02:15:18] Production.INFO: count ==379 [2025-02-06 02:15:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:15:05 - End Time 2025-02-06 02:15:05 [2025-02-06 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411913', 'tblTempUsageDetail_20' ) start [2025-02-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411913', 'tblTempUsageDetail_20' ) end [2025-02-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411913', 'tblTempVendorCDR_20' ) start [2025-02-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411913', 'tblTempVendorCDR_20' ) end [2025-02-06 02:15:18] Production.INFO: ProcessCDR(1,14411913,1,1,2) [2025-02-06 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411913', 'tblTempUsageDetail_20' ) start [2025-02-06 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411913', 'tblTempUsageDetail_20' ) end [2025-02-06 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:15:21] Production.INFO: ==18636== Releasing lock... [2025-02-06 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:15:21] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:16:05 [end_date_ymd] => 2025-02-06 02:16:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:16:05' and `end` < '2025-02-06 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-06 02:16:19] Production.INFO: count ==383 [2025-02-06 02:16:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:16:05 - End Time 2025-02-06 02:16:05 [2025-02-06 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411918', 'tblTempUsageDetail_20' ) start [2025-02-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411918', 'tblTempUsageDetail_20' ) end [2025-02-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411918', 'tblTempVendorCDR_20' ) start [2025-02-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411918', 'tblTempVendorCDR_20' ) end [2025-02-06 02:16:19] Production.INFO: ProcessCDR(1,14411918,1,1,2) [2025-02-06 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411918', 'tblTempUsageDetail_20' ) start [2025-02-06 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411918', 'tblTempUsageDetail_20' ) end [2025-02-06 02:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:16:23] Production.INFO: ==18711== Releasing lock... [2025-02-06 02:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:16:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:17:04 [end_date_ymd] => 2025-02-06 02:17:04 [RateCDR] => 1 ) [2025-02-06 02: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-05 23:17:04' and `end` < '2025-02-06 02: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-06 02:17:18] Production.INFO: count ==382 [2025-02-06 02:17:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:17:04 - End Time 2025-02-06 02:17:04 [2025-02-06 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411923', 'tblTempUsageDetail_20' ) start [2025-02-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411923', 'tblTempUsageDetail_20' ) end [2025-02-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411923', 'tblTempVendorCDR_20' ) start [2025-02-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411923', 'tblTempVendorCDR_20' ) end [2025-02-06 02:17:18] Production.INFO: ProcessCDR(1,14411923,1,1,2) [2025-02-06 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411923', 'tblTempUsageDetail_20' ) start [2025-02-06 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411923', 'tblTempUsageDetail_20' ) end [2025-02-06 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:17:21] Production.INFO: ==18786== Releasing lock... [2025-02-06 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:17:21] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:18:05 [end_date_ymd] => 2025-02-06 02:18:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:18:05' and `end` < '2025-02-06 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-06 02:18:19] Production.INFO: count ==373 [2025-02-06 02:18:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:18:05 - End Time 2025-02-06 02:18:05 [2025-02-06 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411928', 'tblTempUsageDetail_20' ) start [2025-02-06 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411928', 'tblTempUsageDetail_20' ) end [2025-02-06 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411928', 'tblTempVendorCDR_20' ) start [2025-02-06 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411928', 'tblTempVendorCDR_20' ) end [2025-02-06 02:18:19] Production.INFO: ProcessCDR(1,14411928,1,1,2) [2025-02-06 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411928', 'tblTempUsageDetail_20' ) start [2025-02-06 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411928', 'tblTempUsageDetail_20' ) end [2025-02-06 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:18:22] Production.INFO: ==18864== Releasing lock... [2025-02-06 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:19:06 [end_date_ymd] => 2025-02-06 02:19:06 [RateCDR] => 1 ) [2025-02-06 02: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-05 23:19:06' and `end` < '2025-02-06 02: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-06 02:19:20] Production.INFO: count ==368 [2025-02-06 02:19:20] Production.ERROR: pbx CDR StartTime 2025-02-05 23:19:06 - End Time 2025-02-06 02:19:06 [2025-02-06 02:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411933', 'tblTempUsageDetail_20' ) start [2025-02-06 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411933', 'tblTempUsageDetail_20' ) end [2025-02-06 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411933', 'tblTempVendorCDR_20' ) start [2025-02-06 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411933', 'tblTempVendorCDR_20' ) end [2025-02-06 02:19:20] Production.INFO: ProcessCDR(1,14411933,1,1,2) [2025-02-06 02:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411933', 'tblTempUsageDetail_20' ) start [2025-02-06 02:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411933', 'tblTempUsageDetail_20' ) end [2025-02-06 02:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:19:24] Production.INFO: ==18934== Releasing lock... [2025-02-06 02:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:19:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:20:06 [end_date_ymd] => 2025-02-06 02:20:06 [RateCDR] => 1 ) [2025-02-06 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-05 23:20:06' and `end` < '2025-02-06 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-06 02:20:19] Production.INFO: count ==373 [2025-02-06 02:20:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:20:06 - End Time 2025-02-06 02:20:06 [2025-02-06 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411939', 'tblTempUsageDetail_20' ) start [2025-02-06 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411939', 'tblTempUsageDetail_20' ) end [2025-02-06 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411939', 'tblTempVendorCDR_20' ) start [2025-02-06 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411939', 'tblTempVendorCDR_20' ) end [2025-02-06 02:20:19] Production.INFO: ProcessCDR(1,14411939,1,1,2) [2025-02-06 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411939', 'tblTempUsageDetail_20' ) start [2025-02-06 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411939', 'tblTempUsageDetail_20' ) end [2025-02-06 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:20:22] Production.INFO: ==19006== Releasing lock... [2025-02-06 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:20:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:21:06 [end_date_ymd] => 2025-02-06 02:21:06 [RateCDR] => 1 ) [2025-02-06 02: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-05 23:21:06' and `end` < '2025-02-06 02: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-06 02:21:19] Production.INFO: count ==373 [2025-02-06 02:21:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:21:06 - End Time 2025-02-06 02:21:06 [2025-02-06 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411944', 'tblTempUsageDetail_20' ) start [2025-02-06 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411944', 'tblTempUsageDetail_20' ) end [2025-02-06 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411944', 'tblTempVendorCDR_20' ) start [2025-02-06 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411944', 'tblTempVendorCDR_20' ) end [2025-02-06 02:21:20] Production.INFO: ProcessCDR(1,14411944,1,1,2) [2025-02-06 02:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411944', 'tblTempUsageDetail_20' ) start [2025-02-06 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411944', 'tblTempUsageDetail_20' ) end [2025-02-06 02:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:21:23] Production.INFO: ==19085== Releasing lock... [2025-02-06 02:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:21:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:22:05 [end_date_ymd] => 2025-02-06 02:22:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:22:05' and `end` < '2025-02-06 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-06 02:22:19] Production.INFO: count ==373 [2025-02-06 02:22:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:22:05 - End Time 2025-02-06 02:22:05 [2025-02-06 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411949', 'tblTempUsageDetail_20' ) start [2025-02-06 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411949', 'tblTempUsageDetail_20' ) end [2025-02-06 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411949', 'tblTempVendorCDR_20' ) start [2025-02-06 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411949', 'tblTempVendorCDR_20' ) end [2025-02-06 02:22:19] Production.INFO: ProcessCDR(1,14411949,1,1,2) [2025-02-06 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411949', 'tblTempUsageDetail_20' ) start [2025-02-06 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411949', 'tblTempUsageDetail_20' ) end [2025-02-06 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:22:22] Production.INFO: ==19158== Releasing lock... [2025-02-06 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:22:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:23:06 [end_date_ymd] => 2025-02-06 02:23:06 [RateCDR] => 1 ) [2025-02-06 02: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-05 23:23:06' and `end` < '2025-02-06 02: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-06 02:23:18] Production.INFO: count ==373 [2025-02-06 02:23:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:23:06 - End Time 2025-02-06 02:23:06 [2025-02-06 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411954', 'tblTempUsageDetail_20' ) start [2025-02-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411954', 'tblTempUsageDetail_20' ) end [2025-02-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411954', 'tblTempVendorCDR_20' ) start [2025-02-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411954', 'tblTempVendorCDR_20' ) end [2025-02-06 02:23:19] Production.INFO: ProcessCDR(1,14411954,1,1,2) [2025-02-06 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411954', 'tblTempUsageDetail_20' ) start [2025-02-06 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411954', 'tblTempUsageDetail_20' ) end [2025-02-06 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:23:22] Production.INFO: ==19234== Releasing lock... [2025-02-06 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:23:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:24:05 [end_date_ymd] => 2025-02-06 02:24:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:24:05' and `end` < '2025-02-06 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-06 02:24:19] Production.INFO: count ==373 [2025-02-06 02:24:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:24:05 - End Time 2025-02-06 02:24:05 [2025-02-06 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411959', 'tblTempUsageDetail_20' ) start [2025-02-06 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411959', 'tblTempUsageDetail_20' ) end [2025-02-06 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411959', 'tblTempVendorCDR_20' ) start [2025-02-06 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411959', 'tblTempVendorCDR_20' ) end [2025-02-06 02:24:19] Production.INFO: ProcessCDR(1,14411959,1,1,2) [2025-02-06 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411959', 'tblTempUsageDetail_20' ) start [2025-02-06 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411959', 'tblTempUsageDetail_20' ) end [2025-02-06 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:24:22] Production.INFO: ==19304== Releasing lock... [2025-02-06 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:24:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:25:05 [end_date_ymd] => 2025-02-06 02:25:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:25:05' and `end` < '2025-02-06 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-06 02:25:18] Production.INFO: count ==373 [2025-02-06 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:25:05 - End Time 2025-02-06 02:25:05 [2025-02-06 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411964', 'tblTempUsageDetail_20' ) start [2025-02-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411964', 'tblTempUsageDetail_20' ) end [2025-02-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411964', 'tblTempVendorCDR_20' ) start [2025-02-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411964', 'tblTempVendorCDR_20' ) end [2025-02-06 02:25:18] Production.INFO: ProcessCDR(1,14411964,1,1,2) [2025-02-06 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411964', 'tblTempUsageDetail_20' ) start [2025-02-06 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411964', 'tblTempUsageDetail_20' ) end [2025-02-06 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:25:21] Production.INFO: ==19379== Releasing lock... [2025-02-06 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:25:21] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:26:05 [end_date_ymd] => 2025-02-06 02:26:05 [RateCDR] => 1 ) [2025-02-06 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:26:05' and `end` < '2025-02-06 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:26:18] Production.INFO: count ==373 [2025-02-06 02:26:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:26:05 - End Time 2025-02-06 02:26:05 [2025-02-06 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411969', 'tblTempUsageDetail_20' ) start [2025-02-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411969', 'tblTempUsageDetail_20' ) end [2025-02-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411969', 'tblTempVendorCDR_20' ) start [2025-02-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411969', 'tblTempVendorCDR_20' ) end [2025-02-06 02:26:18] Production.INFO: ProcessCDR(1,14411969,1,1,2) [2025-02-06 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411969', 'tblTempUsageDetail_20' ) start [2025-02-06 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411969', 'tblTempUsageDetail_20' ) end [2025-02-06 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:26:22] Production.INFO: ==19450== Releasing lock... [2025-02-06 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:26:22] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:27:05 [end_date_ymd] => 2025-02-06 02:27:05 [RateCDR] => 1 ) [2025-02-06 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:27:05' and `end` < '2025-02-06 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:27:18] Production.INFO: count ==373 [2025-02-06 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:27:05 - End Time 2025-02-06 02:27:05 [2025-02-06 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411974', 'tblTempUsageDetail_20' ) start [2025-02-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411974', 'tblTempUsageDetail_20' ) end [2025-02-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411974', 'tblTempVendorCDR_20' ) start [2025-02-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411974', 'tblTempVendorCDR_20' ) end [2025-02-06 02:27:18] Production.INFO: ProcessCDR(1,14411974,1,1,2) [2025-02-06 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411974', 'tblTempUsageDetail_20' ) start [2025-02-06 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411974', 'tblTempUsageDetail_20' ) end [2025-02-06 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:27:21] Production.INFO: ==19521== Releasing lock... [2025-02-06 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:27:21] Production.INFO: 31 MB #Memory Used# [2025-02-06 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:28:05 [end_date_ymd] => 2025-02-06 02:28:05 [RateCDR] => 1 ) [2025-02-06 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:28:05' and `end` < '2025-02-06 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:28:18] Production.INFO: count ==370 [2025-02-06 02:28:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:28:05 - End Time 2025-02-06 02:28:05 [2025-02-06 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411979', 'tblTempUsageDetail_20' ) start [2025-02-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411979', 'tblTempUsageDetail_20' ) end [2025-02-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411979', 'tblTempVendorCDR_20' ) start [2025-02-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411979', 'tblTempVendorCDR_20' ) end [2025-02-06 02:28:18] Production.INFO: ProcessCDR(1,14411979,1,1,2) [2025-02-06 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411979', 'tblTempUsageDetail_20' ) start [2025-02-06 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411979', 'tblTempUsageDetail_20' ) end [2025-02-06 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:28:21] Production.INFO: ==19597== Releasing lock... [2025-02-06 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-06 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:29:05 [end_date_ymd] => 2025-02-06 02:29:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:29:05' and `end` < '2025-02-06 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-06 02:29:19] Production.INFO: count ==370 [2025-02-06 02:29:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:29:05 - End Time 2025-02-06 02:29:05 [2025-02-06 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411984', 'tblTempUsageDetail_20' ) start [2025-02-06 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411984', 'tblTempUsageDetail_20' ) end [2025-02-06 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411984', 'tblTempVendorCDR_20' ) start [2025-02-06 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411984', 'tblTempVendorCDR_20' ) end [2025-02-06 02:29:19] Production.INFO: ProcessCDR(1,14411984,1,1,2) [2025-02-06 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411984', 'tblTempUsageDetail_20' ) start [2025-02-06 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411984', 'tblTempUsageDetail_20' ) end [2025-02-06 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:29:22] Production.INFO: ==19672== Releasing lock... [2025-02-06 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-06 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:30:06 [end_date_ymd] => 2025-02-06 02:30:06 [RateCDR] => 1 ) [2025-02-06 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-05 23:30:06' and `end` < '2025-02-06 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-06 02:30:19] Production.INFO: count ==374 [2025-02-06 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:30:06 - End Time 2025-02-06 02:30:06 [2025-02-06 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411989', 'tblTempUsageDetail_20' ) start [2025-02-06 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411989', 'tblTempUsageDetail_20' ) end [2025-02-06 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411989', 'tblTempVendorCDR_20' ) start [2025-02-06 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411989', 'tblTempVendorCDR_20' ) end [2025-02-06 02:30:19] Production.INFO: ProcessCDR(1,14411989,1,1,2) [2025-02-06 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411989', 'tblTempUsageDetail_20' ) start [2025-02-06 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411989', 'tblTempUsageDetail_20' ) end [2025-02-06 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:30:22] Production.INFO: ==19747== Releasing lock... [2025-02-06 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-06 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:31:04 [end_date_ymd] => 2025-02-06 02:31:04 [RateCDR] => 1 ) [2025-02-06 02:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:31:04' and `end` < '2025-02-06 02:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:31:17] Production.INFO: count ==374 [2025-02-06 02:31:17] Production.ERROR: pbx CDR StartTime 2025-02-05 23:31:04 - End Time 2025-02-06 02:31:04 [2025-02-06 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411995', 'tblTempUsageDetail_20' ) start [2025-02-06 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14411995', 'tblTempUsageDetail_20' ) end [2025-02-06 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411995', 'tblTempVendorCDR_20' ) start [2025-02-06 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14411995', 'tblTempVendorCDR_20' ) end [2025-02-06 02:31:17] Production.INFO: ProcessCDR(1,14411995,1,1,2) [2025-02-06 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14411995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14411995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14411995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14411995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411995', 'tblTempUsageDetail_20' ) start [2025-02-06 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14411995', 'tblTempUsageDetail_20' ) end [2025-02-06 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:31:20] Production.INFO: ==19859== Releasing lock... [2025-02-06 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:31:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-06 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:32:05 [end_date_ymd] => 2025-02-06 02:32:05 [RateCDR] => 1 ) [2025-02-06 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:32:05' and `end` < '2025-02-06 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-06 02:32:19] Production.INFO: count ==369 [2025-02-06 02:32:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:32:05 - End Time 2025-02-06 02:32:05 [2025-02-06 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412000', 'tblTempUsageDetail_20' ) start [2025-02-06 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412000', 'tblTempUsageDetail_20' ) end [2025-02-06 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412000', 'tblTempVendorCDR_20' ) start [2025-02-06 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412000', 'tblTempVendorCDR_20' ) end [2025-02-06 02:32:19] Production.INFO: ProcessCDR(1,14412000,1,1,2) [2025-02-06 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412000', 'tblTempUsageDetail_20' ) start [2025-02-06 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412000', 'tblTempUsageDetail_20' ) end [2025-02-06 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:32:22] Production.INFO: ==19931== Releasing lock... [2025-02-06 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:33:06 [end_date_ymd] => 2025-02-06 02:33:06 [RateCDR] => 1 ) [2025-02-06 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-05 23:33:06' and `end` < '2025-02-06 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-06 02:33:20] Production.INFO: count ==368 [2025-02-06 02:33:20] Production.ERROR: pbx CDR StartTime 2025-02-05 23:33:06 - End Time 2025-02-06 02:33:06 [2025-02-06 02:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412005', 'tblTempUsageDetail_20' ) start [2025-02-06 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412005', 'tblTempUsageDetail_20' ) end [2025-02-06 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412005', 'tblTempVendorCDR_20' ) start [2025-02-06 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412005', 'tblTempVendorCDR_20' ) end [2025-02-06 02:33:20] Production.INFO: ProcessCDR(1,14412005,1,1,2) [2025-02-06 02:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412005', 'tblTempUsageDetail_20' ) start [2025-02-06 02:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412005', 'tblTempUsageDetail_20' ) end [2025-02-06 02:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:33:24] Production.INFO: ==20012== Releasing lock... [2025-02-06 02:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:33:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:34:05 [end_date_ymd] => 2025-02-06 02:34:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:34:05' and `end` < '2025-02-06 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-06 02:34:18] Production.INFO: count ==368 [2025-02-06 02:34:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:34:05 - End Time 2025-02-06 02:34:05 [2025-02-06 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412010', 'tblTempUsageDetail_20' ) start [2025-02-06 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412010', 'tblTempUsageDetail_20' ) end [2025-02-06 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412010', 'tblTempVendorCDR_20' ) start [2025-02-06 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412010', 'tblTempVendorCDR_20' ) end [2025-02-06 02:34:18] Production.INFO: ProcessCDR(1,14412010,1,1,2) [2025-02-06 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412010', 'tblTempUsageDetail_20' ) start [2025-02-06 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412010', 'tblTempUsageDetail_20' ) end [2025-02-06 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:34:21] Production.INFO: ==20091== Releasing lock... [2025-02-06 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:35:05 [end_date_ymd] => 2025-02-06 02:35:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:35:05' and `end` < '2025-02-06 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-06 02:35:18] Production.INFO: count ==368 [2025-02-06 02:35:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:35:05 - End Time 2025-02-06 02:35:05 [2025-02-06 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412015', 'tblTempUsageDetail_20' ) start [2025-02-06 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412015', 'tblTempUsageDetail_20' ) end [2025-02-06 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412015', 'tblTempVendorCDR_20' ) start [2025-02-06 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412015', 'tblTempVendorCDR_20' ) end [2025-02-06 02:35:18] Production.INFO: ProcessCDR(1,14412015,1,1,2) [2025-02-06 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412015', 'tblTempUsageDetail_20' ) start [2025-02-06 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412015', 'tblTempUsageDetail_20' ) end [2025-02-06 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:35:21] Production.INFO: ==20166== Releasing lock... [2025-02-06 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:36:05 [end_date_ymd] => 2025-02-06 02:36:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:36:05' and `end` < '2025-02-06 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-06 02:36:18] Production.INFO: count ==368 [2025-02-06 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:36:05 - End Time 2025-02-06 02:36:05 [2025-02-06 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412020', 'tblTempUsageDetail_20' ) start [2025-02-06 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412020', 'tblTempUsageDetail_20' ) end [2025-02-06 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412020', 'tblTempVendorCDR_20' ) start [2025-02-06 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412020', 'tblTempVendorCDR_20' ) end [2025-02-06 02:36:18] Production.INFO: ProcessCDR(1,14412020,1,1,2) [2025-02-06 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412020', 'tblTempUsageDetail_20' ) start [2025-02-06 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412020', 'tblTempUsageDetail_20' ) end [2025-02-06 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:36:21] Production.INFO: ==20240== Releasing lock... [2025-02-06 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:37:05 [end_date_ymd] => 2025-02-06 02:37:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:37:05' and `end` < '2025-02-06 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-06 02:37:19] Production.INFO: count ==368 [2025-02-06 02:37:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:37:05 - End Time 2025-02-06 02:37:05 [2025-02-06 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412025', 'tblTempUsageDetail_20' ) start [2025-02-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412025', 'tblTempUsageDetail_20' ) end [2025-02-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412025', 'tblTempVendorCDR_20' ) start [2025-02-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412025', 'tblTempVendorCDR_20' ) end [2025-02-06 02:37:19] Production.INFO: ProcessCDR(1,14412025,1,1,2) [2025-02-06 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412025', 'tblTempUsageDetail_20' ) start [2025-02-06 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412025', 'tblTempUsageDetail_20' ) end [2025-02-06 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:37:22] Production.INFO: ==20317== Releasing lock... [2025-02-06 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:38:05 [end_date_ymd] => 2025-02-06 02:38:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:38:05' and `end` < '2025-02-06 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-06 02:38:19] Production.INFO: count ==363 [2025-02-06 02:38:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:38:05 - End Time 2025-02-06 02:38:05 [2025-02-06 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412030', 'tblTempUsageDetail_20' ) start [2025-02-06 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412030', 'tblTempUsageDetail_20' ) end [2025-02-06 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412030', 'tblTempVendorCDR_20' ) start [2025-02-06 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412030', 'tblTempVendorCDR_20' ) end [2025-02-06 02:38:19] Production.INFO: ProcessCDR(1,14412030,1,1,2) [2025-02-06 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412030', 'tblTempUsageDetail_20' ) start [2025-02-06 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412030', 'tblTempUsageDetail_20' ) end [2025-02-06 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:38:22] Production.INFO: ==20394== Releasing lock... [2025-02-06 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:38:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-06 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:39:05 [end_date_ymd] => 2025-02-06 02:39:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:39:05' and `end` < '2025-02-06 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-06 02:39:19] Production.INFO: count ==363 [2025-02-06 02:39:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:39:05 - End Time 2025-02-06 02:39:05 [2025-02-06 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412035', 'tblTempUsageDetail_20' ) start [2025-02-06 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412035', 'tblTempUsageDetail_20' ) end [2025-02-06 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412035', 'tblTempVendorCDR_20' ) start [2025-02-06 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412035', 'tblTempVendorCDR_20' ) end [2025-02-06 02:39:19] Production.INFO: ProcessCDR(1,14412035,1,1,2) [2025-02-06 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412035', 'tblTempUsageDetail_20' ) start [2025-02-06 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412035', 'tblTempUsageDetail_20' ) end [2025-02-06 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:39:22] Production.INFO: ==20472== Releasing lock... [2025-02-06 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:39:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-06 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:40:07 [end_date_ymd] => 2025-02-06 02:40:07 [RateCDR] => 1 ) [2025-02-06 02:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:40:07' and `end` < '2025-02-06 02:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:40:20] Production.INFO: count ==369 [2025-02-06 02:40:20] Production.ERROR: pbx CDR StartTime 2025-02-05 23:40:07 - End Time 2025-02-06 02:40:07 [2025-02-06 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412040', 'tblTempUsageDetail_20' ) start [2025-02-06 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412040', 'tblTempUsageDetail_20' ) end [2025-02-06 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412040', 'tblTempVendorCDR_20' ) start [2025-02-06 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412040', 'tblTempVendorCDR_20' ) end [2025-02-06 02:40:20] Production.INFO: ProcessCDR(1,14412040,1,1,2) [2025-02-06 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412040', 'tblTempUsageDetail_20' ) start [2025-02-06 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412040', 'tblTempUsageDetail_20' ) end [2025-02-06 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:40:23] Production.INFO: ==20553== Releasing lock... [2025-02-06 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:40:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-06 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:41:05 [end_date_ymd] => 2025-02-06 02:41:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:41:05' and `end` < '2025-02-06 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-06 02:41:18] Production.INFO: count ==368 [2025-02-06 02:41:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:41:05 - End Time 2025-02-06 02:41:05 [2025-02-06 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412046', 'tblTempUsageDetail_20' ) start [2025-02-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412046', 'tblTempUsageDetail_20' ) end [2025-02-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412046', 'tblTempVendorCDR_20' ) start [2025-02-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412046', 'tblTempVendorCDR_20' ) end [2025-02-06 02:41:18] Production.INFO: ProcessCDR(1,14412046,1,1,2) [2025-02-06 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412046', 'tblTempUsageDetail_20' ) start [2025-02-06 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412046', 'tblTempUsageDetail_20' ) end [2025-02-06 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:41:21] Production.INFO: ==20633== Releasing lock... [2025-02-06 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:42:06 [end_date_ymd] => 2025-02-06 02:42:06 [RateCDR] => 1 ) [2025-02-06 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:42:06' and `end` < '2025-02-06 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:42:19] Production.INFO: count ==368 [2025-02-06 02:42:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:42:06 - End Time 2025-02-06 02:42:06 [2025-02-06 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412051', 'tblTempUsageDetail_20' ) start [2025-02-06 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412051', 'tblTempUsageDetail_20' ) end [2025-02-06 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412051', 'tblTempVendorCDR_20' ) start [2025-02-06 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412051', 'tblTempVendorCDR_20' ) end [2025-02-06 02:42:19] Production.INFO: ProcessCDR(1,14412051,1,1,2) [2025-02-06 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412051', 'tblTempUsageDetail_20' ) start [2025-02-06 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412051', 'tblTempUsageDetail_20' ) end [2025-02-06 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:42:22] Production.INFO: ==20710== Releasing lock... [2025-02-06 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:43:05 [end_date_ymd] => 2025-02-06 02:43:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:43:05' and `end` < '2025-02-06 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-06 02:43:19] Production.INFO: count ==365 [2025-02-06 02:43:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:43:05 - End Time 2025-02-06 02:43:05 [2025-02-06 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412056', 'tblTempUsageDetail_20' ) start [2025-02-06 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412056', 'tblTempUsageDetail_20' ) end [2025-02-06 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412056', 'tblTempVendorCDR_20' ) start [2025-02-06 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412056', 'tblTempVendorCDR_20' ) end [2025-02-06 02:43:19] Production.INFO: ProcessCDR(1,14412056,1,1,2) [2025-02-06 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412056', 'tblTempUsageDetail_20' ) start [2025-02-06 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412056', 'tblTempUsageDetail_20' ) end [2025-02-06 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:43:22] Production.INFO: ==20782== Releasing lock... [2025-02-06 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-06 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:44:06 [end_date_ymd] => 2025-02-06 02:44:06 [RateCDR] => 1 ) [2025-02-06 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:44:06' and `end` < '2025-02-06 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:44:19] Production.INFO: count ==364 [2025-02-06 02:44:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:44:06 - End Time 2025-02-06 02:44:06 [2025-02-06 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412061', 'tblTempUsageDetail_20' ) start [2025-02-06 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412061', 'tblTempUsageDetail_20' ) end [2025-02-06 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412061', 'tblTempVendorCDR_20' ) start [2025-02-06 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412061', 'tblTempVendorCDR_20' ) end [2025-02-06 02:44:19] Production.INFO: ProcessCDR(1,14412061,1,1,2) [2025-02-06 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412061', 'tblTempUsageDetail_20' ) start [2025-02-06 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412061', 'tblTempUsageDetail_20' ) end [2025-02-06 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:44:22] Production.INFO: ==20855== Releasing lock... [2025-02-06 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:44:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:45:05 [end_date_ymd] => 2025-02-06 02:45:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:45:05' and `end` < '2025-02-06 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-06 02:45:18] Production.INFO: count ==364 [2025-02-06 02:45:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:45:05 - End Time 2025-02-06 02:45:05 [2025-02-06 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412066', 'tblTempUsageDetail_20' ) start [2025-02-06 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412066', 'tblTempUsageDetail_20' ) end [2025-02-06 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412066', 'tblTempVendorCDR_20' ) start [2025-02-06 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412066', 'tblTempVendorCDR_20' ) end [2025-02-06 02:45:18] Production.INFO: ProcessCDR(1,14412066,1,1,2) [2025-02-06 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412066', 'tblTempUsageDetail_20' ) start [2025-02-06 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412066', 'tblTempUsageDetail_20' ) end [2025-02-06 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:45:21] Production.INFO: ==20928== Releasing lock... [2025-02-06 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:46:05 [end_date_ymd] => 2025-02-06 02:46:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:46:05' and `end` < '2025-02-06 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-06 02:46:19] Production.INFO: count ==364 [2025-02-06 02:46:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:46:05 - End Time 2025-02-06 02:46:05 [2025-02-06 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412071', 'tblTempUsageDetail_20' ) start [2025-02-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412071', 'tblTempUsageDetail_20' ) end [2025-02-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412071', 'tblTempVendorCDR_20' ) start [2025-02-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412071', 'tblTempVendorCDR_20' ) end [2025-02-06 02:46:19] Production.INFO: ProcessCDR(1,14412071,1,1,2) [2025-02-06 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412071', 'tblTempUsageDetail_20' ) start [2025-02-06 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412071', 'tblTempUsageDetail_20' ) end [2025-02-06 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:46:22] Production.INFO: ==21040== Releasing lock... [2025-02-06 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:47:05 [end_date_ymd] => 2025-02-06 02:47:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:47:05' and `end` < '2025-02-06 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-06 02:47:19] Production.INFO: count ==364 [2025-02-06 02:47:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:47:05 - End Time 2025-02-06 02:47:05 [2025-02-06 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412076', 'tblTempUsageDetail_20' ) start [2025-02-06 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412076', 'tblTempUsageDetail_20' ) end [2025-02-06 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412076', 'tblTempVendorCDR_20' ) start [2025-02-06 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412076', 'tblTempVendorCDR_20' ) end [2025-02-06 02:47:19] Production.INFO: ProcessCDR(1,14412076,1,1,2) [2025-02-06 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412076', 'tblTempUsageDetail_20' ) start [2025-02-06 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412076', 'tblTempUsageDetail_20' ) end [2025-02-06 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:47:22] Production.INFO: ==21118== Releasing lock... [2025-02-06 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:48:05 [end_date_ymd] => 2025-02-06 02:48:05 [RateCDR] => 1 ) [2025-02-06 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:48:05' and `end` < '2025-02-06 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:48:19] Production.INFO: count ==364 [2025-02-06 02:48:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:48:05 - End Time 2025-02-06 02:48:05 [2025-02-06 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412081', 'tblTempUsageDetail_20' ) start [2025-02-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412081', 'tblTempUsageDetail_20' ) end [2025-02-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412081', 'tblTempVendorCDR_20' ) start [2025-02-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412081', 'tblTempVendorCDR_20' ) end [2025-02-06 02:48:19] Production.INFO: ProcessCDR(1,14412081,1,1,2) [2025-02-06 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412081', 'tblTempUsageDetail_20' ) start [2025-02-06 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412081', 'tblTempUsageDetail_20' ) end [2025-02-06 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:48:23] Production.INFO: ==21193== Releasing lock... [2025-02-06 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:49:05 [end_date_ymd] => 2025-02-06 02:49:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:49:05' and `end` < '2025-02-06 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-06 02:49:18] Production.INFO: count ==364 [2025-02-06 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:49:05 - End Time 2025-02-06 02:49:05 [2025-02-06 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412086', 'tblTempUsageDetail_20' ) start [2025-02-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412086', 'tblTempUsageDetail_20' ) end [2025-02-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412086', 'tblTempVendorCDR_20' ) start [2025-02-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412086', 'tblTempVendorCDR_20' ) end [2025-02-06 02:49:18] Production.INFO: ProcessCDR(1,14412086,1,1,2) [2025-02-06 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412086', 'tblTempUsageDetail_20' ) start [2025-02-06 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412086', 'tblTempUsageDetail_20' ) end [2025-02-06 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:49:21] Production.INFO: ==21269== Releasing lock... [2025-02-06 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:50:06 [end_date_ymd] => 2025-02-06 02:50:06 [RateCDR] => 1 ) [2025-02-06 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-05 23:50:06' and `end` < '2025-02-06 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-06 02:50:19] Production.INFO: count ==370 [2025-02-06 02:50:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:50:06 - End Time 2025-02-06 02:50:06 [2025-02-06 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412092', 'tblTempUsageDetail_20' ) start [2025-02-06 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412092', 'tblTempUsageDetail_20' ) end [2025-02-06 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412092', 'tblTempVendorCDR_20' ) start [2025-02-06 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412092', 'tblTempVendorCDR_20' ) end [2025-02-06 02:50:19] Production.INFO: ProcessCDR(1,14412092,1,1,2) [2025-02-06 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412092', 'tblTempUsageDetail_20' ) start [2025-02-06 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412092', 'tblTempUsageDetail_20' ) end [2025-02-06 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:50:22] Production.INFO: ==21345== Releasing lock... [2025-02-06 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:51:06 [end_date_ymd] => 2025-02-06 02:51:06 [RateCDR] => 1 ) [2025-02-06 02: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-05 23:51:06' and `end` < '2025-02-06 02: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-06 02:51:19] Production.INFO: count ==370 [2025-02-06 02:51:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:51:06 - End Time 2025-02-06 02:51:06 [2025-02-06 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412097', 'tblTempUsageDetail_20' ) start [2025-02-06 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412097', 'tblTempUsageDetail_20' ) end [2025-02-06 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412097', 'tblTempVendorCDR_20' ) start [2025-02-06 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412097', 'tblTempVendorCDR_20' ) end [2025-02-06 02:51:19] Production.INFO: ProcessCDR(1,14412097,1,1,2) [2025-02-06 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412097', 'tblTempUsageDetail_20' ) start [2025-02-06 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412097', 'tblTempUsageDetail_20' ) end [2025-02-06 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:51:22] Production.INFO: ==21425== Releasing lock... [2025-02-06 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:52:05 [end_date_ymd] => 2025-02-06 02:52:05 [RateCDR] => 1 ) [2025-02-06 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:52:05' and `end` < '2025-02-06 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:52:19] Production.INFO: count ==371 [2025-02-06 02:52:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:52:05 - End Time 2025-02-06 02:52:05 [2025-02-06 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412102', 'tblTempUsageDetail_20' ) start [2025-02-06 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412102', 'tblTempUsageDetail_20' ) end [2025-02-06 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412102', 'tblTempVendorCDR_20' ) start [2025-02-06 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412102', 'tblTempVendorCDR_20' ) end [2025-02-06 02:52:19] Production.INFO: ProcessCDR(1,14412102,1,1,2) [2025-02-06 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412102', 'tblTempUsageDetail_20' ) start [2025-02-06 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412102', 'tblTempUsageDetail_20' ) end [2025-02-06 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:52:22] Production.INFO: ==21499== Releasing lock... [2025-02-06 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:53:05 [end_date_ymd] => 2025-02-06 02:53:05 [RateCDR] => 1 ) [2025-02-06 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-05 23:53:05' and `end` < '2025-02-06 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 02:53:19] Production.INFO: count ==365 [2025-02-06 02:53:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:53:05 - End Time 2025-02-06 02:53:05 [2025-02-06 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412107', 'tblTempUsageDetail_20' ) start [2025-02-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412107', 'tblTempUsageDetail_20' ) end [2025-02-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412107', 'tblTempVendorCDR_20' ) start [2025-02-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412107', 'tblTempVendorCDR_20' ) end [2025-02-06 02:53:19] Production.INFO: ProcessCDR(1,14412107,1,1,2) [2025-02-06 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412107', 'tblTempUsageDetail_20' ) start [2025-02-06 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412107', 'tblTempUsageDetail_20' ) end [2025-02-06 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:53:22] Production.INFO: ==21575== Releasing lock... [2025-02-06 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:54:05 [end_date_ymd] => 2025-02-06 02:54:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:54:05' and `end` < '2025-02-06 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-06 02:54:18] Production.INFO: count ==361 [2025-02-06 02:54:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:54:05 - End Time 2025-02-06 02:54:05 [2025-02-06 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412112', 'tblTempUsageDetail_20' ) start [2025-02-06 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412112', 'tblTempUsageDetail_20' ) end [2025-02-06 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412112', 'tblTempVendorCDR_20' ) start [2025-02-06 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412112', 'tblTempVendorCDR_20' ) end [2025-02-06 02:54:18] Production.INFO: ProcessCDR(1,14412112,1,1,2) [2025-02-06 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412112', 'tblTempUsageDetail_20' ) start [2025-02-06 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412112', 'tblTempUsageDetail_20' ) end [2025-02-06 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:54:21] Production.INFO: ==21646== Releasing lock... [2025-02-06 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:55:05 [end_date_ymd] => 2025-02-06 02:55:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:55:05' and `end` < '2025-02-06 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-06 02:55:18] Production.INFO: count ==360 [2025-02-06 02:55:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:55:05 - End Time 2025-02-06 02:55:05 [2025-02-06 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412117', 'tblTempUsageDetail_20' ) start [2025-02-06 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412117', 'tblTempUsageDetail_20' ) end [2025-02-06 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412117', 'tblTempVendorCDR_20' ) start [2025-02-06 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412117', 'tblTempVendorCDR_20' ) end [2025-02-06 02:55:18] Production.INFO: ProcessCDR(1,14412117,1,1,2) [2025-02-06 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412117', 'tblTempUsageDetail_20' ) start [2025-02-06 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412117', 'tblTempUsageDetail_20' ) end [2025-02-06 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:55:21] Production.INFO: ==21721== Releasing lock... [2025-02-06 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:56:05 [end_date_ymd] => 2025-02-06 02:56:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:56:05' and `end` < '2025-02-06 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-06 02:56:18] Production.INFO: count ==360 [2025-02-06 02:56:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:56:05 - End Time 2025-02-06 02:56:05 [2025-02-06 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412122', 'tblTempUsageDetail_20' ) start [2025-02-06 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412122', 'tblTempUsageDetail_20' ) end [2025-02-06 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412122', 'tblTempVendorCDR_20' ) start [2025-02-06 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412122', 'tblTempVendorCDR_20' ) end [2025-02-06 02:56:18] Production.INFO: ProcessCDR(1,14412122,1,1,2) [2025-02-06 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412122', 'tblTempUsageDetail_20' ) start [2025-02-06 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412122', 'tblTempUsageDetail_20' ) end [2025-02-06 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:56:21] Production.INFO: ==21804== Releasing lock... [2025-02-06 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:57:06 [end_date_ymd] => 2025-02-06 02:57:06 [RateCDR] => 1 ) [2025-02-06 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-05 23:57:06' and `end` < '2025-02-06 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-06 02:57:19] Production.INFO: count ==359 [2025-02-06 02:57:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:57:06 - End Time 2025-02-06 02:57:06 [2025-02-06 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412127', 'tblTempUsageDetail_20' ) start [2025-02-06 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412127', 'tblTempUsageDetail_20' ) end [2025-02-06 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412127', 'tblTempVendorCDR_20' ) start [2025-02-06 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412127', 'tblTempVendorCDR_20' ) end [2025-02-06 02:57:19] Production.INFO: ProcessCDR(1,14412127,1,1,2) [2025-02-06 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412127', 'tblTempUsageDetail_20' ) start [2025-02-06 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412127', 'tblTempUsageDetail_20' ) end [2025-02-06 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:57:22] Production.INFO: ==21878== Releasing lock... [2025-02-06 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:57:22] Production.INFO: 30 MB #Memory Used# [2025-02-06 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:58:05 [end_date_ymd] => 2025-02-06 02:58:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:58:05' and `end` < '2025-02-06 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-06 02:58:18] Production.INFO: count ==359 [2025-02-06 02:58:19] Production.ERROR: pbx CDR StartTime 2025-02-05 23:58:05 - End Time 2025-02-06 02:58:05 [2025-02-06 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412132', 'tblTempUsageDetail_20' ) start [2025-02-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412132', 'tblTempUsageDetail_20' ) end [2025-02-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412132', 'tblTempVendorCDR_20' ) start [2025-02-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412132', 'tblTempVendorCDR_20' ) end [2025-02-06 02:58:19] Production.INFO: ProcessCDR(1,14412132,1,1,2) [2025-02-06 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412132', 'tblTempUsageDetail_20' ) start [2025-02-06 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412132', 'tblTempUsageDetail_20' ) end [2025-02-06 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:58:22] Production.INFO: ==21955== Releasing lock... [2025-02-06 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:58:22] Production.INFO: 30 MB #Memory Used# [2025-02-06 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-05 23:59:05 [end_date_ymd] => 2025-02-06 02:59:05 [RateCDR] => 1 ) [2025-02-06 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-05 23:59:05' and `end` < '2025-02-06 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-06 02:59:18] Production.INFO: count ==359 [2025-02-06 02:59:18] Production.ERROR: pbx CDR StartTime 2025-02-05 23:59:05 - End Time 2025-02-06 02:59:05 [2025-02-06 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412137', 'tblTempUsageDetail_20' ) start [2025-02-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412137', 'tblTempUsageDetail_20' ) end [2025-02-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412137', 'tblTempVendorCDR_20' ) start [2025-02-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412137', 'tblTempVendorCDR_20' ) end [2025-02-06 02:59:18] Production.INFO: ProcessCDR(1,14412137,1,1,2) [2025-02-06 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412137', 'tblTempUsageDetail_20' ) start [2025-02-06 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412137', 'tblTempUsageDetail_20' ) end [2025-02-06 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 02:59:21] Production.INFO: ==22028== Releasing lock... [2025-02-06 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 02:59:21] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:00:05 [end_date_ymd] => 2025-02-06 03:00:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:00:05' and `end` < '2025-02-06 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-06 03:00:18] Production.INFO: count ==363 [2025-02-06 03:00:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:00:05 - End Time 2025-02-06 03:00:05 [2025-02-06 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412143', 'tblTempUsageDetail_20' ) start [2025-02-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412143', 'tblTempUsageDetail_20' ) end [2025-02-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412143', 'tblTempVendorCDR_20' ) start [2025-02-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412143', 'tblTempVendorCDR_20' ) end [2025-02-06 03:00:18] Production.INFO: ProcessCDR(1,14412143,1,1,2) [2025-02-06 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412143', 'tblTempUsageDetail_20' ) start [2025-02-06 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412143', 'tblTempUsageDetail_20' ) end [2025-02-06 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:00:21] Production.INFO: ==22102== Releasing lock... [2025-02-06 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:00:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:01:05 [end_date_ymd] => 2025-02-06 03:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:01:05' and `end` < '2025-02-06 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-06 03:01:18] Production.INFO: count ==360 [2025-02-06 03:01:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:01:05 - End Time 2025-02-06 03:01:05 [2025-02-06 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412148', 'tblTempUsageDetail_20' ) start [2025-02-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412148', 'tblTempUsageDetail_20' ) end [2025-02-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412148', 'tblTempVendorCDR_20' ) start [2025-02-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412148', 'tblTempVendorCDR_20' ) end [2025-02-06 03:01:18] Production.INFO: ProcessCDR(1,14412148,1,1,2) [2025-02-06 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412148', 'tblTempUsageDetail_20' ) start [2025-02-06 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412148', 'tblTempUsageDetail_20' ) end [2025-02-06 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:01:21] Production.INFO: ==22193== Releasing lock... [2025-02-06 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-06 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:02:05 [end_date_ymd] => 2025-02-06 03:02:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:02:05' and `end` < '2025-02-06 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-06 03:02:18] Production.INFO: count ==357 [2025-02-06 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:02:05 - End Time 2025-02-06 03:02:05 [2025-02-06 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412153', 'tblTempUsageDetail_20' ) start [2025-02-06 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412153', 'tblTempUsageDetail_20' ) end [2025-02-06 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412153', 'tblTempVendorCDR_20' ) start [2025-02-06 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412153', 'tblTempVendorCDR_20' ) end [2025-02-06 03:02:18] Production.INFO: ProcessCDR(1,14412153,1,1,2) [2025-02-06 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412153', 'tblTempUsageDetail_20' ) start [2025-02-06 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412153', 'tblTempUsageDetail_20' ) end [2025-02-06 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:02:21] Production.INFO: ==22381== Releasing lock... [2025-02-06 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:03:05 [end_date_ymd] => 2025-02-06 03:03:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:03:05' and `end` < '2025-02-06 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-06 03:03:19] Production.INFO: count ==356 [2025-02-06 03:03:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:03:05 - End Time 2025-02-06 03:03:05 [2025-02-06 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412158', 'tblTempUsageDetail_20' ) start [2025-02-06 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412158', 'tblTempUsageDetail_20' ) end [2025-02-06 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412158', 'tblTempVendorCDR_20' ) start [2025-02-06 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412158', 'tblTempVendorCDR_20' ) end [2025-02-06 03:03:19] Production.INFO: ProcessCDR(1,14412158,1,1,2) [2025-02-06 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412158', 'tblTempUsageDetail_20' ) start [2025-02-06 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412158', 'tblTempUsageDetail_20' ) end [2025-02-06 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:03:22] Production.INFO: ==22458== Releasing lock... [2025-02-06 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:04:05 [end_date_ymd] => 2025-02-06 03:04:05 [RateCDR] => 1 ) [2025-02-06 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:04:05' and `end` < '2025-02-06 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:04:19] Production.INFO: count ==355 [2025-02-06 03:04:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:04:05 - End Time 2025-02-06 03:04:05 [2025-02-06 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412163', 'tblTempUsageDetail_20' ) start [2025-02-06 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412163', 'tblTempUsageDetail_20' ) end [2025-02-06 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412163', 'tblTempVendorCDR_20' ) start [2025-02-06 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412163', 'tblTempVendorCDR_20' ) end [2025-02-06 03:04:19] Production.INFO: ProcessCDR(1,14412163,1,1,2) [2025-02-06 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412163', 'tblTempUsageDetail_20' ) start [2025-02-06 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412163', 'tblTempUsageDetail_20' ) end [2025-02-06 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:04:23] Production.INFO: ==22533== Releasing lock... [2025-02-06 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:05:05 [end_date_ymd] => 2025-02-06 03:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:05:05' and `end` < '2025-02-06 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-06 03:05:18] Production.INFO: count ==355 [2025-02-06 03:05:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:05:05 - End Time 2025-02-06 03:05:05 [2025-02-06 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412168', 'tblTempUsageDetail_20' ) start [2025-02-06 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412168', 'tblTempUsageDetail_20' ) end [2025-02-06 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412168', 'tblTempVendorCDR_20' ) start [2025-02-06 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412168', 'tblTempVendorCDR_20' ) end [2025-02-06 03:05:18] Production.INFO: ProcessCDR(1,14412168,1,1,2) [2025-02-06 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412168', 'tblTempUsageDetail_20' ) start [2025-02-06 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412168', 'tblTempUsageDetail_20' ) end [2025-02-06 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:05:21] Production.INFO: ==22602== Releasing lock... [2025-02-06 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:06:06 [end_date_ymd] => 2025-02-06 03:06:06 [RateCDR] => 1 ) [2025-02-06 03: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-06 00:06:06' and `end` < '2025-02-06 03: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-06 03:06:20] Production.INFO: count ==355 [2025-02-06 03:06:20] Production.ERROR: pbx CDR StartTime 2025-02-06 00:06:06 - End Time 2025-02-06 03:06:06 [2025-02-06 03:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412173', 'tblTempUsageDetail_20' ) start [2025-02-06 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412173', 'tblTempUsageDetail_20' ) end [2025-02-06 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412173', 'tblTempVendorCDR_20' ) start [2025-02-06 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412173', 'tblTempVendorCDR_20' ) end [2025-02-06 03:06:20] Production.INFO: ProcessCDR(1,14412173,1,1,2) [2025-02-06 03:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412173', 'tblTempUsageDetail_20' ) start [2025-02-06 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412173', 'tblTempUsageDetail_20' ) end [2025-02-06 03:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:06:23] Production.INFO: ==22759== Releasing lock... [2025-02-06 03:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:06:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:07:05 [end_date_ymd] => 2025-02-06 03:07:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:07:05' and `end` < '2025-02-06 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-06 03:07:19] Production.INFO: count ==360 [2025-02-06 03:07:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:07:05 - End Time 2025-02-06 03:07:05 [2025-02-06 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412178', 'tblTempUsageDetail_20' ) start [2025-02-06 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412178', 'tblTempUsageDetail_20' ) end [2025-02-06 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412178', 'tblTempVendorCDR_20' ) start [2025-02-06 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412178', 'tblTempVendorCDR_20' ) end [2025-02-06 03:07:19] Production.INFO: ProcessCDR(1,14412178,1,1,2) [2025-02-06 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412178', 'tblTempUsageDetail_20' ) start [2025-02-06 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412178', 'tblTempUsageDetail_20' ) end [2025-02-06 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:07:22] Production.INFO: ==22830== Releasing lock... [2025-02-06 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-06 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:08:05 [end_date_ymd] => 2025-02-06 03:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:08:05' and `end` < '2025-02-06 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-06 03:08:19] Production.INFO: count ==356 [2025-02-06 03:08:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:08:05 - End Time 2025-02-06 03:08:05 [2025-02-06 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412183', 'tblTempUsageDetail_20' ) start [2025-02-06 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412183', 'tblTempUsageDetail_20' ) end [2025-02-06 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412183', 'tblTempVendorCDR_20' ) start [2025-02-06 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412183', 'tblTempVendorCDR_20' ) end [2025-02-06 03:08:19] Production.INFO: ProcessCDR(1,14412183,1,1,2) [2025-02-06 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412183', 'tblTempUsageDetail_20' ) start [2025-02-06 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412183', 'tblTempUsageDetail_20' ) end [2025-02-06 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:08:22] Production.INFO: ==22904== Releasing lock... [2025-02-06 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:09:05 [end_date_ymd] => 2025-02-06 03:09:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:09:05' and `end` < '2025-02-06 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-06 03:09:18] Production.INFO: count ==354 [2025-02-06 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:09:05 - End Time 2025-02-06 03:09:05 [2025-02-06 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412188', 'tblTempUsageDetail_20' ) start [2025-02-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412188', 'tblTempUsageDetail_20' ) end [2025-02-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412188', 'tblTempVendorCDR_20' ) start [2025-02-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412188', 'tblTempVendorCDR_20' ) end [2025-02-06 03:09:18] Production.INFO: ProcessCDR(1,14412188,1,1,2) [2025-02-06 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412188', 'tblTempUsageDetail_20' ) start [2025-02-06 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412188', 'tblTempUsageDetail_20' ) end [2025-02-06 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:09:21] Production.INFO: ==23055== Releasing lock... [2025-02-06 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 03:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:10:07 [end_date_ymd] => 2025-02-06 03:10:07 [RateCDR] => 1 ) [2025-02-06 03: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-06 00:10:07' and `end` < '2025-02-06 03: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-06 03:10:21] Production.INFO: count ==354 [2025-02-06 03:10:21] Production.ERROR: pbx CDR StartTime 2025-02-06 00:10:07 - End Time 2025-02-06 03:10:07 [2025-02-06 03:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412194', 'tblTempUsageDetail_20' ) start [2025-02-06 03:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412194', 'tblTempUsageDetail_20' ) end [2025-02-06 03:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412194', 'tblTempVendorCDR_20' ) start [2025-02-06 03:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412194', 'tblTempVendorCDR_20' ) end [2025-02-06 03:10:21] Production.INFO: ProcessCDR(1,14412194,1,1,2) [2025-02-06 03:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412194', 'tblTempUsageDetail_20' ) start [2025-02-06 03:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412194', 'tblTempUsageDetail_20' ) end [2025-02-06 03:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:10:24] Production.INFO: ==23130== Releasing lock... [2025-02-06 03:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:10:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:11:05 [end_date_ymd] => 2025-02-06 03:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:11:05' and `end` < '2025-02-06 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-06 03:11:18] Production.INFO: count ==333 [2025-02-06 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:11:05 - End Time 2025-02-06 03:11:05 [2025-02-06 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412199', 'tblTempUsageDetail_20' ) start [2025-02-06 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412199', 'tblTempUsageDetail_20' ) end [2025-02-06 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412199', 'tblTempVendorCDR_20' ) start [2025-02-06 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412199', 'tblTempVendorCDR_20' ) end [2025-02-06 03:11:18] Production.INFO: ProcessCDR(1,14412199,1,1,2) [2025-02-06 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412199', 'tblTempUsageDetail_20' ) start [2025-02-06 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412199', 'tblTempUsageDetail_20' ) end [2025-02-06 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:11:21] Production.INFO: ==23205== Releasing lock... [2025-02-06 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:11:21] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:12:06 [end_date_ymd] => 2025-02-06 03:12:06 [RateCDR] => 1 ) [2025-02-06 03: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-06 00:12:06' and `end` < '2025-02-06 03: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-06 03:12:19] Production.INFO: count ==333 [2025-02-06 03:12:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:12:06 - End Time 2025-02-06 03:12:06 [2025-02-06 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412204', 'tblTempUsageDetail_20' ) start [2025-02-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412204', 'tblTempUsageDetail_20' ) end [2025-02-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412204', 'tblTempVendorCDR_20' ) start [2025-02-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412204', 'tblTempVendorCDR_20' ) end [2025-02-06 03:12:19] Production.INFO: ProcessCDR(1,14412204,1,1,2) [2025-02-06 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412204', 'tblTempUsageDetail_20' ) start [2025-02-06 03:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412204', 'tblTempUsageDetail_20' ) end [2025-02-06 03:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:12:23] Production.INFO: ==23296== Releasing lock... [2025-02-06 03:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:12:23] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:13:05 [end_date_ymd] => 2025-02-06 03:13:05 [RateCDR] => 1 ) [2025-02-06 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:13:05' and `end` < '2025-02-06 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:13:19] Production.INFO: count ==329 [2025-02-06 03:13:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:13:05 - End Time 2025-02-06 03:13:05 [2025-02-06 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412209', 'tblTempUsageDetail_20' ) start [2025-02-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412209', 'tblTempUsageDetail_20' ) end [2025-02-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412209', 'tblTempVendorCDR_20' ) start [2025-02-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412209', 'tblTempVendorCDR_20' ) end [2025-02-06 03:13:19] Production.INFO: ProcessCDR(1,14412209,1,1,2) [2025-02-06 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412209', 'tblTempUsageDetail_20' ) start [2025-02-06 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412209', 'tblTempUsageDetail_20' ) end [2025-02-06 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:13:22] Production.INFO: ==23466== Releasing lock... [2025-02-06 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:13:22] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:14:05 [end_date_ymd] => 2025-02-06 03:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:14:05' and `end` < '2025-02-06 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-06 03:14:18] Production.INFO: count ==329 [2025-02-06 03:14:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:14:05 - End Time 2025-02-06 03:14:05 [2025-02-06 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412214', 'tblTempUsageDetail_20' ) start [2025-02-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412214', 'tblTempUsageDetail_20' ) end [2025-02-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412214', 'tblTempVendorCDR_20' ) start [2025-02-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412214', 'tblTempVendorCDR_20' ) end [2025-02-06 03:14:18] Production.INFO: ProcessCDR(1,14412214,1,1,2) [2025-02-06 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412214', 'tblTempUsageDetail_20' ) start [2025-02-06 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412214', 'tblTempUsageDetail_20' ) end [2025-02-06 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:14:21] Production.INFO: ==23537== Releasing lock... [2025-02-06 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:14:21] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:15:05 [end_date_ymd] => 2025-02-06 03:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:15:05' and `end` < '2025-02-06 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-06 03:15:18] Production.INFO: count ==329 [2025-02-06 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:15:05 - End Time 2025-02-06 03:15:05 [2025-02-06 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412219', 'tblTempUsageDetail_20' ) start [2025-02-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412219', 'tblTempUsageDetail_20' ) end [2025-02-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412219', 'tblTempVendorCDR_20' ) start [2025-02-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412219', 'tblTempVendorCDR_20' ) end [2025-02-06 03:15:18] Production.INFO: ProcessCDR(1,14412219,1,1,2) [2025-02-06 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412219', 'tblTempUsageDetail_20' ) start [2025-02-06 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412219', 'tblTempUsageDetail_20' ) end [2025-02-06 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:15:21] Production.INFO: ==23616== Releasing lock... [2025-02-06 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:15:21] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:16:06 [end_date_ymd] => 2025-02-06 03:16:06 [RateCDR] => 1 ) [2025-02-06 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:16:06' and `end` < '2025-02-06 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:16:19] Production.INFO: count ==328 [2025-02-06 03:16:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:16:06 - End Time 2025-02-06 03:16:06 [2025-02-06 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412224', 'tblTempUsageDetail_20' ) start [2025-02-06 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412224', 'tblTempUsageDetail_20' ) end [2025-02-06 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412224', 'tblTempVendorCDR_20' ) start [2025-02-06 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412224', 'tblTempVendorCDR_20' ) end [2025-02-06 03:16:19] Production.INFO: ProcessCDR(1,14412224,1,1,2) [2025-02-06 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412224', 'tblTempUsageDetail_20' ) start [2025-02-06 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412224', 'tblTempUsageDetail_20' ) end [2025-02-06 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:16:22] Production.INFO: ==23694== Releasing lock... [2025-02-06 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:16:22] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:17:05 [end_date_ymd] => 2025-02-06 03:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:17:05' and `end` < '2025-02-06 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-06 03:17:18] Production.INFO: count ==325 [2025-02-06 03:17:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:17:05 - End Time 2025-02-06 03:17:05 [2025-02-06 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412229', 'tblTempUsageDetail_20' ) start [2025-02-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412229', 'tblTempUsageDetail_20' ) end [2025-02-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412229', 'tblTempVendorCDR_20' ) start [2025-02-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412229', 'tblTempVendorCDR_20' ) end [2025-02-06 03:17:18] Production.INFO: ProcessCDR(1,14412229,1,1,2) [2025-02-06 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412229', 'tblTempUsageDetail_20' ) start [2025-02-06 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412229', 'tblTempUsageDetail_20' ) end [2025-02-06 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:17:21] Production.INFO: ==23846== Releasing lock... [2025-02-06 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:17:21] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:18:05 [end_date_ymd] => 2025-02-06 03:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:18:05' and `end` < '2025-02-06 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-06 03:18:19] Production.INFO: count ==325 [2025-02-06 03:18:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:18:05 - End Time 2025-02-06 03:18:05 [2025-02-06 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412234', 'tblTempUsageDetail_20' ) start [2025-02-06 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412234', 'tblTempUsageDetail_20' ) end [2025-02-06 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412234', 'tblTempVendorCDR_20' ) start [2025-02-06 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412234', 'tblTempVendorCDR_20' ) end [2025-02-06 03:18:19] Production.INFO: ProcessCDR(1,14412234,1,1,2) [2025-02-06 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412234', 'tblTempUsageDetail_20' ) start [2025-02-06 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412234', 'tblTempUsageDetail_20' ) end [2025-02-06 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:18:22] Production.INFO: ==23926== Releasing lock... [2025-02-06 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:18:22] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:19:06 [end_date_ymd] => 2025-02-06 03:19:06 [RateCDR] => 1 ) [2025-02-06 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-06 00:19:06' and `end` < '2025-02-06 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-06 03:19:19] Production.INFO: count ==324 [2025-02-06 03:19:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:19:06 - End Time 2025-02-06 03:19:06 [2025-02-06 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412239', 'tblTempUsageDetail_20' ) start [2025-02-06 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412239', 'tblTempUsageDetail_20' ) end [2025-02-06 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412239', 'tblTempVendorCDR_20' ) start [2025-02-06 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412239', 'tblTempVendorCDR_20' ) end [2025-02-06 03:19:19] Production.INFO: ProcessCDR(1,14412239,1,1,2) [2025-02-06 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412239', 'tblTempUsageDetail_20' ) start [2025-02-06 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412239', 'tblTempUsageDetail_20' ) end [2025-02-06 03:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:19:23] Production.INFO: ==24040== Releasing lock... [2025-02-06 03:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:19:23] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:20:05 [end_date_ymd] => 2025-02-06 03:20:05 [RateCDR] => 1 ) [2025-02-06 03: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-06 00:20:05' and `end` < '2025-02-06 03: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-06 03:20:19] Production.INFO: count ==318 [2025-02-06 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:20:05 - End Time 2025-02-06 03:20:05 [2025-02-06 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412244', 'tblTempUsageDetail_20' ) start [2025-02-06 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412244', 'tblTempUsageDetail_20' ) end [2025-02-06 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412244', 'tblTempVendorCDR_20' ) start [2025-02-06 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412244', 'tblTempVendorCDR_20' ) end [2025-02-06 03:20:19] Production.INFO: ProcessCDR(1,14412244,1,1,2) [2025-02-06 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412244', 'tblTempUsageDetail_20' ) start [2025-02-06 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412244', 'tblTempUsageDetail_20' ) end [2025-02-06 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:20:23] Production.INFO: ==24116== Releasing lock... [2025-02-06 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:20:23] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:21:05 [end_date_ymd] => 2025-02-06 03:21:05 [RateCDR] => 1 ) [2025-02-06 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:21:05' and `end` < '2025-02-06 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:21:18] Production.INFO: count ==305 [2025-02-06 03:21:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:21:05 - End Time 2025-02-06 03:21:05 [2025-02-06 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412250', 'tblTempUsageDetail_20' ) start [2025-02-06 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412250', 'tblTempUsageDetail_20' ) end [2025-02-06 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412250', 'tblTempVendorCDR_20' ) start [2025-02-06 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412250', 'tblTempVendorCDR_20' ) end [2025-02-06 03:21:18] Production.INFO: ProcessCDR(1,14412250,1,1,2) [2025-02-06 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412250', 'tblTempUsageDetail_20' ) start [2025-02-06 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412250', 'tblTempUsageDetail_20' ) end [2025-02-06 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:21:21] Production.INFO: ==24213== Releasing lock... [2025-02-06 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:21:21] Production.INFO: 30 MB #Memory Used# [2025-02-06 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:22:05 [end_date_ymd] => 2025-02-06 03:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:22:05' and `end` < '2025-02-06 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-06 03:22:18] Production.INFO: count ==298 [2025-02-06 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:22:05 - End Time 2025-02-06 03:22:05 [2025-02-06 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412255', 'tblTempUsageDetail_20' ) start [2025-02-06 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412255', 'tblTempUsageDetail_20' ) end [2025-02-06 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412255', 'tblTempVendorCDR_20' ) start [2025-02-06 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412255', 'tblTempVendorCDR_20' ) end [2025-02-06 03:22:18] Production.INFO: ProcessCDR(1,14412255,1,1,2) [2025-02-06 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412255', 'tblTempUsageDetail_20' ) start [2025-02-06 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412255', 'tblTempUsageDetail_20' ) end [2025-02-06 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:22:21] Production.INFO: ==24285== Releasing lock... [2025-02-06 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:23:05 [end_date_ymd] => 2025-02-06 03:23:05 [RateCDR] => 1 ) [2025-02-06 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:23:05' and `end` < '2025-02-06 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:23:19] Production.INFO: count ==297 [2025-02-06 03:23:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:23:05 - End Time 2025-02-06 03:23:05 [2025-02-06 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412260', 'tblTempUsageDetail_20' ) start [2025-02-06 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412260', 'tblTempUsageDetail_20' ) end [2025-02-06 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412260', 'tblTempVendorCDR_20' ) start [2025-02-06 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412260', 'tblTempVendorCDR_20' ) end [2025-02-06 03:23:19] Production.INFO: ProcessCDR(1,14412260,1,1,2) [2025-02-06 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412260', 'tblTempUsageDetail_20' ) start [2025-02-06 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412260', 'tblTempUsageDetail_20' ) end [2025-02-06 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:23:22] Production.INFO: ==24360== Releasing lock... [2025-02-06 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:23:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:24:05 [end_date_ymd] => 2025-02-06 03:24:05 [RateCDR] => 1 ) [2025-02-06 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:24:05' and `end` < '2025-02-06 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:24:18] Production.INFO: count ==297 [2025-02-06 03:24:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:24:05 - End Time 2025-02-06 03:24:05 [2025-02-06 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412265', 'tblTempUsageDetail_20' ) start [2025-02-06 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412265', 'tblTempUsageDetail_20' ) end [2025-02-06 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412265', 'tblTempVendorCDR_20' ) start [2025-02-06 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412265', 'tblTempVendorCDR_20' ) end [2025-02-06 03:24:18] Production.INFO: ProcessCDR(1,14412265,1,1,2) [2025-02-06 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412265', 'tblTempUsageDetail_20' ) start [2025-02-06 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412265', 'tblTempUsageDetail_20' ) end [2025-02-06 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:24:21] Production.INFO: ==24433== Releasing lock... [2025-02-06 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:25:05 [end_date_ymd] => 2025-02-06 03:25:05 [RateCDR] => 1 ) [2025-02-06 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:25:05' and `end` < '2025-02-06 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:25:18] Production.INFO: count ==297 [2025-02-06 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:25:05 - End Time 2025-02-06 03:25:05 [2025-02-06 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412270', 'tblTempUsageDetail_20' ) start [2025-02-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412270', 'tblTempUsageDetail_20' ) end [2025-02-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412270', 'tblTempVendorCDR_20' ) start [2025-02-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412270', 'tblTempVendorCDR_20' ) end [2025-02-06 03:25:18] Production.INFO: ProcessCDR(1,14412270,1,1,2) [2025-02-06 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412270', 'tblTempUsageDetail_20' ) start [2025-02-06 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412270', 'tblTempUsageDetail_20' ) end [2025-02-06 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:25:21] Production.INFO: ==24504== Releasing lock... [2025-02-06 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:26:05 [end_date_ymd] => 2025-02-06 03:26:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:26:05' and `end` < '2025-02-06 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-06 03:26:19] Production.INFO: count ==295 [2025-02-06 03:26:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:26:05 - End Time 2025-02-06 03:26:05 [2025-02-06 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412275', 'tblTempUsageDetail_20' ) start [2025-02-06 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412275', 'tblTempUsageDetail_20' ) end [2025-02-06 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412275', 'tblTempVendorCDR_20' ) start [2025-02-06 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412275', 'tblTempVendorCDR_20' ) end [2025-02-06 03:26:19] Production.INFO: ProcessCDR(1,14412275,1,1,2) [2025-02-06 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412275', 'tblTempUsageDetail_20' ) start [2025-02-06 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412275', 'tblTempUsageDetail_20' ) end [2025-02-06 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:26:22] Production.INFO: ==24578== Releasing lock... [2025-02-06 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:26:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:27:05 [end_date_ymd] => 2025-02-06 03:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:27:05' and `end` < '2025-02-06 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-06 03:27:19] Production.INFO: count ==294 [2025-02-06 03:27:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:27:05 - End Time 2025-02-06 03:27:05 [2025-02-06 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412280', 'tblTempUsageDetail_20' ) start [2025-02-06 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412280', 'tblTempUsageDetail_20' ) end [2025-02-06 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412280', 'tblTempVendorCDR_20' ) start [2025-02-06 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412280', 'tblTempVendorCDR_20' ) end [2025-02-06 03:27:19] Production.INFO: ProcessCDR(1,14412280,1,1,2) [2025-02-06 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412280', 'tblTempUsageDetail_20' ) start [2025-02-06 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412280', 'tblTempUsageDetail_20' ) end [2025-02-06 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:27:22] Production.INFO: ==24650== Releasing lock... [2025-02-06 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:27:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:28:06 [end_date_ymd] => 2025-02-06 03:28:06 [RateCDR] => 1 ) [2025-02-06 03:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:28:06' and `end` < '2025-02-06 03:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:28:19] Production.INFO: count ==292 [2025-02-06 03:28:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:28:06 - End Time 2025-02-06 03:28:06 [2025-02-06 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412285', 'tblTempUsageDetail_20' ) start [2025-02-06 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412285', 'tblTempUsageDetail_20' ) end [2025-02-06 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412285', 'tblTempVendorCDR_20' ) start [2025-02-06 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412285', 'tblTempVendorCDR_20' ) end [2025-02-06 03:28:19] Production.INFO: ProcessCDR(1,14412285,1,1,2) [2025-02-06 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412285', 'tblTempUsageDetail_20' ) start [2025-02-06 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412285', 'tblTempUsageDetail_20' ) end [2025-02-06 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:28:22] Production.INFO: ==24723== Releasing lock... [2025-02-06 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:28:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:29:05 [end_date_ymd] => 2025-02-06 03:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:29:05' and `end` < '2025-02-06 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-06 03:29:18] Production.INFO: count ==289 [2025-02-06 03:29:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:29:05 - End Time 2025-02-06 03:29:05 [2025-02-06 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412290', 'tblTempUsageDetail_20' ) start [2025-02-06 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412290', 'tblTempUsageDetail_20' ) end [2025-02-06 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412290', 'tblTempVendorCDR_20' ) start [2025-02-06 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412290', 'tblTempVendorCDR_20' ) end [2025-02-06 03:29:18] Production.INFO: ProcessCDR(1,14412290,1,1,2) [2025-02-06 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412290', 'tblTempUsageDetail_20' ) start [2025-02-06 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412290', 'tblTempUsageDetail_20' ) end [2025-02-06 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:29:21] Production.INFO: ==24798== Releasing lock... [2025-02-06 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:30:06 [end_date_ymd] => 2025-02-06 03:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 00:30:06' and `end` < '2025-02-06 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-06 03:30:19] Production.INFO: count ==293 [2025-02-06 03:30:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:30:06 - End Time 2025-02-06 03:30:06 [2025-02-06 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412296', 'tblTempUsageDetail_20' ) start [2025-02-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412296', 'tblTempUsageDetail_20' ) end [2025-02-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412296', 'tblTempVendorCDR_20' ) start [2025-02-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412296', 'tblTempVendorCDR_20' ) end [2025-02-06 03:30:19] Production.INFO: ProcessCDR(1,14412296,1,1,2) [2025-02-06 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412296', 'tblTempUsageDetail_20' ) start [2025-02-06 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412296', 'tblTempUsageDetail_20' ) end [2025-02-06 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:30:23] Production.INFO: ==24873== Releasing lock... [2025-02-06 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:30:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:31:05 [end_date_ymd] => 2025-02-06 03:31:05 [RateCDR] => 1 ) [2025-02-06 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:31:05' and `end` < '2025-02-06 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:31:18] Production.INFO: count ==271 [2025-02-06 03:31:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:31:05 - End Time 2025-02-06 03:31:05 [2025-02-06 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412301', 'tblTempUsageDetail_20' ) start [2025-02-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412301', 'tblTempUsageDetail_20' ) end [2025-02-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412301', 'tblTempVendorCDR_20' ) start [2025-02-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412301', 'tblTempVendorCDR_20' ) end [2025-02-06 03:31:18] Production.INFO: ProcessCDR(1,14412301,1,1,2) [2025-02-06 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412301', 'tblTempUsageDetail_20' ) start [2025-02-06 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412301', 'tblTempUsageDetail_20' ) end [2025-02-06 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:31:22] Production.INFO: ==24949== Releasing lock... [2025-02-06 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:32:05 [end_date_ymd] => 2025-02-06 03:32:05 [RateCDR] => 1 ) [2025-02-06 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:32:05' and `end` < '2025-02-06 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-06 03:32:19] Production.INFO: count ==271 [2025-02-06 03:32:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:32:05 - End Time 2025-02-06 03:32:05 [2025-02-06 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412306', 'tblTempUsageDetail_20' ) start [2025-02-06 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412306', 'tblTempUsageDetail_20' ) end [2025-02-06 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412306', 'tblTempVendorCDR_20' ) start [2025-02-06 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412306', 'tblTempVendorCDR_20' ) end [2025-02-06 03:32:19] Production.INFO: ProcessCDR(1,14412306,1,1,2) [2025-02-06 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412306', 'tblTempUsageDetail_20' ) start [2025-02-06 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412306', 'tblTempUsageDetail_20' ) end [2025-02-06 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:32:22] Production.INFO: ==25024== Releasing lock... [2025-02-06 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:33:05 [end_date_ymd] => 2025-02-06 03:33:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:33:05' and `end` < '2025-02-06 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-06 03:33:19] Production.INFO: count ==271 [2025-02-06 03:33:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:33:05 - End Time 2025-02-06 03:33:05 [2025-02-06 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412311', 'tblTempUsageDetail_20' ) start [2025-02-06 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412311', 'tblTempUsageDetail_20' ) end [2025-02-06 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412311', 'tblTempVendorCDR_20' ) start [2025-02-06 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412311', 'tblTempVendorCDR_20' ) end [2025-02-06 03:33:19] Production.INFO: ProcessCDR(1,14412311,1,1,2) [2025-02-06 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412311', 'tblTempUsageDetail_20' ) start [2025-02-06 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412311', 'tblTempUsageDetail_20' ) end [2025-02-06 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:33:22] Production.INFO: ==25095== Releasing lock... [2025-02-06 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:34:05 [end_date_ymd] => 2025-02-06 03:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:34:05' and `end` < '2025-02-06 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-06 03:34:18] Production.INFO: count ==270 [2025-02-06 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:34:05 - End Time 2025-02-06 03:34:05 [2025-02-06 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412316', 'tblTempUsageDetail_20' ) start [2025-02-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412316', 'tblTempUsageDetail_20' ) end [2025-02-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412316', 'tblTempVendorCDR_20' ) start [2025-02-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412316', 'tblTempVendorCDR_20' ) end [2025-02-06 03:34:18] Production.INFO: ProcessCDR(1,14412316,1,1,2) [2025-02-06 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412316', 'tblTempUsageDetail_20' ) start [2025-02-06 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412316', 'tblTempUsageDetail_20' ) end [2025-02-06 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:34:21] Production.INFO: ==25207== Releasing lock... [2025-02-06 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:35:05 [end_date_ymd] => 2025-02-06 03:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:35:05' and `end` < '2025-02-06 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-06 03:35:18] Production.INFO: count ==270 [2025-02-06 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:35:05 - End Time 2025-02-06 03:35:05 [2025-02-06 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412321', 'tblTempUsageDetail_20' ) start [2025-02-06 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412321', 'tblTempUsageDetail_20' ) end [2025-02-06 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412321', 'tblTempVendorCDR_20' ) start [2025-02-06 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412321', 'tblTempVendorCDR_20' ) end [2025-02-06 03:35:18] Production.INFO: ProcessCDR(1,14412321,1,1,2) [2025-02-06 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412321', 'tblTempUsageDetail_20' ) start [2025-02-06 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412321', 'tblTempUsageDetail_20' ) end [2025-02-06 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:35:22] Production.INFO: ==25286== Releasing lock... [2025-02-06 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:36:06 [end_date_ymd] => 2025-02-06 03:36:06 [RateCDR] => 1 ) [2025-02-06 03: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-06 00:36:06' and `end` < '2025-02-06 03: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-06 03:36:19] Production.INFO: count ==270 [2025-02-06 03:36:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:36:06 - End Time 2025-02-06 03:36:06 [2025-02-06 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412326', 'tblTempUsageDetail_20' ) start [2025-02-06 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412326', 'tblTempUsageDetail_20' ) end [2025-02-06 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412326', 'tblTempVendorCDR_20' ) start [2025-02-06 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412326', 'tblTempVendorCDR_20' ) end [2025-02-06 03:36:19] Production.INFO: ProcessCDR(1,14412326,1,1,2) [2025-02-06 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412326', 'tblTempUsageDetail_20' ) start [2025-02-06 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412326', 'tblTempUsageDetail_20' ) end [2025-02-06 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:36:23] Production.INFO: ==25355== Releasing lock... [2025-02-06 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:36:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:37:05 [end_date_ymd] => 2025-02-06 03:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:37:05' and `end` < '2025-02-06 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-06 03:37:19] Production.INFO: count ==270 [2025-02-06 03:37:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:37:05 - End Time 2025-02-06 03:37:05 [2025-02-06 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412331', 'tblTempUsageDetail_20' ) start [2025-02-06 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412331', 'tblTempUsageDetail_20' ) end [2025-02-06 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412331', 'tblTempVendorCDR_20' ) start [2025-02-06 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412331', 'tblTempVendorCDR_20' ) end [2025-02-06 03:37:19] Production.INFO: ProcessCDR(1,14412331,1,1,2) [2025-02-06 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412331', 'tblTempUsageDetail_20' ) start [2025-02-06 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412331', 'tblTempUsageDetail_20' ) end [2025-02-06 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:37:22] Production.INFO: ==25426== Releasing lock... [2025-02-06 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:38:06 [end_date_ymd] => 2025-02-06 03:38:06 [RateCDR] => 1 ) [2025-02-06 03: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-06 00:38:06' and `end` < '2025-02-06 03: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-06 03:38:20] Production.INFO: count ==267 [2025-02-06 03:38:20] Production.ERROR: pbx CDR StartTime 2025-02-06 00:38:06 - End Time 2025-02-06 03:38:06 [2025-02-06 03:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412336', 'tblTempUsageDetail_20' ) start [2025-02-06 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412336', 'tblTempUsageDetail_20' ) end [2025-02-06 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412336', 'tblTempVendorCDR_20' ) start [2025-02-06 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412336', 'tblTempVendorCDR_20' ) end [2025-02-06 03:38:20] Production.INFO: ProcessCDR(1,14412336,1,1,2) [2025-02-06 03:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412336', 'tblTempUsageDetail_20' ) start [2025-02-06 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412336', 'tblTempUsageDetail_20' ) end [2025-02-06 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:38:23] Production.INFO: ==25504== Releasing lock... [2025-02-06 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:38:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:39:05 [end_date_ymd] => 2025-02-06 03:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:39:05' and `end` < '2025-02-06 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-06 03:39:19] Production.INFO: count ==268 [2025-02-06 03:39:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:39:05 - End Time 2025-02-06 03:39:05 [2025-02-06 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412341', 'tblTempUsageDetail_20' ) start [2025-02-06 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412341', 'tblTempUsageDetail_20' ) end [2025-02-06 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412341', 'tblTempVendorCDR_20' ) start [2025-02-06 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412341', 'tblTempVendorCDR_20' ) end [2025-02-06 03:39:20] Production.INFO: ProcessCDR(1,14412341,1,1,2) [2025-02-06 03:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412341', 'tblTempUsageDetail_20' ) start [2025-02-06 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412341', 'tblTempUsageDetail_20' ) end [2025-02-06 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:39:23] Production.INFO: ==25584== Releasing lock... [2025-02-06 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:39:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:40:06 [end_date_ymd] => 2025-02-06 03:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 00:40:06' and `end` < '2025-02-06 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-06 03:40:19] Production.INFO: count ==269 [2025-02-06 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:40:06 - End Time 2025-02-06 03:40:06 [2025-02-06 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412346', 'tblTempUsageDetail_20' ) start [2025-02-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412346', 'tblTempUsageDetail_20' ) end [2025-02-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412346', 'tblTempVendorCDR_20' ) start [2025-02-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412346', 'tblTempVendorCDR_20' ) end [2025-02-06 03:40:19] Production.INFO: ProcessCDR(1,14412346,1,1,2) [2025-02-06 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412346', 'tblTempUsageDetail_20' ) start [2025-02-06 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412346', 'tblTempUsageDetail_20' ) end [2025-02-06 03:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:40:25] Production.INFO: ==25660== Releasing lock... [2025-02-06 03:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:40:25] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:41:05 [end_date_ymd] => 2025-02-06 03:41:05 [RateCDR] => 1 ) [2025-02-06 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:41:05' and `end` < '2025-02-06 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:41:19] Production.INFO: count ==273 [2025-02-06 03:41:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:41:05 - End Time 2025-02-06 03:41:05 [2025-02-06 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412351', 'tblTempUsageDetail_20' ) start [2025-02-06 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412351', 'tblTempUsageDetail_20' ) end [2025-02-06 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412351', 'tblTempVendorCDR_20' ) start [2025-02-06 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412351', 'tblTempVendorCDR_20' ) end [2025-02-06 03:41:19] Production.INFO: ProcessCDR(1,14412351,1,1,2) [2025-02-06 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412351', 'tblTempUsageDetail_20' ) start [2025-02-06 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412351', 'tblTempUsageDetail_20' ) end [2025-02-06 03:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:41:23] Production.INFO: ==25734== Releasing lock... [2025-02-06 03:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:41:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:42:06 [end_date_ymd] => 2025-02-06 03:42:06 [RateCDR] => 1 ) [2025-02-06 03: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-06 00:42:06' and `end` < '2025-02-06 03: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-06 03:42:19] Production.INFO: count ==273 [2025-02-06 03:42:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:42:06 - End Time 2025-02-06 03:42:06 [2025-02-06 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412357', 'tblTempUsageDetail_20' ) start [2025-02-06 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412357', 'tblTempUsageDetail_20' ) end [2025-02-06 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412357', 'tblTempVendorCDR_20' ) start [2025-02-06 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412357', 'tblTempVendorCDR_20' ) end [2025-02-06 03:42:19] Production.INFO: ProcessCDR(1,14412357,1,1,2) [2025-02-06 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412357', 'tblTempUsageDetail_20' ) start [2025-02-06 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412357', 'tblTempUsageDetail_20' ) end [2025-02-06 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:42:22] Production.INFO: ==25811== Releasing lock... [2025-02-06 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:43:05 [end_date_ymd] => 2025-02-06 03:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:43:05' and `end` < '2025-02-06 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-06 03:43:18] Production.INFO: count ==273 [2025-02-06 03:43:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:43:05 - End Time 2025-02-06 03:43:05 [2025-02-06 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412362', 'tblTempUsageDetail_20' ) start [2025-02-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412362', 'tblTempUsageDetail_20' ) end [2025-02-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412362', 'tblTempVendorCDR_20' ) start [2025-02-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412362', 'tblTempVendorCDR_20' ) end [2025-02-06 03:43:19] Production.INFO: ProcessCDR(1,14412362,1,1,2) [2025-02-06 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412362', 'tblTempUsageDetail_20' ) start [2025-02-06 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412362', 'tblTempUsageDetail_20' ) end [2025-02-06 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:43:22] Production.INFO: ==25882== Releasing lock... [2025-02-06 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:43:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:44:06 [end_date_ymd] => 2025-02-06 03:44:06 [RateCDR] => 1 ) [2025-02-06 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-06 00:44:06' and `end` < '2025-02-06 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-06 03:44:20] Production.INFO: count ==270 [2025-02-06 03:44:20] Production.ERROR: pbx CDR StartTime 2025-02-06 00:44:06 - End Time 2025-02-06 03:44:06 [2025-02-06 03:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412367', 'tblTempUsageDetail_20' ) start [2025-02-06 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412367', 'tblTempUsageDetail_20' ) end [2025-02-06 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412367', 'tblTempVendorCDR_20' ) start [2025-02-06 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412367', 'tblTempVendorCDR_20' ) end [2025-02-06 03:44:20] Production.INFO: ProcessCDR(1,14412367,1,1,2) [2025-02-06 03:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412367', 'tblTempUsageDetail_20' ) start [2025-02-06 03:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412367', 'tblTempUsageDetail_20' ) end [2025-02-06 03:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:44:24] Production.INFO: ==25959== Releasing lock... [2025-02-06 03:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:44:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:45:05 [end_date_ymd] => 2025-02-06 03:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:45:05' and `end` < '2025-02-06 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-06 03:45:18] Production.INFO: count ==266 [2025-02-06 03:45:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:45:05 - End Time 2025-02-06 03:45:05 [2025-02-06 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412372', 'tblTempUsageDetail_20' ) start [2025-02-06 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412372', 'tblTempUsageDetail_20' ) end [2025-02-06 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412372', 'tblTempVendorCDR_20' ) start [2025-02-06 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412372', 'tblTempVendorCDR_20' ) end [2025-02-06 03:45:19] Production.INFO: ProcessCDR(1,14412372,1,1,2) [2025-02-06 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412372', 'tblTempUsageDetail_20' ) start [2025-02-06 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412372', 'tblTempUsageDetail_20' ) end [2025-02-06 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:45:22] Production.INFO: ==26035== Releasing lock... [2025-02-06 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:45:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:46:06 [end_date_ymd] => 2025-02-06 03:46:06 [RateCDR] => 1 ) [2025-02-06 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-06 00:46:06' and `end` < '2025-02-06 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-06 03:46:20] Production.INFO: count ==263 [2025-02-06 03:46:20] Production.ERROR: pbx CDR StartTime 2025-02-06 00:46:06 - End Time 2025-02-06 03:46:06 [2025-02-06 03:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412377', 'tblTempUsageDetail_20' ) start [2025-02-06 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412377', 'tblTempUsageDetail_20' ) end [2025-02-06 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412377', 'tblTempVendorCDR_20' ) start [2025-02-06 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412377', 'tblTempVendorCDR_20' ) end [2025-02-06 03:46:20] Production.INFO: ProcessCDR(1,14412377,1,1,2) [2025-02-06 03:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412377', 'tblTempUsageDetail_20' ) start [2025-02-06 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412377', 'tblTempUsageDetail_20' ) end [2025-02-06 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:46:23] Production.INFO: ==26114== Releasing lock... [2025-02-06 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:46:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:47:05 [end_date_ymd] => 2025-02-06 03:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:47:05' and `end` < '2025-02-06 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-06 03:47:18] Production.INFO: count ==263 [2025-02-06 03:47:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:47:05 - End Time 2025-02-06 03:47:05 [2025-02-06 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412382', 'tblTempUsageDetail_20' ) start [2025-02-06 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412382', 'tblTempUsageDetail_20' ) end [2025-02-06 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412382', 'tblTempVendorCDR_20' ) start [2025-02-06 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412382', 'tblTempVendorCDR_20' ) end [2025-02-06 03:47:18] Production.INFO: ProcessCDR(1,14412382,1,1,2) [2025-02-06 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412382', 'tblTempUsageDetail_20' ) start [2025-02-06 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412382', 'tblTempUsageDetail_20' ) end [2025-02-06 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:47:22] Production.INFO: ==26190== Releasing lock... [2025-02-06 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:48:06 [end_date_ymd] => 2025-02-06 03:48:06 [RateCDR] => 1 ) [2025-02-06 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-06 00:48:06' and `end` < '2025-02-06 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-06 03:48:19] Production.INFO: count ==262 [2025-02-06 03:48:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:48:06 - End Time 2025-02-06 03:48:06 [2025-02-06 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412387', 'tblTempUsageDetail_20' ) start [2025-02-06 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412387', 'tblTempUsageDetail_20' ) end [2025-02-06 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412387', 'tblTempVendorCDR_20' ) start [2025-02-06 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412387', 'tblTempVendorCDR_20' ) end [2025-02-06 03:48:19] Production.INFO: ProcessCDR(1,14412387,1,1,2) [2025-02-06 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412387', 'tblTempUsageDetail_20' ) start [2025-02-06 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412387', 'tblTempUsageDetail_20' ) end [2025-02-06 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:48:23] Production.INFO: ==26267== Releasing lock... [2025-02-06 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:48:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:49:05 [end_date_ymd] => 2025-02-06 03:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:49:05' and `end` < '2025-02-06 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-06 03:49:19] Production.INFO: count ==262 [2025-02-06 03:49:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:49:05 - End Time 2025-02-06 03:49:05 [2025-02-06 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412392', 'tblTempUsageDetail_20' ) start [2025-02-06 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412392', 'tblTempUsageDetail_20' ) end [2025-02-06 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412392', 'tblTempVendorCDR_20' ) start [2025-02-06 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412392', 'tblTempVendorCDR_20' ) end [2025-02-06 03:49:19] Production.INFO: ProcessCDR(1,14412392,1,1,2) [2025-02-06 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412392', 'tblTempUsageDetail_20' ) start [2025-02-06 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412392', 'tblTempUsageDetail_20' ) end [2025-02-06 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:49:22] Production.INFO: ==26379== Releasing lock... [2025-02-06 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:50:07 [end_date_ymd] => 2025-02-06 03:50:07 [RateCDR] => 1 ) [2025-02-06 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-06 00:50:07' and `end` < '2025-02-06 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-06 03:50:21] Production.INFO: count ==262 [2025-02-06 03:50:21] Production.ERROR: pbx CDR StartTime 2025-02-06 00:50:07 - End Time 2025-02-06 03:50:07 [2025-02-06 03:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412398', 'tblTempUsageDetail_20' ) start [2025-02-06 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412398', 'tblTempUsageDetail_20' ) end [2025-02-06 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412398', 'tblTempVendorCDR_20' ) start [2025-02-06 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412398', 'tblTempVendorCDR_20' ) end [2025-02-06 03:50:21] Production.INFO: ProcessCDR(1,14412398,1,1,2) [2025-02-06 03:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412398', 'tblTempUsageDetail_20' ) start [2025-02-06 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412398', 'tblTempUsageDetail_20' ) end [2025-02-06 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:50:24] Production.INFO: ==26457== Releasing lock... [2025-02-06 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:50:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:51:05 [end_date_ymd] => 2025-02-06 03:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:51:05' and `end` < '2025-02-06 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-06 03:51:18] Production.INFO: count ==256 [2025-02-06 03:51:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:51:05 - End Time 2025-02-06 03:51:05 [2025-02-06 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412403', 'tblTempUsageDetail_20' ) start [2025-02-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412403', 'tblTempUsageDetail_20' ) end [2025-02-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412403', 'tblTempVendorCDR_20' ) start [2025-02-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412403', 'tblTempVendorCDR_20' ) end [2025-02-06 03:51:18] Production.INFO: ProcessCDR(1,14412403,1,1,2) [2025-02-06 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412403', 'tblTempUsageDetail_20' ) start [2025-02-06 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412403', 'tblTempUsageDetail_20' ) end [2025-02-06 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:51:22] Production.INFO: ==26530== Releasing lock... [2025-02-06 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:52:05 [end_date_ymd] => 2025-02-06 03:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:52:05' and `end` < '2025-02-06 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-06 03:52:19] Production.INFO: count ==256 [2025-02-06 03:52:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:52:05 - End Time 2025-02-06 03:52:05 [2025-02-06 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412408', 'tblTempUsageDetail_20' ) start [2025-02-06 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412408', 'tblTempUsageDetail_20' ) end [2025-02-06 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412408', 'tblTempVendorCDR_20' ) start [2025-02-06 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412408', 'tblTempVendorCDR_20' ) end [2025-02-06 03:52:19] Production.INFO: ProcessCDR(1,14412408,1,1,2) [2025-02-06 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412408', 'tblTempUsageDetail_20' ) start [2025-02-06 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412408', 'tblTempUsageDetail_20' ) end [2025-02-06 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:52:23] Production.INFO: ==26606== Releasing lock... [2025-02-06 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:52:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:53:05 [end_date_ymd] => 2025-02-06 03:53:05 [RateCDR] => 1 ) [2025-02-06 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:53:05' and `end` < '2025-02-06 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:53:18] Production.INFO: count ==256 [2025-02-06 03:53:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:53:05 - End Time 2025-02-06 03:53:05 [2025-02-06 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412413', 'tblTempUsageDetail_20' ) start [2025-02-06 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412413', 'tblTempUsageDetail_20' ) end [2025-02-06 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412413', 'tblTempVendorCDR_20' ) start [2025-02-06 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412413', 'tblTempVendorCDR_20' ) end [2025-02-06 03:53:18] Production.INFO: ProcessCDR(1,14412413,1,1,2) [2025-02-06 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412413', 'tblTempUsageDetail_20' ) start [2025-02-06 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412413', 'tblTempUsageDetail_20' ) end [2025-02-06 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:53:22] Production.INFO: ==26684== Releasing lock... [2025-02-06 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:54:05 [end_date_ymd] => 2025-02-06 03:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:54:05' and `end` < '2025-02-06 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-06 03:54:19] Production.INFO: count ==256 [2025-02-06 03:54:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:54:05 - End Time 2025-02-06 03:54:05 [2025-02-06 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412418', 'tblTempUsageDetail_20' ) start [2025-02-06 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412418', 'tblTempUsageDetail_20' ) end [2025-02-06 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412418', 'tblTempVendorCDR_20' ) start [2025-02-06 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412418', 'tblTempVendorCDR_20' ) end [2025-02-06 03:54:19] Production.INFO: ProcessCDR(1,14412418,1,1,2) [2025-02-06 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412418', 'tblTempUsageDetail_20' ) start [2025-02-06 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412418', 'tblTempUsageDetail_20' ) end [2025-02-06 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:54:22] Production.INFO: ==26763== Releasing lock... [2025-02-06 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:55:05 [end_date_ymd] => 2025-02-06 03:55:05 [RateCDR] => 1 ) [2025-02-06 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 00:55:05' and `end` < '2025-02-06 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 03:55:18] Production.INFO: count ==256 [2025-02-06 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-06 00:55:05 - End Time 2025-02-06 03:55:05 [2025-02-06 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412423', 'tblTempUsageDetail_20' ) start [2025-02-06 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412423', 'tblTempUsageDetail_20' ) end [2025-02-06 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412423', 'tblTempVendorCDR_20' ) start [2025-02-06 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412423', 'tblTempVendorCDR_20' ) end [2025-02-06 03:55:18] Production.INFO: ProcessCDR(1,14412423,1,1,2) [2025-02-06 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412423', 'tblTempUsageDetail_20' ) start [2025-02-06 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412423', 'tblTempUsageDetail_20' ) end [2025-02-06 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:55:22] Production.INFO: ==26843== Releasing lock... [2025-02-06 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:55:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:56:06 [end_date_ymd] => 2025-02-06 03:56:06 [RateCDR] => 1 ) [2025-02-06 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-06 00:56:06' and `end` < '2025-02-06 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-06 03:56:19] Production.INFO: count ==255 [2025-02-06 03:56:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:56:06 - End Time 2025-02-06 03:56:06 [2025-02-06 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412428', 'tblTempUsageDetail_20' ) start [2025-02-06 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412428', 'tblTempUsageDetail_20' ) end [2025-02-06 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412428', 'tblTempVendorCDR_20' ) start [2025-02-06 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412428', 'tblTempVendorCDR_20' ) end [2025-02-06 03:56:19] Production.INFO: ProcessCDR(1,14412428,1,1,2) [2025-02-06 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412428', 'tblTempUsageDetail_20' ) start [2025-02-06 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412428', 'tblTempUsageDetail_20' ) end [2025-02-06 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:56:22] Production.INFO: ==26918== Releasing lock... [2025-02-06 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:57:05 [end_date_ymd] => 2025-02-06 03:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:57:05' and `end` < '2025-02-06 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-06 03:57:19] Production.INFO: count ==255 [2025-02-06 03:57:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:57:05 - End Time 2025-02-06 03:57:05 [2025-02-06 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412433', 'tblTempUsageDetail_20' ) start [2025-02-06 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412433', 'tblTempUsageDetail_20' ) end [2025-02-06 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412433', 'tblTempVendorCDR_20' ) start [2025-02-06 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412433', 'tblTempVendorCDR_20' ) end [2025-02-06 03:57:19] Production.INFO: ProcessCDR(1,14412433,1,1,2) [2025-02-06 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412433', 'tblTempUsageDetail_20' ) start [2025-02-06 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412433', 'tblTempUsageDetail_20' ) end [2025-02-06 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:57:23] Production.INFO: ==26993== Releasing lock... [2025-02-06 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:57:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:58:06 [end_date_ymd] => 2025-02-06 03:58:06 [RateCDR] => 1 ) [2025-02-06 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-06 00:58:06' and `end` < '2025-02-06 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-06 03:58:21] Production.INFO: count ==256 [2025-02-06 03:58:21] Production.ERROR: pbx CDR StartTime 2025-02-06 00:58:06 - End Time 2025-02-06 03:58:06 [2025-02-06 03:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412438', 'tblTempUsageDetail_20' ) start [2025-02-06 03:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412438', 'tblTempUsageDetail_20' ) end [2025-02-06 03:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412438', 'tblTempVendorCDR_20' ) start [2025-02-06 03:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412438', 'tblTempVendorCDR_20' ) end [2025-02-06 03:58:21] Production.INFO: ProcessCDR(1,14412438,1,1,2) [2025-02-06 03:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412438', 'tblTempUsageDetail_20' ) start [2025-02-06 03:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412438', 'tblTempUsageDetail_20' ) end [2025-02-06 03:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:58:24] Production.INFO: ==27074== Releasing lock... [2025-02-06 03:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:58:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 00:59:05 [end_date_ymd] => 2025-02-06 03:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 00:59:05' and `end` < '2025-02-06 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-06 03:59:19] Production.INFO: count ==251 [2025-02-06 03:59:19] Production.ERROR: pbx CDR StartTime 2025-02-06 00:59:05 - End Time 2025-02-06 03:59:05 [2025-02-06 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412443', 'tblTempUsageDetail_20' ) start [2025-02-06 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412443', 'tblTempUsageDetail_20' ) end [2025-02-06 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412443', 'tblTempVendorCDR_20' ) start [2025-02-06 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412443', 'tblTempVendorCDR_20' ) end [2025-02-06 03:59:19] Production.INFO: ProcessCDR(1,14412443,1,1,2) [2025-02-06 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412443', 'tblTempUsageDetail_20' ) start [2025-02-06 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412443', 'tblTempUsageDetail_20' ) end [2025-02-06 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 03:59:22] Production.INFO: ==27147== Releasing lock... [2025-02-06 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 03:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:00:07 [end_date_ymd] => 2025-02-06 04:00:07 [RateCDR] => 1 ) [2025-02-06 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-06 01:00:07' and `end` < '2025-02-06 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-06 04:00:20] Production.INFO: count ==251 [2025-02-06 04:00:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:00:07 - End Time 2025-02-06 04:00:07 [2025-02-06 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412450', 'tblTempUsageDetail_20' ) start [2025-02-06 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412450', 'tblTempUsageDetail_20' ) end [2025-02-06 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412450', 'tblTempVendorCDR_20' ) start [2025-02-06 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412450', 'tblTempVendorCDR_20' ) end [2025-02-06 04:00:20] Production.INFO: ProcessCDR(1,14412450,1,1,2) [2025-02-06 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412450', 'tblTempUsageDetail_20' ) start [2025-02-06 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412450', 'tblTempUsageDetail_20' ) end [2025-02-06 04:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:00:25] Production.INFO: ==27227== Releasing lock... [2025-02-06 04:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:00:25] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:01:05 [end_date_ymd] => 2025-02-06 04:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:01:05' and `end` < '2025-02-06 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-06 04:01:18] Production.INFO: count ==248 [2025-02-06 04:01:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:01:05 - End Time 2025-02-06 04:01:05 [2025-02-06 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412455', 'tblTempUsageDetail_20' ) start [2025-02-06 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412455', 'tblTempUsageDetail_20' ) end [2025-02-06 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412455', 'tblTempVendorCDR_20' ) start [2025-02-06 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412455', 'tblTempVendorCDR_20' ) end [2025-02-06 04:01:18] Production.INFO: ProcessCDR(1,14412455,1,1,2) [2025-02-06 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412455', 'tblTempUsageDetail_20' ) start [2025-02-06 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412455', 'tblTempUsageDetail_20' ) end [2025-02-06 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:01:21] Production.INFO: ==27319== Releasing lock... [2025-02-06 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:02:05 [end_date_ymd] => 2025-02-06 04:02:05 [RateCDR] => 1 ) [2025-02-06 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:02:05' and `end` < '2025-02-06 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:02:20] Production.INFO: count ==242 [2025-02-06 04:02:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:02:05 - End Time 2025-02-06 04:02:05 [2025-02-06 04:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412460', 'tblTempUsageDetail_20' ) start [2025-02-06 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412460', 'tblTempUsageDetail_20' ) end [2025-02-06 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412460', 'tblTempVendorCDR_20' ) start [2025-02-06 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412460', 'tblTempVendorCDR_20' ) end [2025-02-06 04:02:20] Production.INFO: ProcessCDR(1,14412460,1,1,2) [2025-02-06 04:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412460', 'tblTempUsageDetail_20' ) start [2025-02-06 04:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412460', 'tblTempUsageDetail_20' ) end [2025-02-06 04:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:02:24] Production.INFO: ==27392== Releasing lock... [2025-02-06 04:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:02:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:03:05 [end_date_ymd] => 2025-02-06 04:03:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:03:05' and `end` < '2025-02-06 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-06 04:03:19] Production.INFO: count ==241 [2025-02-06 04:03:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:03:05 - End Time 2025-02-06 04:03:05 [2025-02-06 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412465', 'tblTempUsageDetail_20' ) start [2025-02-06 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412465', 'tblTempUsageDetail_20' ) end [2025-02-06 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412465', 'tblTempVendorCDR_20' ) start [2025-02-06 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412465', 'tblTempVendorCDR_20' ) end [2025-02-06 04:03:19] Production.INFO: ProcessCDR(1,14412465,1,1,2) [2025-02-06 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412465', 'tblTempUsageDetail_20' ) start [2025-02-06 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412465', 'tblTempUsageDetail_20' ) end [2025-02-06 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:03:22] Production.INFO: ==27470== Releasing lock... [2025-02-06 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:04:05 [end_date_ymd] => 2025-02-06 04:04:05 [RateCDR] => 1 ) [2025-02-06 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:04:05' and `end` < '2025-02-06 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:04:20] Production.INFO: count ==241 [2025-02-06 04:04:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:04:05 - End Time 2025-02-06 04:04:05 [2025-02-06 04:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412470', 'tblTempUsageDetail_20' ) start [2025-02-06 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412470', 'tblTempUsageDetail_20' ) end [2025-02-06 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412470', 'tblTempVendorCDR_20' ) start [2025-02-06 04:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412470', 'tblTempVendorCDR_20' ) end [2025-02-06 04:04:20] Production.INFO: ProcessCDR(1,14412470,1,1,2) [2025-02-06 04:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412470', 'tblTempUsageDetail_20' ) start [2025-02-06 04:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412470', 'tblTempUsageDetail_20' ) end [2025-02-06 04:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:04:24] Production.INFO: ==27548== Releasing lock... [2025-02-06 04:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:04:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:05:04 [end_date_ymd] => 2025-02-06 04:05:04 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:05:04' and `end` < '2025-02-06 04: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-06 04:05:17] Production.INFO: count ==241 [2025-02-06 04:05:17] Production.ERROR: pbx CDR StartTime 2025-02-06 01:05:04 - End Time 2025-02-06 04:05:04 [2025-02-06 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412475', 'tblTempUsageDetail_20' ) start [2025-02-06 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412475', 'tblTempUsageDetail_20' ) end [2025-02-06 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412475', 'tblTempVendorCDR_20' ) start [2025-02-06 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412475', 'tblTempVendorCDR_20' ) end [2025-02-06 04:05:17] Production.INFO: ProcessCDR(1,14412475,1,1,2) [2025-02-06 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412475', 'tblTempUsageDetail_20' ) start [2025-02-06 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412475', 'tblTempUsageDetail_20' ) end [2025-02-06 04:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:05:20] Production.INFO: ==27657== Releasing lock... [2025-02-06 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:05:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:06:06 [end_date_ymd] => 2025-02-06 04:06:06 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:06:06' and `end` < '2025-02-06 04: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-06 04:06:19] Production.INFO: count ==241 [2025-02-06 04:06:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:06:06 - End Time 2025-02-06 04:06:06 [2025-02-06 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412480', 'tblTempUsageDetail_20' ) start [2025-02-06 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412480', 'tblTempUsageDetail_20' ) end [2025-02-06 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412480', 'tblTempVendorCDR_20' ) start [2025-02-06 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412480', 'tblTempVendorCDR_20' ) end [2025-02-06 04:06:19] Production.INFO: ProcessCDR(1,14412480,1,1,2) [2025-02-06 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412480', 'tblTempUsageDetail_20' ) start [2025-02-06 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412480', 'tblTempUsageDetail_20' ) end [2025-02-06 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:06:22] Production.INFO: ==27734== Releasing lock... [2025-02-06 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:07:05 [end_date_ymd] => 2025-02-06 04:07:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:07:05' and `end` < '2025-02-06 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-06 04:07:18] Production.INFO: count ==241 [2025-02-06 04:07:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:07:05 - End Time 2025-02-06 04:07:05 [2025-02-06 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412485', 'tblTempUsageDetail_20' ) start [2025-02-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412485', 'tblTempUsageDetail_20' ) end [2025-02-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412485', 'tblTempVendorCDR_20' ) start [2025-02-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412485', 'tblTempVendorCDR_20' ) end [2025-02-06 04:07:18] Production.INFO: ProcessCDR(1,14412485,1,1,2) [2025-02-06 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412485', 'tblTempUsageDetail_20' ) start [2025-02-06 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412485', 'tblTempUsageDetail_20' ) end [2025-02-06 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:07:21] Production.INFO: ==27805== Releasing lock... [2025-02-06 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:08:06 [end_date_ymd] => 2025-02-06 04:08:06 [RateCDR] => 1 ) [2025-02-06 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-06 01:08:06' and `end` < '2025-02-06 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-06 04:08:19] Production.INFO: count ==241 [2025-02-06 04:08:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:08:06 - End Time 2025-02-06 04:08:06 [2025-02-06 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412490', 'tblTempUsageDetail_20' ) start [2025-02-06 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412490', 'tblTempUsageDetail_20' ) end [2025-02-06 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412490', 'tblTempVendorCDR_20' ) start [2025-02-06 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412490', 'tblTempVendorCDR_20' ) end [2025-02-06 04:08:19] Production.INFO: ProcessCDR(1,14412490,1,1,2) [2025-02-06 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412490', 'tblTempUsageDetail_20' ) start [2025-02-06 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412490', 'tblTempUsageDetail_20' ) end [2025-02-06 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:08:22] Production.INFO: ==27886== Releasing lock... [2025-02-06 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:09:04 [end_date_ymd] => 2025-02-06 04:09:04 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:09:04' and `end` < '2025-02-06 04: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-06 04:09:18] Production.INFO: count ==241 [2025-02-06 04:09:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:09:04 - End Time 2025-02-06 04:09:04 [2025-02-06 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412495', 'tblTempUsageDetail_20' ) start [2025-02-06 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412495', 'tblTempUsageDetail_20' ) end [2025-02-06 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412495', 'tblTempVendorCDR_20' ) start [2025-02-06 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412495', 'tblTempVendorCDR_20' ) end [2025-02-06 04:09:18] Production.INFO: ProcessCDR(1,14412495,1,1,2) [2025-02-06 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412495', 'tblTempUsageDetail_20' ) start [2025-02-06 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412495', 'tblTempUsageDetail_20' ) end [2025-02-06 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:09:21] Production.INFO: ==27960== Releasing lock... [2025-02-06 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:10:06 [end_date_ymd] => 2025-02-06 04:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 01:10:06' and `end` < '2025-02-06 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-06 04:10:20] Production.INFO: count ==237 [2025-02-06 04:10:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:10:06 - End Time 2025-02-06 04:10:06 [2025-02-06 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412501', 'tblTempUsageDetail_20' ) start [2025-02-06 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412501', 'tblTempUsageDetail_20' ) end [2025-02-06 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412501', 'tblTempVendorCDR_20' ) start [2025-02-06 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412501', 'tblTempVendorCDR_20' ) end [2025-02-06 04:10:20] Production.INFO: ProcessCDR(1,14412501,1,1,2) [2025-02-06 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412501', 'tblTempUsageDetail_20' ) start [2025-02-06 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412501', 'tblTempUsageDetail_20' ) end [2025-02-06 04:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:10:24] Production.INFO: ==28038== Releasing lock... [2025-02-06 04:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:10:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:11:05 [end_date_ymd] => 2025-02-06 04:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:11:05' and `end` < '2025-02-06 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-06 04:11:18] Production.INFO: count ==223 [2025-02-06 04:11:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:11:05 - End Time 2025-02-06 04:11:05 [2025-02-06 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412506', 'tblTempUsageDetail_20' ) start [2025-02-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412506', 'tblTempUsageDetail_20' ) end [2025-02-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412506', 'tblTempVendorCDR_20' ) start [2025-02-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412506', 'tblTempVendorCDR_20' ) end [2025-02-06 04:11:18] Production.INFO: ProcessCDR(1,14412506,1,1,2) [2025-02-06 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412506', 'tblTempUsageDetail_20' ) start [2025-02-06 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412506', 'tblTempUsageDetail_20' ) end [2025-02-06 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:11:21] Production.INFO: ==28114== Releasing lock... [2025-02-06 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:11:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:12:05 [end_date_ymd] => 2025-02-06 04:12:05 [RateCDR] => 1 ) [2025-02-06 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:12:05' and `end` < '2025-02-06 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:12:20] Production.INFO: count ==222 [2025-02-06 04:12:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:12:05 - End Time 2025-02-06 04:12:05 [2025-02-06 04:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412511', 'tblTempUsageDetail_20' ) start [2025-02-06 04:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412511', 'tblTempUsageDetail_20' ) end [2025-02-06 04:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412511', 'tblTempVendorCDR_20' ) start [2025-02-06 04:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412511', 'tblTempVendorCDR_20' ) end [2025-02-06 04:12:20] Production.INFO: ProcessCDR(1,14412511,1,1,2) [2025-02-06 04:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412511', 'tblTempUsageDetail_20' ) start [2025-02-06 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412511', 'tblTempUsageDetail_20' ) end [2025-02-06 04:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:12:23] Production.INFO: ==28196== Releasing lock... [2025-02-06 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:12:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:13:05 [end_date_ymd] => 2025-02-06 04:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:13:05' and `end` < '2025-02-06 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-06 04:13:18] Production.INFO: count ==222 [2025-02-06 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:13:05 - End Time 2025-02-06 04:13:05 [2025-02-06 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412516', 'tblTempUsageDetail_20' ) start [2025-02-06 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412516', 'tblTempUsageDetail_20' ) end [2025-02-06 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412516', 'tblTempVendorCDR_20' ) start [2025-02-06 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412516', 'tblTempVendorCDR_20' ) end [2025-02-06 04:13:18] Production.INFO: ProcessCDR(1,14412516,1,1,2) [2025-02-06 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412516', 'tblTempUsageDetail_20' ) start [2025-02-06 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412516', 'tblTempUsageDetail_20' ) end [2025-02-06 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:13:21] Production.INFO: ==28272== Releasing lock... [2025-02-06 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:13:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:14:05 [end_date_ymd] => 2025-02-06 04:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:14:05' and `end` < '2025-02-06 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-06 04:14:18] Production.INFO: count ==222 [2025-02-06 04:14:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:14:05 - End Time 2025-02-06 04:14:05 [2025-02-06 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412521', 'tblTempUsageDetail_20' ) start [2025-02-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412521', 'tblTempUsageDetail_20' ) end [2025-02-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412521', 'tblTempVendorCDR_20' ) start [2025-02-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412521', 'tblTempVendorCDR_20' ) end [2025-02-06 04:14:18] Production.INFO: ProcessCDR(1,14412521,1,1,2) [2025-02-06 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412521', 'tblTempUsageDetail_20' ) start [2025-02-06 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412521', 'tblTempUsageDetail_20' ) end [2025-02-06 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:14:21] Production.INFO: ==28353== Releasing lock... [2025-02-06 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:14:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:15:06 [end_date_ymd] => 2025-02-06 04:15:06 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:15:06' and `end` < '2025-02-06 04: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-06 04:15:18] Production.INFO: count ==223 [2025-02-06 04:15:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:15:06 - End Time 2025-02-06 04:15:06 [2025-02-06 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412526', 'tblTempUsageDetail_20' ) start [2025-02-06 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412526', 'tblTempUsageDetail_20' ) end [2025-02-06 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412526', 'tblTempVendorCDR_20' ) start [2025-02-06 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412526', 'tblTempVendorCDR_20' ) end [2025-02-06 04:15:19] Production.INFO: ProcessCDR(1,14412526,1,1,2) [2025-02-06 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412526', 'tblTempUsageDetail_20' ) start [2025-02-06 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412526', 'tblTempUsageDetail_20' ) end [2025-02-06 04:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:15:23] Production.INFO: ==28429== Releasing lock... [2025-02-06 04:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:15:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:16:05 [end_date_ymd] => 2025-02-06 04:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:16:05' and `end` < '2025-02-06 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-06 04:16:19] Production.INFO: count ==223 [2025-02-06 04:16:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:16:05 - End Time 2025-02-06 04:16:05 [2025-02-06 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412531', 'tblTempUsageDetail_20' ) start [2025-02-06 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412531', 'tblTempUsageDetail_20' ) end [2025-02-06 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412531', 'tblTempVendorCDR_20' ) start [2025-02-06 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412531', 'tblTempVendorCDR_20' ) end [2025-02-06 04:16:19] Production.INFO: ProcessCDR(1,14412531,1,1,2) [2025-02-06 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412531', 'tblTempUsageDetail_20' ) start [2025-02-06 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412531', 'tblTempUsageDetail_20' ) end [2025-02-06 04:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:16:23] Production.INFO: ==28506== Releasing lock... [2025-02-06 04:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:16:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:17:05 [end_date_ymd] => 2025-02-06 04:17:05 [RateCDR] => 1 ) [2025-02-06 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:17:05' and `end` < '2025-02-06 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:17:19] Production.INFO: count ==223 [2025-02-06 04:17:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:17:05 - End Time 2025-02-06 04:17:05 [2025-02-06 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412536', 'tblTempUsageDetail_20' ) start [2025-02-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412536', 'tblTempUsageDetail_20' ) end [2025-02-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412536', 'tblTempVendorCDR_20' ) start [2025-02-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412536', 'tblTempVendorCDR_20' ) end [2025-02-06 04:17:19] Production.INFO: ProcessCDR(1,14412536,1,1,2) [2025-02-06 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412536', 'tblTempUsageDetail_20' ) start [2025-02-06 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412536', 'tblTempUsageDetail_20' ) end [2025-02-06 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:17:22] Production.INFO: ==28581== Releasing lock... [2025-02-06 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:17:22] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:18:04 [end_date_ymd] => 2025-02-06 04:18:04 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:18:04' and `end` < '2025-02-06 04: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-06 04:18:18] Production.INFO: count ==222 [2025-02-06 04:18:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:18:04 - End Time 2025-02-06 04:18:04 [2025-02-06 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412541', 'tblTempUsageDetail_20' ) start [2025-02-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412541', 'tblTempUsageDetail_20' ) end [2025-02-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412541', 'tblTempVendorCDR_20' ) start [2025-02-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412541', 'tblTempVendorCDR_20' ) end [2025-02-06 04:18:18] Production.INFO: ProcessCDR(1,14412541,1,1,2) [2025-02-06 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412541', 'tblTempUsageDetail_20' ) start [2025-02-06 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412541', 'tblTempUsageDetail_20' ) end [2025-02-06 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:18:21] Production.INFO: ==28679== Releasing lock... [2025-02-06 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:18:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:19:06 [end_date_ymd] => 2025-02-06 04:19:06 [RateCDR] => 1 ) [2025-02-06 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-06 01:19:06' and `end` < '2025-02-06 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-06 04:19:19] Production.INFO: count ==222 [2025-02-06 04:19:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:19:06 - End Time 2025-02-06 04:19:06 [2025-02-06 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412546', 'tblTempUsageDetail_20' ) start [2025-02-06 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412546', 'tblTempUsageDetail_20' ) end [2025-02-06 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412546', 'tblTempVendorCDR_20' ) start [2025-02-06 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412546', 'tblTempVendorCDR_20' ) end [2025-02-06 04:19:19] Production.INFO: ProcessCDR(1,14412546,1,1,2) [2025-02-06 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412546', 'tblTempUsageDetail_20' ) start [2025-02-06 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412546', 'tblTempUsageDetail_20' ) end [2025-02-06 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:19:22] Production.INFO: ==28778== Releasing lock... [2025-02-06 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:19:22] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:20:05 [end_date_ymd] => 2025-02-06 04:20:05 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:20:05' and `end` < '2025-02-06 04: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-06 04:20:18] Production.INFO: count ==220 [2025-02-06 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:20:05 - End Time 2025-02-06 04:20:05 [2025-02-06 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412552', 'tblTempUsageDetail_20' ) start [2025-02-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412552', 'tblTempUsageDetail_20' ) end [2025-02-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412552', 'tblTempVendorCDR_20' ) start [2025-02-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412552', 'tblTempVendorCDR_20' ) end [2025-02-06 04:20:18] Production.INFO: ProcessCDR(1,14412552,1,1,2) [2025-02-06 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412552', 'tblTempUsageDetail_20' ) start [2025-02-06 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412552', 'tblTempUsageDetail_20' ) end [2025-02-06 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:20:23] Production.INFO: ==28919== Releasing lock... [2025-02-06 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:20:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:21:05 [end_date_ymd] => 2025-02-06 04:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:21:05' and `end` < '2025-02-06 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-06 04:21:19] Production.INFO: count ==220 [2025-02-06 04:21:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:21:05 - End Time 2025-02-06 04:21:05 [2025-02-06 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412557', 'tblTempUsageDetail_20' ) start [2025-02-06 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412557', 'tblTempUsageDetail_20' ) end [2025-02-06 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412557', 'tblTempVendorCDR_20' ) start [2025-02-06 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412557', 'tblTempVendorCDR_20' ) end [2025-02-06 04:21:19] Production.INFO: ProcessCDR(1,14412557,1,1,2) [2025-02-06 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412557', 'tblTempUsageDetail_20' ) start [2025-02-06 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412557', 'tblTempUsageDetail_20' ) end [2025-02-06 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:21:22] Production.INFO: ==29024== Releasing lock... [2025-02-06 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:21:22] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:22:06 [end_date_ymd] => 2025-02-06 04:22:06 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:22:06' and `end` < '2025-02-06 04: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-06 04:22:21] Production.INFO: count ==222 [2025-02-06 04:22:21] Production.ERROR: pbx CDR StartTime 2025-02-06 01:22:06 - End Time 2025-02-06 04:22:06 [2025-02-06 04:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412562', 'tblTempUsageDetail_20' ) start [2025-02-06 04:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412562', 'tblTempUsageDetail_20' ) end [2025-02-06 04:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412562', 'tblTempVendorCDR_20' ) start [2025-02-06 04:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412562', 'tblTempVendorCDR_20' ) end [2025-02-06 04:22:21] Production.INFO: ProcessCDR(1,14412562,1,1,2) [2025-02-06 04:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412562', 'tblTempUsageDetail_20' ) start [2025-02-06 04:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412562', 'tblTempUsageDetail_20' ) end [2025-02-06 04:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:22:26] Production.INFO: ==29131== Releasing lock... [2025-02-06 04:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:22:26] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:23:05 [end_date_ymd] => 2025-02-06 04:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:23:05' and `end` < '2025-02-06 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-06 04:23:19] Production.INFO: count ==222 [2025-02-06 04:23:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:23:05 - End Time 2025-02-06 04:23:05 [2025-02-06 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412567', 'tblTempUsageDetail_20' ) start [2025-02-06 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412567', 'tblTempUsageDetail_20' ) end [2025-02-06 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412567', 'tblTempVendorCDR_20' ) start [2025-02-06 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412567', 'tblTempVendorCDR_20' ) end [2025-02-06 04:23:19] Production.INFO: ProcessCDR(1,14412567,1,1,2) [2025-02-06 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412567', 'tblTempUsageDetail_20' ) start [2025-02-06 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412567', 'tblTempUsageDetail_20' ) end [2025-02-06 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:23:22] Production.INFO: ==29232== Releasing lock... [2025-02-06 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:23:22] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:24:06 [end_date_ymd] => 2025-02-06 04:24:06 [RateCDR] => 1 ) [2025-02-06 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:24:06' and `end` < '2025-02-06 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:24:19] Production.INFO: count ==218 [2025-02-06 04:24:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:24:06 - End Time 2025-02-06 04:24:06 [2025-02-06 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412572', 'tblTempUsageDetail_20' ) start [2025-02-06 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412572', 'tblTempUsageDetail_20' ) end [2025-02-06 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412572', 'tblTempVendorCDR_20' ) start [2025-02-06 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412572', 'tblTempVendorCDR_20' ) end [2025-02-06 04:24:19] Production.INFO: ProcessCDR(1,14412572,1,1,2) [2025-02-06 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412572', 'tblTempUsageDetail_20' ) start [2025-02-06 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412572', 'tblTempUsageDetail_20' ) end [2025-02-06 04:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:24:23] Production.INFO: ==29332== Releasing lock... [2025-02-06 04:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:24:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:25:05 [end_date_ymd] => 2025-02-06 04:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:25:05' and `end` < '2025-02-06 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-06 04:25:18] Production.INFO: count ==208 [2025-02-06 04:25:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:25:05 - End Time 2025-02-06 04:25:05 [2025-02-06 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412577', 'tblTempUsageDetail_20' ) start [2025-02-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412577', 'tblTempUsageDetail_20' ) end [2025-02-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412577', 'tblTempVendorCDR_20' ) start [2025-02-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412577', 'tblTempVendorCDR_20' ) end [2025-02-06 04:25:18] Production.INFO: ProcessCDR(1,14412577,1,1,2) [2025-02-06 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412577', 'tblTempUsageDetail_20' ) start [2025-02-06 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412577', 'tblTempUsageDetail_20' ) end [2025-02-06 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:25:21] Production.INFO: ==29429== Releasing lock... [2025-02-06 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:25:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:26:05 [end_date_ymd] => 2025-02-06 04:26:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:26:05' and `end` < '2025-02-06 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-06 04:26:18] Production.INFO: count ==203 [2025-02-06 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:26:05 - End Time 2025-02-06 04:26:05 [2025-02-06 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412582', 'tblTempUsageDetail_20' ) start [2025-02-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412582', 'tblTempUsageDetail_20' ) end [2025-02-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412582', 'tblTempVendorCDR_20' ) start [2025-02-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412582', 'tblTempVendorCDR_20' ) end [2025-02-06 04:26:18] Production.INFO: ProcessCDR(1,14412582,1,1,2) [2025-02-06 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412582', 'tblTempUsageDetail_20' ) start [2025-02-06 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412582', 'tblTempUsageDetail_20' ) end [2025-02-06 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:26:21] Production.INFO: ==29524== Releasing lock... [2025-02-06 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:26:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:27:05 [end_date_ymd] => 2025-02-06 04:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:27:05' and `end` < '2025-02-06 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-06 04:27:18] Production.INFO: count ==199 [2025-02-06 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:27:05 - End Time 2025-02-06 04:27:05 [2025-02-06 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412587', 'tblTempUsageDetail_20' ) start [2025-02-06 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412587', 'tblTempUsageDetail_20' ) end [2025-02-06 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412587', 'tblTempVendorCDR_20' ) start [2025-02-06 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412587', 'tblTempVendorCDR_20' ) end [2025-02-06 04:27:18] Production.INFO: ProcessCDR(1,14412587,1,1,2) [2025-02-06 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412587', 'tblTempUsageDetail_20' ) start [2025-02-06 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412587', 'tblTempUsageDetail_20' ) end [2025-02-06 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:27:22] Production.INFO: ==29630== Releasing lock... [2025-02-06 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:27:22] Production.INFO: 29 MB #Memory Used# [2025-02-06 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:28:05 [end_date_ymd] => 2025-02-06 04:28:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:28:05' and `end` < '2025-02-06 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-06 04:28:18] Production.INFO: count ==190 [2025-02-06 04:28:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:28:05 - End Time 2025-02-06 04:28:05 [2025-02-06 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412592', 'tblTempUsageDetail_20' ) start [2025-02-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412592', 'tblTempUsageDetail_20' ) end [2025-02-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412592', 'tblTempVendorCDR_20' ) start [2025-02-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412592', 'tblTempVendorCDR_20' ) end [2025-02-06 04:28:18] Production.INFO: ProcessCDR(1,14412592,1,1,2) [2025-02-06 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412592', 'tblTempUsageDetail_20' ) start [2025-02-06 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412592', 'tblTempUsageDetail_20' ) end [2025-02-06 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:28:21] Production.INFO: ==29728== Releasing lock... [2025-02-06 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:29:05 [end_date_ymd] => 2025-02-06 04:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:29:05' and `end` < '2025-02-06 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-06 04:29:18] Production.INFO: count ==190 [2025-02-06 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:29:05 - End Time 2025-02-06 04:29:05 [2025-02-06 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412597', 'tblTempUsageDetail_20' ) start [2025-02-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412597', 'tblTempUsageDetail_20' ) end [2025-02-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412597', 'tblTempVendorCDR_20' ) start [2025-02-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412597', 'tblTempVendorCDR_20' ) end [2025-02-06 04:29:18] Production.INFO: ProcessCDR(1,14412597,1,1,2) [2025-02-06 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412597', 'tblTempUsageDetail_20' ) start [2025-02-06 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412597', 'tblTempUsageDetail_20' ) end [2025-02-06 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:29:21] Production.INFO: ==29833== Releasing lock... [2025-02-06 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:30:06 [end_date_ymd] => 2025-02-06 04:30:06 [RateCDR] => 1 ) [2025-02-06 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:30:06' and `end` < '2025-02-06 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:30:19] Production.INFO: count ==193 [2025-02-06 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:30:06 - End Time 2025-02-06 04:30:06 [2025-02-06 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412602', 'tblTempUsageDetail_20' ) start [2025-02-06 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412602', 'tblTempUsageDetail_20' ) end [2025-02-06 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412602', 'tblTempVendorCDR_20' ) start [2025-02-06 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412602', 'tblTempVendorCDR_20' ) end [2025-02-06 04:30:19] Production.INFO: ProcessCDR(1,14412602,1,1,2) [2025-02-06 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412602', 'tblTempUsageDetail_20' ) start [2025-02-06 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412602', 'tblTempUsageDetail_20' ) end [2025-02-06 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:30:23] Production.INFO: ==29937== Releasing lock... [2025-02-06 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:30:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:31:06 [end_date_ymd] => 2025-02-06 04:31:06 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:31:06' and `end` < '2025-02-06 04: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-06 04:31:20] Production.INFO: count ==194 [2025-02-06 04:31:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:31:06 - End Time 2025-02-06 04:31:06 [2025-02-06 04:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412609', 'tblTempUsageDetail_20' ) start [2025-02-06 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412609', 'tblTempUsageDetail_20' ) end [2025-02-06 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412609', 'tblTempVendorCDR_20' ) start [2025-02-06 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412609', 'tblTempVendorCDR_20' ) end [2025-02-06 04:31:20] Production.INFO: ProcessCDR(1,14412609,1,1,2) [2025-02-06 04:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412609', 'tblTempUsageDetail_20' ) start [2025-02-06 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412609', 'tblTempUsageDetail_20' ) end [2025-02-06 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:31:23] Production.INFO: ==30042== Releasing lock... [2025-02-06 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:31:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:32:05 [end_date_ymd] => 2025-02-06 04:32:05 [RateCDR] => 1 ) [2025-02-06 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:32:05' and `end` < '2025-02-06 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:32:19] Production.INFO: count ==194 [2025-02-06 04:32:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:32:05 - End Time 2025-02-06 04:32:05 [2025-02-06 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412614', 'tblTempUsageDetail_20' ) start [2025-02-06 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412614', 'tblTempUsageDetail_20' ) end [2025-02-06 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412614', 'tblTempVendorCDR_20' ) start [2025-02-06 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412614', 'tblTempVendorCDR_20' ) end [2025-02-06 04:32:19] Production.INFO: ProcessCDR(1,14412614,1,1,2) [2025-02-06 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412614', 'tblTempUsageDetail_20' ) start [2025-02-06 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412614', 'tblTempUsageDetail_20' ) end [2025-02-06 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:32:22] Production.INFO: ==30209== Releasing lock... [2025-02-06 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:33:05 [end_date_ymd] => 2025-02-06 04:33:05 [RateCDR] => 1 ) [2025-02-06 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:33:05' and `end` < '2025-02-06 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:33:18] Production.INFO: count ==194 [2025-02-06 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:33:05 - End Time 2025-02-06 04:33:05 [2025-02-06 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412619', 'tblTempUsageDetail_20' ) start [2025-02-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412619', 'tblTempUsageDetail_20' ) end [2025-02-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412619', 'tblTempVendorCDR_20' ) start [2025-02-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412619', 'tblTempVendorCDR_20' ) end [2025-02-06 04:33:18] Production.INFO: ProcessCDR(1,14412619,1,1,2) [2025-02-06 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412619', 'tblTempUsageDetail_20' ) start [2025-02-06 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412619', 'tblTempUsageDetail_20' ) end [2025-02-06 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:33:22] Production.INFO: ==30314== Releasing lock... [2025-02-06 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:34:05 [end_date_ymd] => 2025-02-06 04:34:05 [RateCDR] => 1 ) [2025-02-06 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:34:05' and `end` < '2025-02-06 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:34:18] Production.INFO: count ==194 [2025-02-06 04:34:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:34:05 - End Time 2025-02-06 04:34:05 [2025-02-06 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412624', 'tblTempUsageDetail_20' ) start [2025-02-06 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412624', 'tblTempUsageDetail_20' ) end [2025-02-06 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412624', 'tblTempVendorCDR_20' ) start [2025-02-06 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412624', 'tblTempVendorCDR_20' ) end [2025-02-06 04:34:18] Production.INFO: ProcessCDR(1,14412624,1,1,2) [2025-02-06 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412624', 'tblTempUsageDetail_20' ) start [2025-02-06 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412624', 'tblTempUsageDetail_20' ) end [2025-02-06 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:34:21] Production.INFO: ==30416== Releasing lock... [2025-02-06 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:35:05 [end_date_ymd] => 2025-02-06 04:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:35:05' and `end` < '2025-02-06 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-06 04:35:18] Production.INFO: count ==193 [2025-02-06 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:35:05 - End Time 2025-02-06 04:35:05 [2025-02-06 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412629', 'tblTempUsageDetail_20' ) start [2025-02-06 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412629', 'tblTempUsageDetail_20' ) end [2025-02-06 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412629', 'tblTempVendorCDR_20' ) start [2025-02-06 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412629', 'tblTempVendorCDR_20' ) end [2025-02-06 04:35:18] Production.INFO: ProcessCDR(1,14412629,1,1,2) [2025-02-06 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412629', 'tblTempUsageDetail_20' ) start [2025-02-06 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412629', 'tblTempUsageDetail_20' ) end [2025-02-06 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:35:21] Production.INFO: ==30518== Releasing lock... [2025-02-06 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:36:05 [end_date_ymd] => 2025-02-06 04:36:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:36:05' and `end` < '2025-02-06 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-06 04:36:18] Production.INFO: count ==193 [2025-02-06 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:36:05 - End Time 2025-02-06 04:36:05 [2025-02-06 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412634', 'tblTempUsageDetail_20' ) start [2025-02-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412634', 'tblTempUsageDetail_20' ) end [2025-02-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412634', 'tblTempVendorCDR_20' ) start [2025-02-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412634', 'tblTempVendorCDR_20' ) end [2025-02-06 04:36:18] Production.INFO: ProcessCDR(1,14412634,1,1,2) [2025-02-06 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412634', 'tblTempUsageDetail_20' ) start [2025-02-06 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412634', 'tblTempUsageDetail_20' ) end [2025-02-06 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:36:21] Production.INFO: ==30659== Releasing lock... [2025-02-06 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:37:06 [end_date_ymd] => 2025-02-06 04:37:06 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:37:06' and `end` < '2025-02-06 04: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-06 04:37:19] Production.INFO: count ==193 [2025-02-06 04:37:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:37:06 - End Time 2025-02-06 04:37:06 [2025-02-06 04:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412639', 'tblTempUsageDetail_20' ) start [2025-02-06 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412639', 'tblTempUsageDetail_20' ) end [2025-02-06 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412639', 'tblTempVendorCDR_20' ) start [2025-02-06 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412639', 'tblTempVendorCDR_20' ) end [2025-02-06 04:37:19] Production.INFO: ProcessCDR(1,14412639,1,1,2) [2025-02-06 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412639', 'tblTempUsageDetail_20' ) start [2025-02-06 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412639', 'tblTempUsageDetail_20' ) end [2025-02-06 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:37:22] Production.INFO: ==30761== Releasing lock... [2025-02-06 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:37:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:38:05 [end_date_ymd] => 2025-02-06 04:38:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:38:05' and `end` < '2025-02-06 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-06 04:38:18] Production.INFO: count ==193 [2025-02-06 04:38:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:38:05 - End Time 2025-02-06 04:38:05 [2025-02-06 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412644', 'tblTempUsageDetail_20' ) start [2025-02-06 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412644', 'tblTempUsageDetail_20' ) end [2025-02-06 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412644', 'tblTempVendorCDR_20' ) start [2025-02-06 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412644', 'tblTempVendorCDR_20' ) end [2025-02-06 04:38:18] Production.INFO: ProcessCDR(1,14412644,1,1,2) [2025-02-06 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412644', 'tblTempUsageDetail_20' ) start [2025-02-06 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412644', 'tblTempUsageDetail_20' ) end [2025-02-06 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:38:21] Production.INFO: ==30861== Releasing lock... [2025-02-06 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:39:06 [end_date_ymd] => 2025-02-06 04:39:06 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:39:06' and `end` < '2025-02-06 04: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-06 04:39:19] Production.INFO: count ==193 [2025-02-06 04:39:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:39:06 - End Time 2025-02-06 04:39:06 [2025-02-06 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412649', 'tblTempUsageDetail_20' ) start [2025-02-06 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412649', 'tblTempUsageDetail_20' ) end [2025-02-06 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412649', 'tblTempVendorCDR_20' ) start [2025-02-06 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412649', 'tblTempVendorCDR_20' ) end [2025-02-06 04:39:19] Production.INFO: ProcessCDR(1,14412649,1,1,2) [2025-02-06 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412649', 'tblTempUsageDetail_20' ) start [2025-02-06 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412649', 'tblTempUsageDetail_20' ) end [2025-02-06 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:39:22] Production.INFO: ==30956== Releasing lock... [2025-02-06 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:40:05 [end_date_ymd] => 2025-02-06 04:40:05 [RateCDR] => 1 ) [2025-02-06 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:40:05' and `end` < '2025-02-06 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:40:19] Production.INFO: count ==191 [2025-02-06 04:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:40:05 - End Time 2025-02-06 04:40:05 [2025-02-06 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412655', 'tblTempUsageDetail_20' ) start [2025-02-06 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412655', 'tblTempUsageDetail_20' ) end [2025-02-06 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412655', 'tblTempVendorCDR_20' ) start [2025-02-06 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412655', 'tblTempVendorCDR_20' ) end [2025-02-06 04:40:19] Production.INFO: ProcessCDR(1,14412655,1,1,2) [2025-02-06 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412655', 'tblTempUsageDetail_20' ) start [2025-02-06 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412655', 'tblTempUsageDetail_20' ) end [2025-02-06 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:40:22] Production.INFO: ==31059== Releasing lock... [2025-02-06 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:41:05 [end_date_ymd] => 2025-02-06 04:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:41:05' and `end` < '2025-02-06 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-06 04:41:18] Production.INFO: count ==183 [2025-02-06 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:41:05 - End Time 2025-02-06 04:41:05 [2025-02-06 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412660', 'tblTempUsageDetail_20' ) start [2025-02-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412660', 'tblTempUsageDetail_20' ) end [2025-02-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412660', 'tblTempVendorCDR_20' ) start [2025-02-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412660', 'tblTempVendorCDR_20' ) end [2025-02-06 04:41:18] Production.INFO: ProcessCDR(1,14412660,1,1,2) [2025-02-06 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412660', 'tblTempUsageDetail_20' ) start [2025-02-06 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412660', 'tblTempUsageDetail_20' ) end [2025-02-06 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:41:21] Production.INFO: ==31165== Releasing lock... [2025-02-06 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:42:05 [end_date_ymd] => 2025-02-06 04:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:42:05' and `end` < '2025-02-06 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-06 04:42:18] Production.INFO: count ==183 [2025-02-06 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:42:05 - End Time 2025-02-06 04:42:05 [2025-02-06 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412665', 'tblTempUsageDetail_20' ) start [2025-02-06 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412665', 'tblTempUsageDetail_20' ) end [2025-02-06 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412665', 'tblTempVendorCDR_20' ) start [2025-02-06 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412665', 'tblTempVendorCDR_20' ) end [2025-02-06 04:42:18] Production.INFO: ProcessCDR(1,14412665,1,1,2) [2025-02-06 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412665', 'tblTempUsageDetail_20' ) start [2025-02-06 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412665', 'tblTempUsageDetail_20' ) end [2025-02-06 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:42:21] Production.INFO: ==31272== Releasing lock... [2025-02-06 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:43:05 [end_date_ymd] => 2025-02-06 04:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:43:05' and `end` < '2025-02-06 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-06 04:43:18] Production.INFO: count ==182 [2025-02-06 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:43:05 - End Time 2025-02-06 04:43:05 [2025-02-06 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412670', 'tblTempUsageDetail_20' ) start [2025-02-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412670', 'tblTempUsageDetail_20' ) end [2025-02-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412670', 'tblTempVendorCDR_20' ) start [2025-02-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412670', 'tblTempVendorCDR_20' ) end [2025-02-06 04:43:18] Production.INFO: ProcessCDR(1,14412670,1,1,2) [2025-02-06 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412670', 'tblTempUsageDetail_20' ) start [2025-02-06 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412670', 'tblTempUsageDetail_20' ) end [2025-02-06 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:43:21] Production.INFO: ==31376== Releasing lock... [2025-02-06 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:44:06 [end_date_ymd] => 2025-02-06 04:44:06 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:44:06' and `end` < '2025-02-06 04: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-06 04:44:18] Production.INFO: count ==182 [2025-02-06 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:44:06 - End Time 2025-02-06 04:44:06 [2025-02-06 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412675', 'tblTempUsageDetail_20' ) start [2025-02-06 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412675', 'tblTempUsageDetail_20' ) end [2025-02-06 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412675', 'tblTempVendorCDR_20' ) start [2025-02-06 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412675', 'tblTempVendorCDR_20' ) end [2025-02-06 04:44:18] Production.INFO: ProcessCDR(1,14412675,1,1,2) [2025-02-06 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412675', 'tblTempUsageDetail_20' ) start [2025-02-06 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412675', 'tblTempUsageDetail_20' ) end [2025-02-06 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:44:22] Production.INFO: ==31475== Releasing lock... [2025-02-06 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:45:05 [end_date_ymd] => 2025-02-06 04:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:45:05' and `end` < '2025-02-06 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-06 04:45:18] Production.INFO: count ==182 [2025-02-06 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:45:05 - End Time 2025-02-06 04:45:05 [2025-02-06 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412680', 'tblTempUsageDetail_20' ) start [2025-02-06 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412680', 'tblTempUsageDetail_20' ) end [2025-02-06 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412680', 'tblTempVendorCDR_20' ) start [2025-02-06 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412680', 'tblTempVendorCDR_20' ) end [2025-02-06 04:45:18] Production.INFO: ProcessCDR(1,14412680,1,1,2) [2025-02-06 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412680', 'tblTempUsageDetail_20' ) start [2025-02-06 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412680', 'tblTempUsageDetail_20' ) end [2025-02-06 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:45:21] Production.INFO: ==31574== Releasing lock... [2025-02-06 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:46:06 [end_date_ymd] => 2025-02-06 04:46:06 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:46:06' and `end` < '2025-02-06 04: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-06 04:47:04] Production.INFO: count ==182 [2025-02-06 04:47:04] Production.ERROR: pbx CDR StartTime 2025-02-06 01:46:06 - End Time 2025-02-06 04:46:06 [2025-02-06 04:47:04] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:47:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412685', 'tblTempUsageDetail_20' ) start [2025-02-06 04:47:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412685', 'tblTempUsageDetail_20' ) end [2025-02-06 04:47:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412685', 'tblTempVendorCDR_20' ) start [2025-02-06 04:47:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412685', 'tblTempVendorCDR_20' ) end [2025-02-06 04:47:04] Production.INFO: ProcessCDR(1,14412685,1,1,2) [2025-02-06 04:47:04] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:47:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:47:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:47:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:47:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412685', 'tblTempUsageDetail_20' ) start [2025-02-06 04:47:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412685', 'tblTempUsageDetail_20' ) end [2025-02-06 04:47:11] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:47:11] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:47:11] Production.INFO: ==31676== Releasing lock... [2025-02-06 04:47:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:47:11] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:48:05 [end_date_ymd] => 2025-02-06 04:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:48:05' and `end` < '2025-02-06 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-06 04:48:19] Production.INFO: count ==182 [2025-02-06 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:48:05 - End Time 2025-02-06 04:48:05 [2025-02-06 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412694', 'tblTempUsageDetail_20' ) start [2025-02-06 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412694', 'tblTempUsageDetail_20' ) end [2025-02-06 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412694', 'tblTempVendorCDR_20' ) start [2025-02-06 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412694', 'tblTempVendorCDR_20' ) end [2025-02-06 04:48:19] Production.INFO: ProcessCDR(1,14412694,1,1,2) [2025-02-06 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412694', 'tblTempUsageDetail_20' ) start [2025-02-06 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412694', 'tblTempUsageDetail_20' ) end [2025-02-06 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:48:22] Production.INFO: ==31877== Releasing lock... [2025-02-06 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:49:05 [end_date_ymd] => 2025-02-06 04:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:49:05' and `end` < '2025-02-06 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-06 04:49:20] Production.INFO: count ==182 [2025-02-06 04:49:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:49:05 - End Time 2025-02-06 04:49:05 [2025-02-06 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412699', 'tblTempUsageDetail_20' ) start [2025-02-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412699', 'tblTempUsageDetail_20' ) end [2025-02-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412699', 'tblTempVendorCDR_20' ) start [2025-02-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412699', 'tblTempVendorCDR_20' ) end [2025-02-06 04:49:20] Production.INFO: ProcessCDR(1,14412699,1,1,2) [2025-02-06 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412699', 'tblTempUsageDetail_20' ) start [2025-02-06 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412699', 'tblTempUsageDetail_20' ) end [2025-02-06 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:49:23] Production.INFO: ==31977== Releasing lock... [2025-02-06 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:49:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:50:06 [end_date_ymd] => 2025-02-06 04:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 01:50:06' and `end` < '2025-02-06 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-06 04:50:21] Production.INFO: count ==182 [2025-02-06 04:50:21] Production.ERROR: pbx CDR StartTime 2025-02-06 01:50:06 - End Time 2025-02-06 04:50:06 [2025-02-06 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412705', 'tblTempUsageDetail_20' ) start [2025-02-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412705', 'tblTempUsageDetail_20' ) end [2025-02-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412705', 'tblTempVendorCDR_20' ) start [2025-02-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412705', 'tblTempVendorCDR_20' ) end [2025-02-06 04:50:21] Production.INFO: ProcessCDR(1,14412705,1,1,2) [2025-02-06 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412705', 'tblTempUsageDetail_20' ) start [2025-02-06 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412705', 'tblTempUsageDetail_20' ) end [2025-02-06 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:50:24] Production.INFO: ==32078== Releasing lock... [2025-02-06 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:50:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:51:04 [end_date_ymd] => 2025-02-06 04:51:04 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:51:04' and `end` < '2025-02-06 04: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-06 04:51:18] Production.INFO: count ==182 [2025-02-06 04:51:18] Production.ERROR: pbx CDR StartTime 2025-02-06 01:51:04 - End Time 2025-02-06 04:51:04 [2025-02-06 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412710', 'tblTempUsageDetail_20' ) start [2025-02-06 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412710', 'tblTempUsageDetail_20' ) end [2025-02-06 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412710', 'tblTempVendorCDR_20' ) start [2025-02-06 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412710', 'tblTempVendorCDR_20' ) end [2025-02-06 04:51:18] Production.INFO: ProcessCDR(1,14412710,1,1,2) [2025-02-06 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412710', 'tblTempUsageDetail_20' ) start [2025-02-06 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412710', 'tblTempUsageDetail_20' ) end [2025-02-06 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:51:22] Production.INFO: ==32220== Releasing lock... [2025-02-06 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:52:05 [end_date_ymd] => 2025-02-06 04:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:52:05' and `end` < '2025-02-06 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-06 04:52:21] Production.INFO: count ==182 [2025-02-06 04:52:21] Production.ERROR: pbx CDR StartTime 2025-02-06 01:52:05 - End Time 2025-02-06 04:52:05 [2025-02-06 04:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412715', 'tblTempUsageDetail_20' ) start [2025-02-06 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412715', 'tblTempUsageDetail_20' ) end [2025-02-06 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412715', 'tblTempVendorCDR_20' ) start [2025-02-06 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412715', 'tblTempVendorCDR_20' ) end [2025-02-06 04:52:21] Production.INFO: ProcessCDR(1,14412715,1,1,2) [2025-02-06 04:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412715', 'tblTempUsageDetail_20' ) start [2025-02-06 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412715', 'tblTempUsageDetail_20' ) end [2025-02-06 04:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:52:24] Production.INFO: ==32317== Releasing lock... [2025-02-06 04:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:52:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:53:04 [end_date_ymd] => 2025-02-06 04:53:04 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:53:04' and `end` < '2025-02-06 04: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-06 04:53:19] Production.INFO: count ==182 [2025-02-06 04:53:19] Production.ERROR: pbx CDR StartTime 2025-02-06 01:53:04 - End Time 2025-02-06 04:53:04 [2025-02-06 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412720', 'tblTempUsageDetail_20' ) start [2025-02-06 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412720', 'tblTempUsageDetail_20' ) end [2025-02-06 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412720', 'tblTempVendorCDR_20' ) start [2025-02-06 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412720', 'tblTempVendorCDR_20' ) end [2025-02-06 04:53:19] Production.INFO: ProcessCDR(1,14412720,1,1,2) [2025-02-06 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412720', 'tblTempUsageDetail_20' ) start [2025-02-06 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412720', 'tblTempUsageDetail_20' ) end [2025-02-06 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:53:23] Production.INFO: ==32393== Releasing lock... [2025-02-06 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:53:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:54:05 [end_date_ymd] => 2025-02-06 04:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:54:05' and `end` < '2025-02-06 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-06 04:54:20] Production.INFO: count ==182 [2025-02-06 04:54:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:54:05 - End Time 2025-02-06 04:54:05 [2025-02-06 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412725', 'tblTempUsageDetail_20' ) start [2025-02-06 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412725', 'tblTempUsageDetail_20' ) end [2025-02-06 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412725', 'tblTempVendorCDR_20' ) start [2025-02-06 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412725', 'tblTempVendorCDR_20' ) end [2025-02-06 04:54:20] Production.INFO: ProcessCDR(1,14412725,1,1,2) [2025-02-06 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412725', 'tblTempUsageDetail_20' ) start [2025-02-06 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412725', 'tblTempUsageDetail_20' ) end [2025-02-06 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:54:23] Production.INFO: ==32465== Releasing lock... [2025-02-06 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:54:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:55:06 [end_date_ymd] => 2025-02-06 04:55:06 [RateCDR] => 1 ) [2025-02-06 04:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:55:06' and `end` < '2025-02-06 04: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-06 04:55:20] Production.INFO: count ==182 [2025-02-06 04:55:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:55:06 - End Time 2025-02-06 04:55:06 [2025-02-06 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412730', 'tblTempUsageDetail_20' ) start [2025-02-06 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412730', 'tblTempUsageDetail_20' ) end [2025-02-06 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412730', 'tblTempVendorCDR_20' ) start [2025-02-06 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412730', 'tblTempVendorCDR_20' ) end [2025-02-06 04:55:20] Production.INFO: ProcessCDR(1,14412730,1,1,2) [2025-02-06 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412730', 'tblTempUsageDetail_20' ) start [2025-02-06 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412730', 'tblTempUsageDetail_20' ) end [2025-02-06 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:55:23] Production.INFO: ==32546== Releasing lock... [2025-02-06 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:55:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:56:05 [end_date_ymd] => 2025-02-06 04:56:05 [RateCDR] => 1 ) [2025-02-06 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:56:05' and `end` < '2025-02-06 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:56:20] Production.INFO: count ==182 [2025-02-06 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:56:05 - End Time 2025-02-06 04:56:05 [2025-02-06 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412735', 'tblTempUsageDetail_20' ) start [2025-02-06 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412735', 'tblTempUsageDetail_20' ) end [2025-02-06 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412735', 'tblTempVendorCDR_20' ) start [2025-02-06 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412735', 'tblTempVendorCDR_20' ) end [2025-02-06 04:56:20] Production.INFO: ProcessCDR(1,14412735,1,1,2) [2025-02-06 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412735', 'tblTempUsageDetail_20' ) start [2025-02-06 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412735', 'tblTempUsageDetail_20' ) end [2025-02-06 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:56:23] Production.INFO: ==32623== Releasing lock... [2025-02-06 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:56:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:57:06 [end_date_ymd] => 2025-02-06 04:57:06 [RateCDR] => 1 ) [2025-02-06 04: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-06 01:57:06' and `end` < '2025-02-06 04: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-06 04:57:21] Production.INFO: count ==182 [2025-02-06 04:57:21] Production.ERROR: pbx CDR StartTime 2025-02-06 01:57:06 - End Time 2025-02-06 04:57:06 [2025-02-06 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412740', 'tblTempUsageDetail_20' ) start [2025-02-06 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412740', 'tblTempUsageDetail_20' ) end [2025-02-06 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412740', 'tblTempVendorCDR_20' ) start [2025-02-06 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412740', 'tblTempVendorCDR_20' ) end [2025-02-06 04:57:21] Production.INFO: ProcessCDR(1,14412740,1,1,2) [2025-02-06 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412740', 'tblTempUsageDetail_20' ) start [2025-02-06 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412740', 'tblTempUsageDetail_20' ) end [2025-02-06 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:57:24] Production.INFO: ==32697== Releasing lock... [2025-02-06 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:57:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:58:05 [end_date_ymd] => 2025-02-06 04:58:05 [RateCDR] => 1 ) [2025-02-06 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 01:58:05' and `end` < '2025-02-06 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 04:58:20] Production.INFO: count ==182 [2025-02-06 04:58:20] Production.ERROR: pbx CDR StartTime 2025-02-06 01:58:05 - End Time 2025-02-06 04:58:05 [2025-02-06 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412745', 'tblTempUsageDetail_20' ) start [2025-02-06 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412745', 'tblTempUsageDetail_20' ) end [2025-02-06 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412745', 'tblTempVendorCDR_20' ) start [2025-02-06 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412745', 'tblTempVendorCDR_20' ) end [2025-02-06 04:58:20] Production.INFO: ProcessCDR(1,14412745,1,1,2) [2025-02-06 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412745', 'tblTempUsageDetail_20' ) start [2025-02-06 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412745', 'tblTempUsageDetail_20' ) end [2025-02-06 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:58:23] Production.INFO: ==302== Releasing lock... [2025-02-06 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:58:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 01:59:05 [end_date_ymd] => 2025-02-06 04:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 01:59:05' and `end` < '2025-02-06 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-06 04:59:21] Production.INFO: count ==182 [2025-02-06 04:59:21] Production.ERROR: pbx CDR StartTime 2025-02-06 01:59:05 - End Time 2025-02-06 04:59:05 [2025-02-06 04:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412750', 'tblTempUsageDetail_20' ) start [2025-02-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412750', 'tblTempUsageDetail_20' ) end [2025-02-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412750', 'tblTempVendorCDR_20' ) start [2025-02-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412750', 'tblTempVendorCDR_20' ) end [2025-02-06 04:59:21] Production.INFO: ProcessCDR(1,14412750,1,1,2) [2025-02-06 04:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 04:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412750', 'tblTempUsageDetail_20' ) start [2025-02-06 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412750', 'tblTempUsageDetail_20' ) end [2025-02-06 04:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 04:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 04:59:24] Production.INFO: ==394== Releasing lock... [2025-02-06 04:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 04:59:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:00:06 [end_date_ymd] => 2025-02-06 05:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 02:00:06' and `end` < '2025-02-06 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-06 05:00:21] Production.INFO: count ==175 [2025-02-06 05:00:21] Production.ERROR: pbx CDR StartTime 2025-02-06 02:00:06 - End Time 2025-02-06 05:00:06 [2025-02-06 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412756', 'tblTempUsageDetail_20' ) start [2025-02-06 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412756', 'tblTempUsageDetail_20' ) end [2025-02-06 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412756', 'tblTempVendorCDR_20' ) start [2025-02-06 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412756', 'tblTempVendorCDR_20' ) end [2025-02-06 05:00:21] Production.INFO: ProcessCDR(1,14412756,1,1,2) [2025-02-06 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412756', 'tblTempUsageDetail_20' ) start [2025-02-06 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412756', 'tblTempUsageDetail_20' ) end [2025-02-06 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:00:24] Production.INFO: ==470== Releasing lock... [2025-02-06 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:00:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:01:06 [end_date_ymd] => 2025-02-06 05:01:06 [RateCDR] => 1 ) [2025-02-06 05: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-06 02:01:06' and `end` < '2025-02-06 05: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-06 05:01:20] Production.INFO: count ==171 [2025-02-06 05:01:20] Production.ERROR: pbx CDR StartTime 2025-02-06 02:01:06 - End Time 2025-02-06 05:01:06 [2025-02-06 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412761', 'tblTempUsageDetail_20' ) start [2025-02-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412761', 'tblTempUsageDetail_20' ) end [2025-02-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412761', 'tblTempVendorCDR_20' ) start [2025-02-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412761', 'tblTempVendorCDR_20' ) end [2025-02-06 05:01:20] Production.INFO: ProcessCDR(1,14412761,1,1,2) [2025-02-06 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412761', 'tblTempUsageDetail_20' ) start [2025-02-06 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412761', 'tblTempUsageDetail_20' ) end [2025-02-06 05:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:01:24] Production.INFO: ==583== Releasing lock... [2025-02-06 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:01:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:02:05 [end_date_ymd] => 2025-02-06 05:02:05 [RateCDR] => 1 ) [2025-02-06 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:02:05' and `end` < '2025-02-06 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:02:19] Production.INFO: count ==171 [2025-02-06 05:02:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:02:05 - End Time 2025-02-06 05:02:05 [2025-02-06 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412766', 'tblTempUsageDetail_20' ) start [2025-02-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412766', 'tblTempUsageDetail_20' ) end [2025-02-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412766', 'tblTempVendorCDR_20' ) start [2025-02-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412766', 'tblTempVendorCDR_20' ) end [2025-02-06 05:02:19] Production.INFO: ProcessCDR(1,14412766,1,1,2) [2025-02-06 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412766', 'tblTempUsageDetail_20' ) start [2025-02-06 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412766', 'tblTempUsageDetail_20' ) end [2025-02-06 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:02:22] Production.INFO: ==684== Releasing lock... [2025-02-06 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:03:05 [end_date_ymd] => 2025-02-06 05:03:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:03:05' and `end` < '2025-02-06 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-06 05:03:20] Production.INFO: count ==171 [2025-02-06 05:03:20] Production.ERROR: pbx CDR StartTime 2025-02-06 02:03:05 - End Time 2025-02-06 05:03:05 [2025-02-06 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412771', 'tblTempUsageDetail_20' ) start [2025-02-06 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412771', 'tblTempUsageDetail_20' ) end [2025-02-06 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412771', 'tblTempVendorCDR_20' ) start [2025-02-06 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412771', 'tblTempVendorCDR_20' ) end [2025-02-06 05:03:20] Production.INFO: ProcessCDR(1,14412771,1,1,2) [2025-02-06 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412771', 'tblTempUsageDetail_20' ) start [2025-02-06 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412771', 'tblTempUsageDetail_20' ) end [2025-02-06 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:03:23] Production.INFO: ==774== Releasing lock... [2025-02-06 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:03:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:04:06 [end_date_ymd] => 2025-02-06 05:04:06 [RateCDR] => 1 ) [2025-02-06 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:04:06' and `end` < '2025-02-06 05:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:04:19] Production.INFO: count ==166 [2025-02-06 05:04:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:04:06 - End Time 2025-02-06 05:04:06 [2025-02-06 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412776', 'tblTempUsageDetail_20' ) start [2025-02-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412776', 'tblTempUsageDetail_20' ) end [2025-02-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412776', 'tblTempVendorCDR_20' ) start [2025-02-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412776', 'tblTempVendorCDR_20' ) end [2025-02-06 05:04:19] Production.INFO: ProcessCDR(1,14412776,1,1,2) [2025-02-06 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412776', 'tblTempUsageDetail_20' ) start [2025-02-06 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412776', 'tblTempUsageDetail_20' ) end [2025-02-06 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:04:22] Production.INFO: ==853== Releasing lock... [2025-02-06 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:05:04 [end_date_ymd] => 2025-02-06 05:05:04 [RateCDR] => 1 ) [2025-02-06 05: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-06 02:05:04' and `end` < '2025-02-06 05: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-06 05:05:18] Production.INFO: count ==166 [2025-02-06 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:05:04 - End Time 2025-02-06 05:05:04 [2025-02-06 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412781', 'tblTempUsageDetail_20' ) start [2025-02-06 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412781', 'tblTempUsageDetail_20' ) end [2025-02-06 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412781', 'tblTempVendorCDR_20' ) start [2025-02-06 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412781', 'tblTempVendorCDR_20' ) end [2025-02-06 05:05:18] Production.INFO: ProcessCDR(1,14412781,1,1,2) [2025-02-06 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412781', 'tblTempUsageDetail_20' ) start [2025-02-06 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412781', 'tblTempUsageDetail_20' ) end [2025-02-06 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:05:21] Production.INFO: ==924== Releasing lock... [2025-02-06 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:06:06 [end_date_ymd] => 2025-02-06 05:06:06 [RateCDR] => 1 ) [2025-02-06 05:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:06:06' and `end` < '2025-02-06 05:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:06:19] Production.INFO: count ==166 [2025-02-06 05:06:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:06:06 - End Time 2025-02-06 05:06:06 [2025-02-06 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412786', 'tblTempUsageDetail_20' ) start [2025-02-06 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412786', 'tblTempUsageDetail_20' ) end [2025-02-06 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412786', 'tblTempVendorCDR_20' ) start [2025-02-06 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412786', 'tblTempVendorCDR_20' ) end [2025-02-06 05:06:19] Production.INFO: ProcessCDR(1,14412786,1,1,2) [2025-02-06 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412786', 'tblTempUsageDetail_20' ) start [2025-02-06 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412786', 'tblTempUsageDetail_20' ) end [2025-02-06 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:06:22] Production.INFO: ==999== Releasing lock... [2025-02-06 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:07:05 [end_date_ymd] => 2025-02-06 05:07:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:07:05' and `end` < '2025-02-06 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-06 05:07:18] Production.INFO: count ==166 [2025-02-06 05:07:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:07:05 - End Time 2025-02-06 05:07:05 [2025-02-06 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412791', 'tblTempUsageDetail_20' ) start [2025-02-06 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412791', 'tblTempUsageDetail_20' ) end [2025-02-06 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412791', 'tblTempVendorCDR_20' ) start [2025-02-06 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412791', 'tblTempVendorCDR_20' ) end [2025-02-06 05:07:18] Production.INFO: ProcessCDR(1,14412791,1,1,2) [2025-02-06 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412791', 'tblTempUsageDetail_20' ) start [2025-02-06 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412791', 'tblTempUsageDetail_20' ) end [2025-02-06 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:07:21] Production.INFO: ==1112== Releasing lock... [2025-02-06 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:08:06 [end_date_ymd] => 2025-02-06 05:08:06 [RateCDR] => 1 ) [2025-02-06 05: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-06 02:08:06' and `end` < '2025-02-06 05: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-06 05:08:19] Production.INFO: count ==166 [2025-02-06 05:08:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:08:06 - End Time 2025-02-06 05:08:06 [2025-02-06 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412796', 'tblTempUsageDetail_20' ) start [2025-02-06 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412796', 'tblTempUsageDetail_20' ) end [2025-02-06 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412796', 'tblTempVendorCDR_20' ) start [2025-02-06 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412796', 'tblTempVendorCDR_20' ) end [2025-02-06 05:08:19] Production.INFO: ProcessCDR(1,14412796,1,1,2) [2025-02-06 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412796', 'tblTempUsageDetail_20' ) start [2025-02-06 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412796', 'tblTempUsageDetail_20' ) end [2025-02-06 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:08:22] Production.INFO: ==1191== Releasing lock... [2025-02-06 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:09:04 [end_date_ymd] => 2025-02-06 05:09:04 [RateCDR] => 1 ) [2025-02-06 05: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-06 02:09:04' and `end` < '2025-02-06 05: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-06 05:09:18] Production.INFO: count ==166 [2025-02-06 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:09:04 - End Time 2025-02-06 05:09:04 [2025-02-06 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412801', 'tblTempUsageDetail_20' ) start [2025-02-06 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412801', 'tblTempUsageDetail_20' ) end [2025-02-06 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412801', 'tblTempVendorCDR_20' ) start [2025-02-06 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412801', 'tblTempVendorCDR_20' ) end [2025-02-06 05:09:18] Production.INFO: ProcessCDR(1,14412801,1,1,2) [2025-02-06 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412801', 'tblTempUsageDetail_20' ) start [2025-02-06 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412801', 'tblTempUsageDetail_20' ) end [2025-02-06 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:09:21] Production.INFO: ==1285== Releasing lock... [2025-02-06 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:10:06 [end_date_ymd] => 2025-02-06 05:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 02:10:06' and `end` < '2025-02-06 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-06 05:10:19] Production.INFO: count ==162 [2025-02-06 05:10:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:10:06 - End Time 2025-02-06 05:10:06 [2025-02-06 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412806', 'tblTempUsageDetail_20' ) start [2025-02-06 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412806', 'tblTempUsageDetail_20' ) end [2025-02-06 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412806', 'tblTempVendorCDR_20' ) start [2025-02-06 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412806', 'tblTempVendorCDR_20' ) end [2025-02-06 05:10:19] Production.INFO: ProcessCDR(1,14412806,1,1,2) [2025-02-06 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412806', 'tblTempUsageDetail_20' ) start [2025-02-06 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412806', 'tblTempUsageDetail_20' ) end [2025-02-06 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:10:22] Production.INFO: ==1362== Releasing lock... [2025-02-06 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:11:06 [end_date_ymd] => 2025-02-06 05:11:06 [RateCDR] => 1 ) [2025-02-06 05: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-06 02:11:06' and `end` < '2025-02-06 05: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-06 05:11:19] Production.INFO: count ==156 [2025-02-06 05:11:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:11:06 - End Time 2025-02-06 05:11:06 [2025-02-06 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412812', 'tblTempUsageDetail_20' ) start [2025-02-06 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412812', 'tblTempUsageDetail_20' ) end [2025-02-06 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412812', 'tblTempVendorCDR_20' ) start [2025-02-06 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412812', 'tblTempVendorCDR_20' ) end [2025-02-06 05:11:19] Production.INFO: ProcessCDR(1,14412812,1,1,2) [2025-02-06 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412812', 'tblTempUsageDetail_20' ) start [2025-02-06 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412812', 'tblTempUsageDetail_20' ) end [2025-02-06 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:11:22] Production.INFO: ==1439== Releasing lock... [2025-02-06 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:11:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:12:05 [end_date_ymd] => 2025-02-06 05:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:12:05' and `end` < '2025-02-06 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-06 05:12:18] Production.INFO: count ==156 [2025-02-06 05:12:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:12:05 - End Time 2025-02-06 05:12:05 [2025-02-06 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412817', 'tblTempUsageDetail_20' ) start [2025-02-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412817', 'tblTempUsageDetail_20' ) end [2025-02-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412817', 'tblTempVendorCDR_20' ) start [2025-02-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412817', 'tblTempVendorCDR_20' ) end [2025-02-06 05:12:18] Production.INFO: ProcessCDR(1,14412817,1,1,2) [2025-02-06 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412817', 'tblTempUsageDetail_20' ) start [2025-02-06 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412817', 'tblTempUsageDetail_20' ) end [2025-02-06 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:12:22] Production.INFO: ==1548== Releasing lock... [2025-02-06 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:12:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:13:05 [end_date_ymd] => 2025-02-06 05:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:13:05' and `end` < '2025-02-06 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-06 05:13:19] Production.INFO: count ==156 [2025-02-06 05:13:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:13:05 - End Time 2025-02-06 05:13:05 [2025-02-06 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412822', 'tblTempUsageDetail_20' ) start [2025-02-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412822', 'tblTempUsageDetail_20' ) end [2025-02-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412822', 'tblTempVendorCDR_20' ) start [2025-02-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412822', 'tblTempVendorCDR_20' ) end [2025-02-06 05:13:19] Production.INFO: ProcessCDR(1,14412822,1,1,2) [2025-02-06 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412822', 'tblTempUsageDetail_20' ) start [2025-02-06 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412822', 'tblTempUsageDetail_20' ) end [2025-02-06 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:13:22] Production.INFO: ==1635== Releasing lock... [2025-02-06 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:13:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:14:05 [end_date_ymd] => 2025-02-06 05:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:14:05' and `end` < '2025-02-06 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-06 05:14:18] Production.INFO: count ==156 [2025-02-06 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:14:05 - End Time 2025-02-06 05:14:05 [2025-02-06 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412827', 'tblTempUsageDetail_20' ) start [2025-02-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412827', 'tblTempUsageDetail_20' ) end [2025-02-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412827', 'tblTempVendorCDR_20' ) start [2025-02-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412827', 'tblTempVendorCDR_20' ) end [2025-02-06 05:14:18] Production.INFO: ProcessCDR(1,14412827,1,1,2) [2025-02-06 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412827', 'tblTempUsageDetail_20' ) start [2025-02-06 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412827', 'tblTempUsageDetail_20' ) end [2025-02-06 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:14:21] Production.INFO: ==1711== Releasing lock... [2025-02-06 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:15:05 [end_date_ymd] => 2025-02-06 05:15:05 [RateCDR] => 1 ) [2025-02-06 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:15:05' and `end` < '2025-02-06 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:15:18] Production.INFO: count ==153 [2025-02-06 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:15:05 - End Time 2025-02-06 05:15:05 [2025-02-06 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412832', 'tblTempUsageDetail_20' ) start [2025-02-06 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412832', 'tblTempUsageDetail_20' ) end [2025-02-06 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412832', 'tblTempVendorCDR_20' ) start [2025-02-06 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412832', 'tblTempVendorCDR_20' ) end [2025-02-06 05:15:18] Production.INFO: ProcessCDR(1,14412832,1,1,2) [2025-02-06 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412832', 'tblTempUsageDetail_20' ) start [2025-02-06 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412832', 'tblTempUsageDetail_20' ) end [2025-02-06 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:15:21] Production.INFO: ==1793== Releasing lock... [2025-02-06 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:16:05 [end_date_ymd] => 2025-02-06 05:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:16:05' and `end` < '2025-02-06 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-06 05:16:18] Production.INFO: count ==152 [2025-02-06 05:16:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:16:05 - End Time 2025-02-06 05:16:05 [2025-02-06 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412837', 'tblTempUsageDetail_20' ) start [2025-02-06 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412837', 'tblTempUsageDetail_20' ) end [2025-02-06 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412837', 'tblTempVendorCDR_20' ) start [2025-02-06 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412837', 'tblTempVendorCDR_20' ) end [2025-02-06 05:16:18] Production.INFO: ProcessCDR(1,14412837,1,1,2) [2025-02-06 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412837', 'tblTempUsageDetail_20' ) start [2025-02-06 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412837', 'tblTempUsageDetail_20' ) end [2025-02-06 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:16:22] Production.INFO: ==1878== Releasing lock... [2025-02-06 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:16:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:17:06 [end_date_ymd] => 2025-02-06 05:17:06 [RateCDR] => 1 ) [2025-02-06 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-06 02:17:06' and `end` < '2025-02-06 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-06 05:17:19] Production.INFO: count ==152 [2025-02-06 05:17:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:17:06 - End Time 2025-02-06 05:17:06 [2025-02-06 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412842', 'tblTempUsageDetail_20' ) start [2025-02-06 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412842', 'tblTempUsageDetail_20' ) end [2025-02-06 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412842', 'tblTempVendorCDR_20' ) start [2025-02-06 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412842', 'tblTempVendorCDR_20' ) end [2025-02-06 05:17:19] Production.INFO: ProcessCDR(1,14412842,1,1,2) [2025-02-06 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412842', 'tblTempUsageDetail_20' ) start [2025-02-06 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412842', 'tblTempUsageDetail_20' ) end [2025-02-06 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:17:22] Production.INFO: ==1959== Releasing lock... [2025-02-06 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:17:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:18:05 [end_date_ymd] => 2025-02-06 05:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:18:05' and `end` < '2025-02-06 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-06 05:18:18] Production.INFO: count ==152 [2025-02-06 05:18:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:18:05 - End Time 2025-02-06 05:18:05 [2025-02-06 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412847', 'tblTempUsageDetail_20' ) start [2025-02-06 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412847', 'tblTempUsageDetail_20' ) end [2025-02-06 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412847', 'tblTempVendorCDR_20' ) start [2025-02-06 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412847', 'tblTempVendorCDR_20' ) end [2025-02-06 05:18:18] Production.INFO: ProcessCDR(1,14412847,1,1,2) [2025-02-06 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412847', 'tblTempUsageDetail_20' ) start [2025-02-06 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412847', 'tblTempUsageDetail_20' ) end [2025-02-06 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:18:21] Production.INFO: ==2038== Releasing lock... [2025-02-06 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:19:06 [end_date_ymd] => 2025-02-06 05:19:06 [RateCDR] => 1 ) [2025-02-06 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-06 02:19:06' and `end` < '2025-02-06 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-06 05:19:19] Production.INFO: count ==152 [2025-02-06 05:19:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:19:06 - End Time 2025-02-06 05:19:06 [2025-02-06 05:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412852', 'tblTempUsageDetail_20' ) start [2025-02-06 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412852', 'tblTempUsageDetail_20' ) end [2025-02-06 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412852', 'tblTempVendorCDR_20' ) start [2025-02-06 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412852', 'tblTempVendorCDR_20' ) end [2025-02-06 05:19:19] Production.INFO: ProcessCDR(1,14412852,1,1,2) [2025-02-06 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412852', 'tblTempUsageDetail_20' ) start [2025-02-06 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412852', 'tblTempUsageDetail_20' ) end [2025-02-06 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:19:22] Production.INFO: ==2118== Releasing lock... [2025-02-06 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:19:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:20:06 [end_date_ymd] => 2025-02-06 05:20:06 [RateCDR] => 1 ) [2025-02-06 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:20:06' and `end` < '2025-02-06 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:20:19] Production.INFO: count ==150 [2025-02-06 05:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:20:06 - End Time 2025-02-06 05:20:06 [2025-02-06 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412858', 'tblTempUsageDetail_20' ) start [2025-02-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412858', 'tblTempUsageDetail_20' ) end [2025-02-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412858', 'tblTempVendorCDR_20' ) start [2025-02-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412858', 'tblTempVendorCDR_20' ) end [2025-02-06 05:20:19] Production.INFO: ProcessCDR(1,14412858,1,1,2) [2025-02-06 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412858', 'tblTempUsageDetail_20' ) start [2025-02-06 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412858', 'tblTempUsageDetail_20' ) end [2025-02-06 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:20:22] Production.INFO: ==2197== Releasing lock... [2025-02-06 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:21:05 [end_date_ymd] => 2025-02-06 05:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:21:05' and `end` < '2025-02-06 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-06 05:21:19] Production.INFO: count ==150 [2025-02-06 05:21:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:21:05 - End Time 2025-02-06 05:21:05 [2025-02-06 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412863', 'tblTempUsageDetail_20' ) start [2025-02-06 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412863', 'tblTempUsageDetail_20' ) end [2025-02-06 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412863', 'tblTempVendorCDR_20' ) start [2025-02-06 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412863', 'tblTempVendorCDR_20' ) end [2025-02-06 05:21:19] Production.INFO: ProcessCDR(1,14412863,1,1,2) [2025-02-06 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412863', 'tblTempUsageDetail_20' ) start [2025-02-06 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412863', 'tblTempUsageDetail_20' ) end [2025-02-06 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:21:22] Production.INFO: ==2279== Releasing lock... [2025-02-06 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:21:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:22:06 [end_date_ymd] => 2025-02-06 05:22:06 [RateCDR] => 1 ) [2025-02-06 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:22:06' and `end` < '2025-02-06 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:22:19] Production.INFO: count ==150 [2025-02-06 05:22:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:22:06 - End Time 2025-02-06 05:22:06 [2025-02-06 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412868', 'tblTempUsageDetail_20' ) start [2025-02-06 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412868', 'tblTempUsageDetail_20' ) end [2025-02-06 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412868', 'tblTempVendorCDR_20' ) start [2025-02-06 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412868', 'tblTempVendorCDR_20' ) end [2025-02-06 05:22:19] Production.INFO: ProcessCDR(1,14412868,1,1,2) [2025-02-06 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412868', 'tblTempUsageDetail_20' ) start [2025-02-06 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412868', 'tblTempUsageDetail_20' ) end [2025-02-06 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:22:22] Production.INFO: ==2402== Releasing lock... [2025-02-06 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:23:05 [end_date_ymd] => 2025-02-06 05:23:05 [RateCDR] => 1 ) [2025-02-06 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:23:05' and `end` < '2025-02-06 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:23:19] Production.INFO: count ==150 [2025-02-06 05:23:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:23:05 - End Time 2025-02-06 05:23:05 [2025-02-06 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412873', 'tblTempUsageDetail_20' ) start [2025-02-06 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412873', 'tblTempUsageDetail_20' ) end [2025-02-06 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412873', 'tblTempVendorCDR_20' ) start [2025-02-06 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412873', 'tblTempVendorCDR_20' ) end [2025-02-06 05:23:19] Production.INFO: ProcessCDR(1,14412873,1,1,2) [2025-02-06 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412873', 'tblTempUsageDetail_20' ) start [2025-02-06 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412873', 'tblTempUsageDetail_20' ) end [2025-02-06 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:23:22] Production.INFO: ==2480== Releasing lock... [2025-02-06 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:23:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:24:06 [end_date_ymd] => 2025-02-06 05:24:06 [RateCDR] => 1 ) [2025-02-06 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:24:06' and `end` < '2025-02-06 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:24:19] Production.INFO: count ==150 [2025-02-06 05:24:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:24:06 - End Time 2025-02-06 05:24:06 [2025-02-06 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412878', 'tblTempUsageDetail_20' ) start [2025-02-06 05:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412878', 'tblTempUsageDetail_20' ) end [2025-02-06 05:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412878', 'tblTempVendorCDR_20' ) start [2025-02-06 05:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412878', 'tblTempVendorCDR_20' ) end [2025-02-06 05:24:20] Production.INFO: ProcessCDR(1,14412878,1,1,2) [2025-02-06 05:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412878', 'tblTempUsageDetail_20' ) start [2025-02-06 05:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412878', 'tblTempUsageDetail_20' ) end [2025-02-06 05:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:24:23] Production.INFO: ==2564== Releasing lock... [2025-02-06 05:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:24:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:25:05 [end_date_ymd] => 2025-02-06 05:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:25:05' and `end` < '2025-02-06 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-06 05:25:18] Production.INFO: count ==150 [2025-02-06 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:25:05 - End Time 2025-02-06 05:25:05 [2025-02-06 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412883', 'tblTempUsageDetail_20' ) start [2025-02-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412883', 'tblTempUsageDetail_20' ) end [2025-02-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412883', 'tblTempVendorCDR_20' ) start [2025-02-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412883', 'tblTempVendorCDR_20' ) end [2025-02-06 05:25:18] Production.INFO: ProcessCDR(1,14412883,1,1,2) [2025-02-06 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412883', 'tblTempUsageDetail_20' ) start [2025-02-06 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412883', 'tblTempUsageDetail_20' ) end [2025-02-06 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:25:21] Production.INFO: ==2646== Releasing lock... [2025-02-06 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:26:06 [end_date_ymd] => 2025-02-06 05:26:06 [RateCDR] => 1 ) [2025-02-06 05: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-06 02:26:06' and `end` < '2025-02-06 05: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-06 05:26:19] Production.INFO: count ==150 [2025-02-06 05:26:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:26:06 - End Time 2025-02-06 05:26:06 [2025-02-06 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412888', 'tblTempUsageDetail_20' ) start [2025-02-06 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412888', 'tblTempUsageDetail_20' ) end [2025-02-06 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412888', 'tblTempVendorCDR_20' ) start [2025-02-06 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412888', 'tblTempVendorCDR_20' ) end [2025-02-06 05:26:19] Production.INFO: ProcessCDR(1,14412888,1,1,2) [2025-02-06 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412888', 'tblTempUsageDetail_20' ) start [2025-02-06 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412888', 'tblTempUsageDetail_20' ) end [2025-02-06 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:26:22] Production.INFO: ==2725== Releasing lock... [2025-02-06 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:27:05 [end_date_ymd] => 2025-02-06 05:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:27:05' and `end` < '2025-02-06 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-06 05:27:19] Production.INFO: count ==150 [2025-02-06 05:27:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:27:05 - End Time 2025-02-06 05:27:05 [2025-02-06 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412893', 'tblTempUsageDetail_20' ) start [2025-02-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412893', 'tblTempUsageDetail_20' ) end [2025-02-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412893', 'tblTempVendorCDR_20' ) start [2025-02-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412893', 'tblTempVendorCDR_20' ) end [2025-02-06 05:27:19] Production.INFO: ProcessCDR(1,14412893,1,1,2) [2025-02-06 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412893', 'tblTempUsageDetail_20' ) start [2025-02-06 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412893', 'tblTempUsageDetail_20' ) end [2025-02-06 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:27:22] Production.INFO: ==2809== Releasing lock... [2025-02-06 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:27:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:28:05 [end_date_ymd] => 2025-02-06 05:28:05 [RateCDR] => 1 ) [2025-02-06 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:28:05' and `end` < '2025-02-06 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:28:19] Production.INFO: count ==150 [2025-02-06 05:28:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:28:05 - End Time 2025-02-06 05:28:05 [2025-02-06 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412898', 'tblTempUsageDetail_20' ) start [2025-02-06 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412898', 'tblTempUsageDetail_20' ) end [2025-02-06 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412898', 'tblTempVendorCDR_20' ) start [2025-02-06 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412898', 'tblTempVendorCDR_20' ) end [2025-02-06 05:28:19] Production.INFO: ProcessCDR(1,14412898,1,1,2) [2025-02-06 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412898', 'tblTempUsageDetail_20' ) start [2025-02-06 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412898', 'tblTempUsageDetail_20' ) end [2025-02-06 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:28:22] Production.INFO: ==2887== Releasing lock... [2025-02-06 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:28:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:29:05 [end_date_ymd] => 2025-02-06 05:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:29:05' and `end` < '2025-02-06 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-06 05:29:17] Production.INFO: count ==150 [2025-02-06 05:29:17] Production.ERROR: pbx CDR StartTime 2025-02-06 02:29:05 - End Time 2025-02-06 05:29:05 [2025-02-06 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412903', 'tblTempUsageDetail_20' ) start [2025-02-06 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412903', 'tblTempUsageDetail_20' ) end [2025-02-06 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412903', 'tblTempVendorCDR_20' ) start [2025-02-06 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412903', 'tblTempVendorCDR_20' ) end [2025-02-06 05:29:17] Production.INFO: ProcessCDR(1,14412903,1,1,2) [2025-02-06 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412903', 'tblTempUsageDetail_20' ) start [2025-02-06 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412903', 'tblTempUsageDetail_20' ) end [2025-02-06 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:29:21] Production.INFO: ==2976== Releasing lock... [2025-02-06 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:30:06 [end_date_ymd] => 2025-02-06 05:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 02:30:06' and `end` < '2025-02-06 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-06 05:30:20] Production.INFO: count ==147 [2025-02-06 05:30:20] Production.ERROR: pbx CDR StartTime 2025-02-06 02:30:06 - End Time 2025-02-06 05:30:06 [2025-02-06 05:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412908', 'tblTempUsageDetail_20' ) start [2025-02-06 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412908', 'tblTempUsageDetail_20' ) end [2025-02-06 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412908', 'tblTempVendorCDR_20' ) start [2025-02-06 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412908', 'tblTempVendorCDR_20' ) end [2025-02-06 05:30:20] Production.INFO: ProcessCDR(1,14412908,1,1,2) [2025-02-06 05:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412908', 'tblTempUsageDetail_20' ) start [2025-02-06 05:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412908', 'tblTempUsageDetail_20' ) end [2025-02-06 05:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:30:24] Production.INFO: ==3078== Releasing lock... [2025-02-06 05:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:30:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:31:05 [end_date_ymd] => 2025-02-06 05:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:31:05' and `end` < '2025-02-06 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-06 05:31:19] Production.INFO: count ==147 [2025-02-06 05:31:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:31:05 - End Time 2025-02-06 05:31:05 [2025-02-06 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412914', 'tblTempUsageDetail_20' ) start [2025-02-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412914', 'tblTempUsageDetail_20' ) end [2025-02-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412914', 'tblTempVendorCDR_20' ) start [2025-02-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412914', 'tblTempVendorCDR_20' ) end [2025-02-06 05:31:19] Production.INFO: ProcessCDR(1,14412914,1,1,2) [2025-02-06 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412914', 'tblTempUsageDetail_20' ) start [2025-02-06 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412914', 'tblTempUsageDetail_20' ) end [2025-02-06 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:31:22] Production.INFO: ==3170== Releasing lock... [2025-02-06 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:32:05 [end_date_ymd] => 2025-02-06 05:32:05 [RateCDR] => 1 ) [2025-02-06 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:32:05' and `end` < '2025-02-06 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:32:19] Production.INFO: count ==147 [2025-02-06 05:32:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:32:05 - End Time 2025-02-06 05:32:05 [2025-02-06 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412919', 'tblTempUsageDetail_20' ) start [2025-02-06 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412919', 'tblTempUsageDetail_20' ) end [2025-02-06 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412919', 'tblTempVendorCDR_20' ) start [2025-02-06 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412919', 'tblTempVendorCDR_20' ) end [2025-02-06 05:32:19] Production.INFO: ProcessCDR(1,14412919,1,1,2) [2025-02-06 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412919', 'tblTempUsageDetail_20' ) start [2025-02-06 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412919', 'tblTempUsageDetail_20' ) end [2025-02-06 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:32:22] Production.INFO: ==3271== Releasing lock... [2025-02-06 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:33:05 [end_date_ymd] => 2025-02-06 05:33:05 [RateCDR] => 1 ) [2025-02-06 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:33:05' and `end` < '2025-02-06 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:33:19] Production.INFO: count ==147 [2025-02-06 05:33:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:33:05 - End Time 2025-02-06 05:33:05 [2025-02-06 05:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412924', 'tblTempUsageDetail_20' ) start [2025-02-06 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412924', 'tblTempUsageDetail_20' ) end [2025-02-06 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412924', 'tblTempVendorCDR_20' ) start [2025-02-06 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412924', 'tblTempVendorCDR_20' ) end [2025-02-06 05:33:19] Production.INFO: ProcessCDR(1,14412924,1,1,2) [2025-02-06 05:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412924', 'tblTempUsageDetail_20' ) start [2025-02-06 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412924', 'tblTempUsageDetail_20' ) end [2025-02-06 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:33:22] Production.INFO: ==3373== Releasing lock... [2025-02-06 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:33:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:34:06 [end_date_ymd] => 2025-02-06 05:34:06 [RateCDR] => 1 ) [2025-02-06 05:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:34:06' and `end` < '2025-02-06 05:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:34:19] Production.INFO: count ==147 [2025-02-06 05:34:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:34:06 - End Time 2025-02-06 05:34:06 [2025-02-06 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412929', 'tblTempUsageDetail_20' ) start [2025-02-06 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412929', 'tblTempUsageDetail_20' ) end [2025-02-06 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412929', 'tblTempVendorCDR_20' ) start [2025-02-06 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412929', 'tblTempVendorCDR_20' ) end [2025-02-06 05:34:19] Production.INFO: ProcessCDR(1,14412929,1,1,2) [2025-02-06 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412929', 'tblTempUsageDetail_20' ) start [2025-02-06 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412929', 'tblTempUsageDetail_20' ) end [2025-02-06 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:34:22] Production.INFO: ==3477== Releasing lock... [2025-02-06 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:35:05 [end_date_ymd] => 2025-02-06 05:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:35:05' and `end` < '2025-02-06 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-06 05:35:18] Production.INFO: count ==147 [2025-02-06 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:35:05 - End Time 2025-02-06 05:35:05 [2025-02-06 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412934', 'tblTempUsageDetail_20' ) start [2025-02-06 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412934', 'tblTempUsageDetail_20' ) end [2025-02-06 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412934', 'tblTempVendorCDR_20' ) start [2025-02-06 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412934', 'tblTempVendorCDR_20' ) end [2025-02-06 05:35:18] Production.INFO: ProcessCDR(1,14412934,1,1,2) [2025-02-06 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412934', 'tblTempUsageDetail_20' ) start [2025-02-06 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412934', 'tblTempUsageDetail_20' ) end [2025-02-06 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:35:21] Production.INFO: ==3577== Releasing lock... [2025-02-06 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:36:05 [end_date_ymd] => 2025-02-06 05:36:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:36:05' and `end` < '2025-02-06 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-06 05:36:18] Production.INFO: count ==147 [2025-02-06 05:36:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:36:05 - End Time 2025-02-06 05:36:05 [2025-02-06 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412939', 'tblTempUsageDetail_20' ) start [2025-02-06 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412939', 'tblTempUsageDetail_20' ) end [2025-02-06 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412939', 'tblTempVendorCDR_20' ) start [2025-02-06 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412939', 'tblTempVendorCDR_20' ) end [2025-02-06 05:36:18] Production.INFO: ProcessCDR(1,14412939,1,1,2) [2025-02-06 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412939', 'tblTempUsageDetail_20' ) start [2025-02-06 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412939', 'tblTempUsageDetail_20' ) end [2025-02-06 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:36:21] Production.INFO: ==3685== Releasing lock... [2025-02-06 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:37:05 [end_date_ymd] => 2025-02-06 05:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:37:05' and `end` < '2025-02-06 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-06 05:37:20] Production.INFO: count ==147 [2025-02-06 05:37:20] Production.ERROR: pbx CDR StartTime 2025-02-06 02:37:05 - End Time 2025-02-06 05:37:05 [2025-02-06 05:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412944', 'tblTempUsageDetail_20' ) start [2025-02-06 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412944', 'tblTempUsageDetail_20' ) end [2025-02-06 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412944', 'tblTempVendorCDR_20' ) start [2025-02-06 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412944', 'tblTempVendorCDR_20' ) end [2025-02-06 05:37:20] Production.INFO: ProcessCDR(1,14412944,1,1,2) [2025-02-06 05:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412944', 'tblTempUsageDetail_20' ) start [2025-02-06 05:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412944', 'tblTempUsageDetail_20' ) end [2025-02-06 05:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:37:23] Production.INFO: ==3788== Releasing lock... [2025-02-06 05:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:37:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:38:06 [end_date_ymd] => 2025-02-06 05:38:06 [RateCDR] => 1 ) [2025-02-06 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-06 02:38:06' and `end` < '2025-02-06 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-06 05:38:18] Production.INFO: count ==147 [2025-02-06 05:38:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:38:06 - End Time 2025-02-06 05:38:06 [2025-02-06 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412949', 'tblTempUsageDetail_20' ) start [2025-02-06 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412949', 'tblTempUsageDetail_20' ) end [2025-02-06 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412949', 'tblTempVendorCDR_20' ) start [2025-02-06 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412949', 'tblTempVendorCDR_20' ) end [2025-02-06 05:38:18] Production.INFO: ProcessCDR(1,14412949,1,1,2) [2025-02-06 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412949', 'tblTempUsageDetail_20' ) start [2025-02-06 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412949', 'tblTempUsageDetail_20' ) end [2025-02-06 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:38:22] Production.INFO: ==3908== Releasing lock... [2025-02-06 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:39:05 [end_date_ymd] => 2025-02-06 05:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:39:05' and `end` < '2025-02-06 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-06 05:39:18] Production.INFO: count ==147 [2025-02-06 05:39:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:39:05 - End Time 2025-02-06 05:39:05 [2025-02-06 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412954', 'tblTempUsageDetail_20' ) start [2025-02-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412954', 'tblTempUsageDetail_20' ) end [2025-02-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412954', 'tblTempVendorCDR_20' ) start [2025-02-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412954', 'tblTempVendorCDR_20' ) end [2025-02-06 05:39:18] Production.INFO: ProcessCDR(1,14412954,1,1,2) [2025-02-06 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412954', 'tblTempUsageDetail_20' ) start [2025-02-06 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412954', 'tblTempUsageDetail_20' ) end [2025-02-06 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:39:21] Production.INFO: ==4001== Releasing lock... [2025-02-06 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:40:06 [end_date_ymd] => 2025-02-06 05:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 02:40:06' and `end` < '2025-02-06 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-06 05:40:19] Production.INFO: count ==144 [2025-02-06 05:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:40:06 - End Time 2025-02-06 05:40:06 [2025-02-06 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412960', 'tblTempUsageDetail_20' ) start [2025-02-06 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412960', 'tblTempUsageDetail_20' ) end [2025-02-06 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412960', 'tblTempVendorCDR_20' ) start [2025-02-06 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412960', 'tblTempVendorCDR_20' ) end [2025-02-06 05:40:19] Production.INFO: ProcessCDR(1,14412960,1,1,2) [2025-02-06 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412960', 'tblTempUsageDetail_20' ) start [2025-02-06 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412960', 'tblTempUsageDetail_20' ) end [2025-02-06 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:40:22] Production.INFO: ==4109== Releasing lock... [2025-02-06 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:41:05 [end_date_ymd] => 2025-02-06 05:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:41:05' and `end` < '2025-02-06 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-06 05:41:18] Production.INFO: count ==144 [2025-02-06 05:41:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:41:05 - End Time 2025-02-06 05:41:05 [2025-02-06 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412965', 'tblTempUsageDetail_20' ) start [2025-02-06 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412965', 'tblTempUsageDetail_20' ) end [2025-02-06 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412965', 'tblTempVendorCDR_20' ) start [2025-02-06 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412965', 'tblTempVendorCDR_20' ) end [2025-02-06 05:41:18] Production.INFO: ProcessCDR(1,14412965,1,1,2) [2025-02-06 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412965', 'tblTempUsageDetail_20' ) start [2025-02-06 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412965', 'tblTempUsageDetail_20' ) end [2025-02-06 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:41:21] Production.INFO: ==4214== Releasing lock... [2025-02-06 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:42:05 [end_date_ymd] => 2025-02-06 05:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:42:05' and `end` < '2025-02-06 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-06 05:42:18] Production.INFO: count ==144 [2025-02-06 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:42:05 - End Time 2025-02-06 05:42:05 [2025-02-06 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412970', 'tblTempUsageDetail_20' ) start [2025-02-06 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412970', 'tblTempUsageDetail_20' ) end [2025-02-06 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412970', 'tblTempVendorCDR_20' ) start [2025-02-06 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412970', 'tblTempVendorCDR_20' ) end [2025-02-06 05:42:18] Production.INFO: ProcessCDR(1,14412970,1,1,2) [2025-02-06 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412970', 'tblTempUsageDetail_20' ) start [2025-02-06 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412970', 'tblTempUsageDetail_20' ) end [2025-02-06 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:42:21] Production.INFO: ==4320== Releasing lock... [2025-02-06 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:43:05 [end_date_ymd] => 2025-02-06 05:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:43:05' and `end` < '2025-02-06 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-06 05:43:18] Production.INFO: count ==144 [2025-02-06 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:43:05 - End Time 2025-02-06 05:43:05 [2025-02-06 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412975', 'tblTempUsageDetail_20' ) start [2025-02-06 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412975', 'tblTempUsageDetail_20' ) end [2025-02-06 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412975', 'tblTempVendorCDR_20' ) start [2025-02-06 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412975', 'tblTempVendorCDR_20' ) end [2025-02-06 05:43:18] Production.INFO: ProcessCDR(1,14412975,1,1,2) [2025-02-06 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412975', 'tblTempUsageDetail_20' ) start [2025-02-06 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412975', 'tblTempUsageDetail_20' ) end [2025-02-06 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:43:21] Production.INFO: ==4399== Releasing lock... [2025-02-06 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:44:05 [end_date_ymd] => 2025-02-06 05:44:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:44:05' and `end` < '2025-02-06 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-06 05:44:18] Production.INFO: count ==144 [2025-02-06 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:44:05 - End Time 2025-02-06 05:44:05 [2025-02-06 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412980', 'tblTempUsageDetail_20' ) start [2025-02-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412980', 'tblTempUsageDetail_20' ) end [2025-02-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412980', 'tblTempVendorCDR_20' ) start [2025-02-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412980', 'tblTempVendorCDR_20' ) end [2025-02-06 05:44:18] Production.INFO: ProcessCDR(1,14412980,1,1,2) [2025-02-06 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412980', 'tblTempUsageDetail_20' ) start [2025-02-06 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412980', 'tblTempUsageDetail_20' ) end [2025-02-06 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:44:21] Production.INFO: ==4481== Releasing lock... [2025-02-06 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:45:05 [end_date_ymd] => 2025-02-06 05:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:45:05' and `end` < '2025-02-06 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-06 05:45:19] Production.INFO: count ==144 [2025-02-06 05:45:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:45:05 - End Time 2025-02-06 05:45:05 [2025-02-06 05:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412985', 'tblTempUsageDetail_20' ) start [2025-02-06 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412985', 'tblTempUsageDetail_20' ) end [2025-02-06 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412985', 'tblTempVendorCDR_20' ) start [2025-02-06 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412985', 'tblTempVendorCDR_20' ) end [2025-02-06 05:45:19] Production.INFO: ProcessCDR(1,14412985,1,1,2) [2025-02-06 05:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412985', 'tblTempUsageDetail_20' ) start [2025-02-06 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412985', 'tblTempUsageDetail_20' ) end [2025-02-06 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:45:22] Production.INFO: ==4556== Releasing lock... [2025-02-06 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:45:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:46:06 [end_date_ymd] => 2025-02-06 05:46:06 [RateCDR] => 1 ) [2025-02-06 05: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-06 02:46:06' and `end` < '2025-02-06 05: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-06 05:46:19] Production.INFO: count ==144 [2025-02-06 05:46:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:46:06 - End Time 2025-02-06 05:46:06 [2025-02-06 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412990', 'tblTempUsageDetail_20' ) start [2025-02-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412990', 'tblTempUsageDetail_20' ) end [2025-02-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412990', 'tblTempVendorCDR_20' ) start [2025-02-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412990', 'tblTempVendorCDR_20' ) end [2025-02-06 05:46:19] Production.INFO: ProcessCDR(1,14412990,1,1,2) [2025-02-06 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412990', 'tblTempUsageDetail_20' ) start [2025-02-06 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412990', 'tblTempUsageDetail_20' ) end [2025-02-06 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:46:22] Production.INFO: ==4644== Releasing lock... [2025-02-06 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:47:05 [end_date_ymd] => 2025-02-06 05:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:47:05' and `end` < '2025-02-06 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-06 05:47:18] Production.INFO: count ==144 [2025-02-06 05:47:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:47:05 - End Time 2025-02-06 05:47:05 [2025-02-06 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412995', 'tblTempUsageDetail_20' ) start [2025-02-06 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14412995', 'tblTempUsageDetail_20' ) end [2025-02-06 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412995', 'tblTempVendorCDR_20' ) start [2025-02-06 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14412995', 'tblTempVendorCDR_20' ) end [2025-02-06 05:47:18] Production.INFO: ProcessCDR(1,14412995,1,1,2) [2025-02-06 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14412995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14412995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14412995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14412995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412995', 'tblTempUsageDetail_20' ) start [2025-02-06 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14412995', 'tblTempUsageDetail_20' ) end [2025-02-06 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:47:22] Production.INFO: ==4724== Releasing lock... [2025-02-06 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:48:05 [end_date_ymd] => 2025-02-06 05:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:48:05' and `end` < '2025-02-06 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-06 05:48:19] Production.INFO: count ==144 [2025-02-06 05:48:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:48:05 - End Time 2025-02-06 05:48:05 [2025-02-06 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413000', 'tblTempUsageDetail_20' ) start [2025-02-06 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413000', 'tblTempUsageDetail_20' ) end [2025-02-06 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413000', 'tblTempVendorCDR_20' ) start [2025-02-06 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413000', 'tblTempVendorCDR_20' ) end [2025-02-06 05:48:19] Production.INFO: ProcessCDR(1,14413000,1,1,2) [2025-02-06 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413000', 'tblTempUsageDetail_20' ) start [2025-02-06 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413000', 'tblTempUsageDetail_20' ) end [2025-02-06 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:48:22] Production.INFO: ==4802== Releasing lock... [2025-02-06 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:49:05 [end_date_ymd] => 2025-02-06 05:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:49:05' and `end` < '2025-02-06 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-06 05:49:18] Production.INFO: count ==144 [2025-02-06 05:49:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:49:05 - End Time 2025-02-06 05:49:05 [2025-02-06 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413005', 'tblTempUsageDetail_20' ) start [2025-02-06 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413005', 'tblTempUsageDetail_20' ) end [2025-02-06 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413005', 'tblTempVendorCDR_20' ) start [2025-02-06 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413005', 'tblTempVendorCDR_20' ) end [2025-02-06 05:49:18] Production.INFO: ProcessCDR(1,14413005,1,1,2) [2025-02-06 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413005', 'tblTempUsageDetail_20' ) start [2025-02-06 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413005', 'tblTempUsageDetail_20' ) end [2025-02-06 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:49:21] Production.INFO: ==4887== Releasing lock... [2025-02-06 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:50:06 [end_date_ymd] => 2025-02-06 05:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 02:50:06' and `end` < '2025-02-06 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-06 05:50:19] Production.INFO: count ==140 [2025-02-06 05:50:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:50:06 - End Time 2025-02-06 05:50:06 [2025-02-06 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413011', 'tblTempUsageDetail_20' ) start [2025-02-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413011', 'tblTempUsageDetail_20' ) end [2025-02-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413011', 'tblTempVendorCDR_20' ) start [2025-02-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413011', 'tblTempVendorCDR_20' ) end [2025-02-06 05:50:19] Production.INFO: ProcessCDR(1,14413011,1,1,2) [2025-02-06 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413011', 'tblTempUsageDetail_20' ) start [2025-02-06 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413011', 'tblTempUsageDetail_20' ) end [2025-02-06 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:50:22] Production.INFO: ==4967== Releasing lock... [2025-02-06 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:51:05 [end_date_ymd] => 2025-02-06 05:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:51:05' and `end` < '2025-02-06 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-06 05:51:18] Production.INFO: count ==138 [2025-02-06 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:51:05 - End Time 2025-02-06 05:51:05 [2025-02-06 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413016', 'tblTempUsageDetail_20' ) start [2025-02-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413016', 'tblTempUsageDetail_20' ) end [2025-02-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413016', 'tblTempVendorCDR_20' ) start [2025-02-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413016', 'tblTempVendorCDR_20' ) end [2025-02-06 05:51:18] Production.INFO: ProcessCDR(1,14413016,1,1,2) [2025-02-06 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413016', 'tblTempUsageDetail_20' ) start [2025-02-06 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413016', 'tblTempUsageDetail_20' ) end [2025-02-06 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:51:21] Production.INFO: ==5061== Releasing lock... [2025-02-06 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:52:05 [end_date_ymd] => 2025-02-06 05:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:52:05' and `end` < '2025-02-06 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-06 05:52:18] Production.INFO: count ==137 [2025-02-06 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:52:05 - End Time 2025-02-06 05:52:05 [2025-02-06 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413021', 'tblTempUsageDetail_20' ) start [2025-02-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413021', 'tblTempUsageDetail_20' ) end [2025-02-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413021', 'tblTempVendorCDR_20' ) start [2025-02-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413021', 'tblTempVendorCDR_20' ) end [2025-02-06 05:52:18] Production.INFO: ProcessCDR(1,14413021,1,1,2) [2025-02-06 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413021', 'tblTempUsageDetail_20' ) start [2025-02-06 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413021', 'tblTempUsageDetail_20' ) end [2025-02-06 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:52:22] Production.INFO: ==5150== Releasing lock... [2025-02-06 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:53:05 [end_date_ymd] => 2025-02-06 05:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:53:05' and `end` < '2025-02-06 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-06 05:53:18] Production.INFO: count ==137 [2025-02-06 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:53:05 - End Time 2025-02-06 05:53:05 [2025-02-06 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413026', 'tblTempUsageDetail_20' ) start [2025-02-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413026', 'tblTempUsageDetail_20' ) end [2025-02-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413026', 'tblTempVendorCDR_20' ) start [2025-02-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413026', 'tblTempVendorCDR_20' ) end [2025-02-06 05:53:18] Production.INFO: ProcessCDR(1,14413026,1,1,2) [2025-02-06 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413026', 'tblTempUsageDetail_20' ) start [2025-02-06 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413026', 'tblTempUsageDetail_20' ) end [2025-02-06 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:53:21] Production.INFO: ==5267== Releasing lock... [2025-02-06 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:54:05 [end_date_ymd] => 2025-02-06 05:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:54:05' and `end` < '2025-02-06 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-06 05:54:19] Production.INFO: count ==137 [2025-02-06 05:54:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:54:05 - End Time 2025-02-06 05:54:05 [2025-02-06 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413031', 'tblTempUsageDetail_20' ) start [2025-02-06 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413031', 'tblTempUsageDetail_20' ) end [2025-02-06 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413031', 'tblTempVendorCDR_20' ) start [2025-02-06 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413031', 'tblTempVendorCDR_20' ) end [2025-02-06 05:54:19] Production.INFO: ProcessCDR(1,14413031,1,1,2) [2025-02-06 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413031', 'tblTempUsageDetail_20' ) start [2025-02-06 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413031', 'tblTempUsageDetail_20' ) end [2025-02-06 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:54:22] Production.INFO: ==5342== Releasing lock... [2025-02-06 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:55:04 [end_date_ymd] => 2025-02-06 05:55:04 [RateCDR] => 1 ) [2025-02-06 05:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:55:04' and `end` < '2025-02-06 05:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:55:18] Production.INFO: count ==137 [2025-02-06 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:55:04 - End Time 2025-02-06 05:55:04 [2025-02-06 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413036', 'tblTempUsageDetail_20' ) start [2025-02-06 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413036', 'tblTempUsageDetail_20' ) end [2025-02-06 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413036', 'tblTempVendorCDR_20' ) start [2025-02-06 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413036', 'tblTempVendorCDR_20' ) end [2025-02-06 05:55:18] Production.INFO: ProcessCDR(1,14413036,1,1,2) [2025-02-06 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413036', 'tblTempUsageDetail_20' ) start [2025-02-06 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413036', 'tblTempUsageDetail_20' ) end [2025-02-06 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:55:21] Production.INFO: ==5415== Releasing lock... [2025-02-06 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:56:05 [end_date_ymd] => 2025-02-06 05:56:05 [RateCDR] => 1 ) [2025-02-06 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 02:56:05' and `end` < '2025-02-06 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 05:56:18] Production.INFO: count ==137 [2025-02-06 05:56:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:56:05 - End Time 2025-02-06 05:56:05 [2025-02-06 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413041', 'tblTempUsageDetail_20' ) start [2025-02-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413041', 'tblTempUsageDetail_20' ) end [2025-02-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413041', 'tblTempVendorCDR_20' ) start [2025-02-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413041', 'tblTempVendorCDR_20' ) end [2025-02-06 05:56:18] Production.INFO: ProcessCDR(1,14413041,1,1,2) [2025-02-06 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413041', 'tblTempUsageDetail_20' ) start [2025-02-06 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413041', 'tblTempUsageDetail_20' ) end [2025-02-06 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:56:21] Production.INFO: ==5490== Releasing lock... [2025-02-06 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:57:05 [end_date_ymd] => 2025-02-06 05:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:57:05' and `end` < '2025-02-06 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-06 05:57:19] Production.INFO: count ==137 [2025-02-06 05:57:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:57:05 - End Time 2025-02-06 05:57:05 [2025-02-06 05:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413046', 'tblTempUsageDetail_20' ) start [2025-02-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413046', 'tblTempUsageDetail_20' ) end [2025-02-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413046', 'tblTempVendorCDR_20' ) start [2025-02-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413046', 'tblTempVendorCDR_20' ) end [2025-02-06 05:57:19] Production.INFO: ProcessCDR(1,14413046,1,1,2) [2025-02-06 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413046', 'tblTempUsageDetail_20' ) start [2025-02-06 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413046', 'tblTempUsageDetail_20' ) end [2025-02-06 05:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:57:23] Production.INFO: ==5562== Releasing lock... [2025-02-06 05:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:57:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:58:05 [end_date_ymd] => 2025-02-06 05:58:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:58:05' and `end` < '2025-02-06 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-06 05:58:18] Production.INFO: count ==137 [2025-02-06 05:58:18] Production.ERROR: pbx CDR StartTime 2025-02-06 02:58:05 - End Time 2025-02-06 05:58:05 [2025-02-06 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413051', 'tblTempUsageDetail_20' ) start [2025-02-06 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413051', 'tblTempUsageDetail_20' ) end [2025-02-06 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413051', 'tblTempVendorCDR_20' ) start [2025-02-06 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413051', 'tblTempVendorCDR_20' ) end [2025-02-06 05:58:18] Production.INFO: ProcessCDR(1,14413051,1,1,2) [2025-02-06 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413051', 'tblTempUsageDetail_20' ) start [2025-02-06 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413051', 'tblTempUsageDetail_20' ) end [2025-02-06 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:58:21] Production.INFO: ==5636== Releasing lock... [2025-02-06 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 02:59:05 [end_date_ymd] => 2025-02-06 05:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 02:59:05' and `end` < '2025-02-06 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-06 05:59:19] Production.INFO: count ==137 [2025-02-06 05:59:19] Production.ERROR: pbx CDR StartTime 2025-02-06 02:59:05 - End Time 2025-02-06 05:59:05 [2025-02-06 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413056', 'tblTempUsageDetail_20' ) start [2025-02-06 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413056', 'tblTempUsageDetail_20' ) end [2025-02-06 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413056', 'tblTempVendorCDR_20' ) start [2025-02-06 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413056', 'tblTempVendorCDR_20' ) end [2025-02-06 05:59:19] Production.INFO: ProcessCDR(1,14413056,1,1,2) [2025-02-06 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413056', 'tblTempUsageDetail_20' ) start [2025-02-06 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413056', 'tblTempUsageDetail_20' ) end [2025-02-06 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 05:59:22] Production.INFO: ==5714== Releasing lock... [2025-02-06 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 05:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:00:06 [end_date_ymd] => 2025-02-06 06:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 03:00:06' and `end` < '2025-02-06 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-06 06:00:20] Production.INFO: count ==137 [2025-02-06 06:00:20] Production.ERROR: pbx CDR StartTime 2025-02-06 03:00:06 - End Time 2025-02-06 06:00:06 [2025-02-06 06:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413062', 'tblTempUsageDetail_20' ) start [2025-02-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413062', 'tblTempUsageDetail_20' ) end [2025-02-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413062', 'tblTempVendorCDR_20' ) start [2025-02-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413062', 'tblTempVendorCDR_20' ) end [2025-02-06 06:00:20] Production.INFO: ProcessCDR(1,14413062,1,1,2) [2025-02-06 06:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413062', 'tblTempUsageDetail_20' ) start [2025-02-06 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413062', 'tblTempUsageDetail_20' ) end [2025-02-06 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:00:23] Production.INFO: ==5792== Releasing lock... [2025-02-06 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:00:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:01:05 [end_date_ymd] => 2025-02-06 06:01:05 [RateCDR] => 1 ) [2025-02-06 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:01:05' and `end` < '2025-02-06 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:01:18] Production.INFO: count ==137 [2025-02-06 06:01:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:01:05 - End Time 2025-02-06 06:01:05 [2025-02-06 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413067', 'tblTempUsageDetail_20' ) start [2025-02-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413067', 'tblTempUsageDetail_20' ) end [2025-02-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413067', 'tblTempVendorCDR_20' ) start [2025-02-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413067', 'tblTempVendorCDR_20' ) end [2025-02-06 06:01:18] Production.INFO: ProcessCDR(1,14413067,1,1,2) [2025-02-06 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413067', 'tblTempUsageDetail_20' ) start [2025-02-06 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413067', 'tblTempUsageDetail_20' ) end [2025-02-06 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:01:22] Production.INFO: ==5879== Releasing lock... [2025-02-06 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:02:05 [end_date_ymd] => 2025-02-06 06:02:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:02:05' and `end` < '2025-02-06 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-06 06:02:19] Production.INFO: count ==138 [2025-02-06 06:02:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:02:05 - End Time 2025-02-06 06:02:05 [2025-02-06 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413072', 'tblTempUsageDetail_20' ) start [2025-02-06 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413072', 'tblTempUsageDetail_20' ) end [2025-02-06 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413072', 'tblTempVendorCDR_20' ) start [2025-02-06 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413072', 'tblTempVendorCDR_20' ) end [2025-02-06 06:02:19] Production.INFO: ProcessCDR(1,14413072,1,1,2) [2025-02-06 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413072', 'tblTempUsageDetail_20' ) start [2025-02-06 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413072', 'tblTempUsageDetail_20' ) end [2025-02-06 06:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:02:23] Production.INFO: ==5958== Releasing lock... [2025-02-06 06:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:02:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:03:05 [end_date_ymd] => 2025-02-06 06:03:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:03:05' and `end` < '2025-02-06 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-06 06:03:18] Production.INFO: count ==138 [2025-02-06 06:03:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:03:05 - End Time 2025-02-06 06:03:05 [2025-02-06 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413077', 'tblTempUsageDetail_20' ) start [2025-02-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413077', 'tblTempUsageDetail_20' ) end [2025-02-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413077', 'tblTempVendorCDR_20' ) start [2025-02-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413077', 'tblTempVendorCDR_20' ) end [2025-02-06 06:03:18] Production.INFO: ProcessCDR(1,14413077,1,1,2) [2025-02-06 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413077', 'tblTempUsageDetail_20' ) start [2025-02-06 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413077', 'tblTempUsageDetail_20' ) end [2025-02-06 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:03:22] Production.INFO: ==6038== Releasing lock... [2025-02-06 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:03:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:04:05 [end_date_ymd] => 2025-02-06 06:04:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:04:05' and `end` < '2025-02-06 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-06 06:04:19] Production.INFO: count ==138 [2025-02-06 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:04:05 - End Time 2025-02-06 06:04:05 [2025-02-06 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413082', 'tblTempUsageDetail_20' ) start [2025-02-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413082', 'tblTempUsageDetail_20' ) end [2025-02-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413082', 'tblTempVendorCDR_20' ) start [2025-02-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413082', 'tblTempVendorCDR_20' ) end [2025-02-06 06:04:19] Production.INFO: ProcessCDR(1,14413082,1,1,2) [2025-02-06 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413082', 'tblTempUsageDetail_20' ) start [2025-02-06 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413082', 'tblTempUsageDetail_20' ) end [2025-02-06 06:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:04:23] Production.INFO: ==6120== Releasing lock... [2025-02-06 06:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:04:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:05:06 [end_date_ymd] => 2025-02-06 06:05:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:05:06' and `end` < '2025-02-06 06: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-06 06:05:19] Production.INFO: count ==138 [2025-02-06 06:05:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:05:06 - End Time 2025-02-06 06:05:06 [2025-02-06 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413087', 'tblTempUsageDetail_20' ) start [2025-02-06 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413087', 'tblTempUsageDetail_20' ) end [2025-02-06 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413087', 'tblTempVendorCDR_20' ) start [2025-02-06 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413087', 'tblTempVendorCDR_20' ) end [2025-02-06 06:05:19] Production.INFO: ProcessCDR(1,14413087,1,1,2) [2025-02-06 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413087', 'tblTempUsageDetail_20' ) start [2025-02-06 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413087', 'tblTempUsageDetail_20' ) end [2025-02-06 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:05:22] Production.INFO: ==6204== Releasing lock... [2025-02-06 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:06:05 [end_date_ymd] => 2025-02-06 06:06:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:06:05' and `end` < '2025-02-06 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-06 06:06:19] Production.INFO: count ==138 [2025-02-06 06:06:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:06:05 - End Time 2025-02-06 06:06:05 [2025-02-06 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413092', 'tblTempUsageDetail_20' ) start [2025-02-06 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413092', 'tblTempUsageDetail_20' ) end [2025-02-06 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413092', 'tblTempVendorCDR_20' ) start [2025-02-06 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413092', 'tblTempVendorCDR_20' ) end [2025-02-06 06:06:19] Production.INFO: ProcessCDR(1,14413092,1,1,2) [2025-02-06 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413092', 'tblTempUsageDetail_20' ) start [2025-02-06 06:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413092', 'tblTempUsageDetail_20' ) end [2025-02-06 06:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:06:23] Production.INFO: ==6284== Releasing lock... [2025-02-06 06:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:06:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:07:06 [end_date_ymd] => 2025-02-06 06:07:06 [RateCDR] => 1 ) [2025-02-06 06:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:07:06' and `end` < '2025-02-06 06:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:07:19] Production.INFO: count ==133 [2025-02-06 06:07:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:07:06 - End Time 2025-02-06 06:07:06 [2025-02-06 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413097', 'tblTempUsageDetail_20' ) start [2025-02-06 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413097', 'tblTempUsageDetail_20' ) end [2025-02-06 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413097', 'tblTempVendorCDR_20' ) start [2025-02-06 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413097', 'tblTempVendorCDR_20' ) end [2025-02-06 06:07:19] Production.INFO: ProcessCDR(1,14413097,1,1,2) [2025-02-06 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413097', 'tblTempUsageDetail_20' ) start [2025-02-06 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413097', 'tblTempUsageDetail_20' ) end [2025-02-06 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:07:22] Production.INFO: ==6365== Releasing lock... [2025-02-06 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:08:05 [end_date_ymd] => 2025-02-06 06:08:05 [RateCDR] => 1 ) [2025-02-06 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:08:05' and `end` < '2025-02-06 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:08:19] Production.INFO: count ==133 [2025-02-06 06:08:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:08:05 - End Time 2025-02-06 06:08:05 [2025-02-06 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413102', 'tblTempUsageDetail_20' ) start [2025-02-06 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413102', 'tblTempUsageDetail_20' ) end [2025-02-06 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413102', 'tblTempVendorCDR_20' ) start [2025-02-06 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413102', 'tblTempVendorCDR_20' ) end [2025-02-06 06:08:19] Production.INFO: ProcessCDR(1,14413102,1,1,2) [2025-02-06 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413102', 'tblTempUsageDetail_20' ) start [2025-02-06 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413102', 'tblTempUsageDetail_20' ) end [2025-02-06 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:08:22] Production.INFO: ==6447== Releasing lock... [2025-02-06 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:09:06 [end_date_ymd] => 2025-02-06 06:09:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:09:06' and `end` < '2025-02-06 06: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-06 06:09:20] Production.INFO: count ==133 [2025-02-06 06:09:20] Production.ERROR: pbx CDR StartTime 2025-02-06 03:09:06 - End Time 2025-02-06 06:09:06 [2025-02-06 06:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413107', 'tblTempUsageDetail_20' ) start [2025-02-06 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413107', 'tblTempUsageDetail_20' ) end [2025-02-06 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413107', 'tblTempVendorCDR_20' ) start [2025-02-06 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413107', 'tblTempVendorCDR_20' ) end [2025-02-06 06:09:20] Production.INFO: ProcessCDR(1,14413107,1,1,2) [2025-02-06 06:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413107', 'tblTempUsageDetail_20' ) start [2025-02-06 06:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413107', 'tblTempUsageDetail_20' ) end [2025-02-06 06:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:09:23] Production.INFO: ==6569== Releasing lock... [2025-02-06 06:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:09:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:10:06 [end_date_ymd] => 2025-02-06 06:10:06 [RateCDR] => 1 ) [2025-02-06 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:10:06' and `end` < '2025-02-06 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:10:20] Production.INFO: count ==129 [2025-02-06 06:10:20] Production.ERROR: pbx CDR StartTime 2025-02-06 03:10:06 - End Time 2025-02-06 06:10:06 [2025-02-06 06:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413113', 'tblTempUsageDetail_20' ) start [2025-02-06 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413113', 'tblTempUsageDetail_20' ) end [2025-02-06 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413113', 'tblTempVendorCDR_20' ) start [2025-02-06 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413113', 'tblTempVendorCDR_20' ) end [2025-02-06 06:10:20] Production.INFO: ProcessCDR(1,14413113,1,1,2) [2025-02-06 06:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413113', 'tblTempUsageDetail_20' ) start [2025-02-06 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413113', 'tblTempUsageDetail_20' ) end [2025-02-06 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:10:23] Production.INFO: ==6655== Releasing lock... [2025-02-06 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:10:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:11:06 [end_date_ymd] => 2025-02-06 06:11:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:11:06' and `end` < '2025-02-06 06: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-06 06:11:20] Production.INFO: count ==125 [2025-02-06 06:11:20] Production.ERROR: pbx CDR StartTime 2025-02-06 03:11:06 - End Time 2025-02-06 06:11:06 [2025-02-06 06:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413118', 'tblTempUsageDetail_20' ) start [2025-02-06 06:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413118', 'tblTempUsageDetail_20' ) end [2025-02-06 06:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413118', 'tblTempVendorCDR_20' ) start [2025-02-06 06:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413118', 'tblTempVendorCDR_20' ) end [2025-02-06 06:11:20] Production.INFO: ProcessCDR(1,14413118,1,1,2) [2025-02-06 06:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413118', 'tblTempUsageDetail_20' ) start [2025-02-06 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413118', 'tblTempUsageDetail_20' ) end [2025-02-06 06:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:11:23] Production.INFO: ==6741== Releasing lock... [2025-02-06 06:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:11:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:12:05 [end_date_ymd] => 2025-02-06 06:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:12:05' and `end` < '2025-02-06 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-06 06:12:19] Production.INFO: count ==125 [2025-02-06 06:12:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:12:05 - End Time 2025-02-06 06:12:05 [2025-02-06 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413123', 'tblTempUsageDetail_20' ) start [2025-02-06 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413123', 'tblTempUsageDetail_20' ) end [2025-02-06 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413123', 'tblTempVendorCDR_20' ) start [2025-02-06 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413123', 'tblTempVendorCDR_20' ) end [2025-02-06 06:12:19] Production.INFO: ProcessCDR(1,14413123,1,1,2) [2025-02-06 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413123', 'tblTempUsageDetail_20' ) start [2025-02-06 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413123', 'tblTempUsageDetail_20' ) end [2025-02-06 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:12:22] Production.INFO: ==6824== Releasing lock... [2025-02-06 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:13:06 [end_date_ymd] => 2025-02-06 06:13:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:13:06' and `end` < '2025-02-06 06: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-06 06:13:19] Production.INFO: count ==125 [2025-02-06 06:13:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:13:06 - End Time 2025-02-06 06:13:06 [2025-02-06 06:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413128', 'tblTempUsageDetail_20' ) start [2025-02-06 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413128', 'tblTempUsageDetail_20' ) end [2025-02-06 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413128', 'tblTempVendorCDR_20' ) start [2025-02-06 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413128', 'tblTempVendorCDR_20' ) end [2025-02-06 06:13:19] Production.INFO: ProcessCDR(1,14413128,1,1,2) [2025-02-06 06:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413128', 'tblTempUsageDetail_20' ) start [2025-02-06 06:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413128', 'tblTempUsageDetail_20' ) end [2025-02-06 06:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:13:23] Production.INFO: ==6909== Releasing lock... [2025-02-06 06:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:13:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:14:06 [end_date_ymd] => 2025-02-06 06:14:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:14:06' and `end` < '2025-02-06 06: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-06 06:14:19] Production.INFO: count ==125 [2025-02-06 06:14:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:14:06 - End Time 2025-02-06 06:14:06 [2025-02-06 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413133', 'tblTempUsageDetail_20' ) start [2025-02-06 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413133', 'tblTempUsageDetail_20' ) end [2025-02-06 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413133', 'tblTempVendorCDR_20' ) start [2025-02-06 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413133', 'tblTempVendorCDR_20' ) end [2025-02-06 06:14:19] Production.INFO: ProcessCDR(1,14413133,1,1,2) [2025-02-06 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413133', 'tblTempUsageDetail_20' ) start [2025-02-06 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413133', 'tblTempUsageDetail_20' ) end [2025-02-06 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:14:22] Production.INFO: ==6991== Releasing lock... [2025-02-06 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:15:05 [end_date_ymd] => 2025-02-06 06:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:15:05' and `end` < '2025-02-06 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-06 06:15:19] Production.INFO: count ==125 [2025-02-06 06:15:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:15:05 - End Time 2025-02-06 06:15:05 [2025-02-06 06:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413138', 'tblTempUsageDetail_20' ) start [2025-02-06 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413138', 'tblTempUsageDetail_20' ) end [2025-02-06 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413138', 'tblTempVendorCDR_20' ) start [2025-02-06 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413138', 'tblTempVendorCDR_20' ) end [2025-02-06 06:15:19] Production.INFO: ProcessCDR(1,14413138,1,1,2) [2025-02-06 06:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413138', 'tblTempUsageDetail_20' ) start [2025-02-06 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413138', 'tblTempUsageDetail_20' ) end [2025-02-06 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:15:22] Production.INFO: ==7100== Releasing lock... [2025-02-06 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:15:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:16:06 [end_date_ymd] => 2025-02-06 06:16:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:16:06' and `end` < '2025-02-06 06: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-06 06:16:19] Production.INFO: count ==125 [2025-02-06 06:16:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:16:06 - End Time 2025-02-06 06:16:06 [2025-02-06 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413143', 'tblTempUsageDetail_20' ) start [2025-02-06 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413143', 'tblTempUsageDetail_20' ) end [2025-02-06 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413143', 'tblTempVendorCDR_20' ) start [2025-02-06 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413143', 'tblTempVendorCDR_20' ) end [2025-02-06 06:16:19] Production.INFO: ProcessCDR(1,14413143,1,1,2) [2025-02-06 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413143', 'tblTempUsageDetail_20' ) start [2025-02-06 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413143', 'tblTempUsageDetail_20' ) end [2025-02-06 06:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:16:23] Production.INFO: ==7227== Releasing lock... [2025-02-06 06:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:16:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:17:06 [end_date_ymd] => 2025-02-06 06:17:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:17:06' and `end` < '2025-02-06 06: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-06 06:17:19] Production.INFO: count ==125 [2025-02-06 06:17:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:17:06 - End Time 2025-02-06 06:17:06 [2025-02-06 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413148', 'tblTempUsageDetail_20' ) start [2025-02-06 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413148', 'tblTempUsageDetail_20' ) end [2025-02-06 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413148', 'tblTempVendorCDR_20' ) start [2025-02-06 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413148', 'tblTempVendorCDR_20' ) end [2025-02-06 06:17:19] Production.INFO: ProcessCDR(1,14413148,1,1,2) [2025-02-06 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413148', 'tblTempUsageDetail_20' ) start [2025-02-06 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413148', 'tblTempUsageDetail_20' ) end [2025-02-06 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:17:22] Production.INFO: ==7350== Releasing lock... [2025-02-06 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:18:06 [end_date_ymd] => 2025-02-06 06:18:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:18:06' and `end` < '2025-02-06 06: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-06 06:18:19] Production.INFO: count ==125 [2025-02-06 06:18:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:18:06 - End Time 2025-02-06 06:18:06 [2025-02-06 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413153', 'tblTempUsageDetail_20' ) start [2025-02-06 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413153', 'tblTempUsageDetail_20' ) end [2025-02-06 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413153', 'tblTempVendorCDR_20' ) start [2025-02-06 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413153', 'tblTempVendorCDR_20' ) end [2025-02-06 06:18:19] Production.INFO: ProcessCDR(1,14413153,1,1,2) [2025-02-06 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413153', 'tblTempUsageDetail_20' ) start [2025-02-06 06:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413153', 'tblTempUsageDetail_20' ) end [2025-02-06 06:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:18:23] Production.INFO: ==7480== Releasing lock... [2025-02-06 06:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:18:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:19:05 [end_date_ymd] => 2025-02-06 06:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:19:05' and `end` < '2025-02-06 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-06 06:19:18] Production.INFO: count ==125 [2025-02-06 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:19:05 - End Time 2025-02-06 06:19:05 [2025-02-06 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413158', 'tblTempUsageDetail_20' ) start [2025-02-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413158', 'tblTempUsageDetail_20' ) end [2025-02-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413158', 'tblTempVendorCDR_20' ) start [2025-02-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413158', 'tblTempVendorCDR_20' ) end [2025-02-06 06:19:18] Production.INFO: ProcessCDR(1,14413158,1,1,2) [2025-02-06 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413158', 'tblTempUsageDetail_20' ) start [2025-02-06 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413158', 'tblTempUsageDetail_20' ) end [2025-02-06 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:19:21] Production.INFO: ==7606== Releasing lock... [2025-02-06 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:20:06 [end_date_ymd] => 2025-02-06 06:20:06 [RateCDR] => 1 ) [2025-02-06 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:20:06' and `end` < '2025-02-06 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:20:19] Production.INFO: count ==125 [2025-02-06 06:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:20:06 - End Time 2025-02-06 06:20:06 [2025-02-06 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413164', 'tblTempUsageDetail_20' ) start [2025-02-06 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413164', 'tblTempUsageDetail_20' ) end [2025-02-06 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413164', 'tblTempVendorCDR_20' ) start [2025-02-06 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413164', 'tblTempVendorCDR_20' ) end [2025-02-06 06:20:19] Production.INFO: ProcessCDR(1,14413164,1,1,2) [2025-02-06 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413164', 'tblTempUsageDetail_20' ) start [2025-02-06 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413164', 'tblTempUsageDetail_20' ) end [2025-02-06 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:20:22] Production.INFO: ==7731== Releasing lock... [2025-02-06 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:21:05 [end_date_ymd] => 2025-02-06 06:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:21:05' and `end` < '2025-02-06 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-06 06:21:19] Production.INFO: count ==125 [2025-02-06 06:21:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:21:05 - End Time 2025-02-06 06:21:05 [2025-02-06 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413169', 'tblTempUsageDetail_20' ) start [2025-02-06 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413169', 'tblTempUsageDetail_20' ) end [2025-02-06 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413169', 'tblTempVendorCDR_20' ) start [2025-02-06 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413169', 'tblTempVendorCDR_20' ) end [2025-02-06 06:21:19] Production.INFO: ProcessCDR(1,14413169,1,1,2) [2025-02-06 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413169', 'tblTempUsageDetail_20' ) start [2025-02-06 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413169', 'tblTempUsageDetail_20' ) end [2025-02-06 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:21:22] Production.INFO: ==7858== Releasing lock... [2025-02-06 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:22:05 [end_date_ymd] => 2025-02-06 06:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:22:05' and `end` < '2025-02-06 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-06 06:22:19] Production.INFO: count ==125 [2025-02-06 06:22:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:22:05 - End Time 2025-02-06 06:22:05 [2025-02-06 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413172', 'tblTempUsageDetail_20' ) start [2025-02-06 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413172', 'tblTempUsageDetail_20' ) end [2025-02-06 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413172', 'tblTempVendorCDR_20' ) start [2025-02-06 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413172', 'tblTempVendorCDR_20' ) end [2025-02-06 06:22:19] Production.INFO: ProcessCDR(1,14413172,1,1,2) [2025-02-06 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413172', 'tblTempUsageDetail_20' ) start [2025-02-06 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413172', 'tblTempUsageDetail_20' ) end [2025-02-06 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:22:22] Production.INFO: ==7983== Releasing lock... [2025-02-06 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-06 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:23:05 [end_date_ymd] => 2025-02-06 06:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:23:05' and `end` < '2025-02-06 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-06 06:23:18] Production.INFO: count ==130 [2025-02-06 06:23:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:23:05 - End Time 2025-02-06 06:23:05 [2025-02-06 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413179', 'tblTempUsageDetail_20' ) start [2025-02-06 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413179', 'tblTempUsageDetail_20' ) end [2025-02-06 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413179', 'tblTempVendorCDR_20' ) start [2025-02-06 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413179', 'tblTempVendorCDR_20' ) end [2025-02-06 06:23:18] Production.INFO: ProcessCDR(1,14413179,1,1,2) [2025-02-06 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413179', 'tblTempUsageDetail_20' ) start [2025-02-06 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413179', 'tblTempUsageDetail_20' ) end [2025-02-06 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:23:21] Production.INFO: ==8105== Releasing lock... [2025-02-06 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:24:05 [end_date_ymd] => 2025-02-06 06:24:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:24:05' and `end` < '2025-02-06 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-06 06:24:22] Production.INFO: count ==134 [2025-02-06 06:24:22] Production.ERROR: pbx CDR StartTime 2025-02-06 03:24:05 - End Time 2025-02-06 06:24:05 [2025-02-06 06:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413184', 'tblTempUsageDetail_20' ) start [2025-02-06 06:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413184', 'tblTempUsageDetail_20' ) end [2025-02-06 06:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413184', 'tblTempVendorCDR_20' ) start [2025-02-06 06:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413184', 'tblTempVendorCDR_20' ) end [2025-02-06 06:24:22] Production.INFO: ProcessCDR(1,14413184,1,1,2) [2025-02-06 06:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413184', 'tblTempUsageDetail_20' ) start [2025-02-06 06:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413184', 'tblTempUsageDetail_20' ) end [2025-02-06 06:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:24:25] Production.INFO: ==8268== Releasing lock... [2025-02-06 06:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:24:25] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:25:04 [end_date_ymd] => 2025-02-06 06:25:04 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:25:04' and `end` < '2025-02-06 06: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-06 06:25:17] Production.INFO: count ==139 [2025-02-06 06:25:17] Production.ERROR: pbx CDR StartTime 2025-02-06 03:25:04 - End Time 2025-02-06 06:25:04 [2025-02-06 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413189', 'tblTempUsageDetail_20' ) start [2025-02-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413189', 'tblTempUsageDetail_20' ) end [2025-02-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413189', 'tblTempVendorCDR_20' ) start [2025-02-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413189', 'tblTempVendorCDR_20' ) end [2025-02-06 06:25:17] Production.INFO: ProcessCDR(1,14413189,1,1,2) [2025-02-06 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413189', 'tblTempUsageDetail_20' ) start [2025-02-06 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413189', 'tblTempUsageDetail_20' ) end [2025-02-06 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:25:20] Production.INFO: ==8396== Releasing lock... [2025-02-06 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:26:06 [end_date_ymd] => 2025-02-06 06:26:06 [RateCDR] => 1 ) [2025-02-06 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-06 03:26:06' and `end` < '2025-02-06 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-06 06:26:19] Production.INFO: count ==139 [2025-02-06 06:26:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:26:06 - End Time 2025-02-06 06:26:06 [2025-02-06 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413194', 'tblTempUsageDetail_20' ) start [2025-02-06 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413194', 'tblTempUsageDetail_20' ) end [2025-02-06 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413194', 'tblTempVendorCDR_20' ) start [2025-02-06 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413194', 'tblTempVendorCDR_20' ) end [2025-02-06 06:26:19] Production.INFO: ProcessCDR(1,14413194,1,1,2) [2025-02-06 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413194', 'tblTempUsageDetail_20' ) start [2025-02-06 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413194', 'tblTempUsageDetail_20' ) end [2025-02-06 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:26:22] Production.INFO: ==8522== Releasing lock... [2025-02-06 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:27:05 [end_date_ymd] => 2025-02-06 06:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:27:05' and `end` < '2025-02-06 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-06 06:27:19] Production.INFO: count ==140 [2025-02-06 06:27:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:27:05 - End Time 2025-02-06 06:27:05 [2025-02-06 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413199', 'tblTempUsageDetail_20' ) start [2025-02-06 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413199', 'tblTempUsageDetail_20' ) end [2025-02-06 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413199', 'tblTempVendorCDR_20' ) start [2025-02-06 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413199', 'tblTempVendorCDR_20' ) end [2025-02-06 06:27:19] Production.INFO: ProcessCDR(1,14413199,1,1,2) [2025-02-06 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413199', 'tblTempUsageDetail_20' ) start [2025-02-06 06:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413199', 'tblTempUsageDetail_20' ) end [2025-02-06 06:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:27:24] Production.INFO: ==8642== Releasing lock... [2025-02-06 06:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:27:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:28:05 [end_date_ymd] => 2025-02-06 06:28:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:28:05' and `end` < '2025-02-06 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-06 06:28:19] Production.INFO: count ==140 [2025-02-06 06:28:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:28:05 - End Time 2025-02-06 06:28:05 [2025-02-06 06:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413204', 'tblTempUsageDetail_20' ) start [2025-02-06 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413204', 'tblTempUsageDetail_20' ) end [2025-02-06 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413204', 'tblTempVendorCDR_20' ) start [2025-02-06 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413204', 'tblTempVendorCDR_20' ) end [2025-02-06 06:28:19] Production.INFO: ProcessCDR(1,14413204,1,1,2) [2025-02-06 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413204', 'tblTempUsageDetail_20' ) start [2025-02-06 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413204', 'tblTempUsageDetail_20' ) end [2025-02-06 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:28:22] Production.INFO: ==8761== Releasing lock... [2025-02-06 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:28:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:29:05 [end_date_ymd] => 2025-02-06 06:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:29:05' and `end` < '2025-02-06 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-06 06:29:19] Production.INFO: count ==140 [2025-02-06 06:29:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:29:05 - End Time 2025-02-06 06:29:05 [2025-02-06 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413209', 'tblTempUsageDetail_20' ) start [2025-02-06 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413209', 'tblTempUsageDetail_20' ) end [2025-02-06 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413209', 'tblTempVendorCDR_20' ) start [2025-02-06 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413209', 'tblTempVendorCDR_20' ) end [2025-02-06 06:29:19] Production.INFO: ProcessCDR(1,14413209,1,1,2) [2025-02-06 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413209', 'tblTempUsageDetail_20' ) start [2025-02-06 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413209', 'tblTempUsageDetail_20' ) end [2025-02-06 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:29:22] Production.INFO: ==8883== Releasing lock... [2025-02-06 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:29:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:30:06 [end_date_ymd] => 2025-02-06 06:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 03:30:06' and `end` < '2025-02-06 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-06 06:30:18] Production.INFO: count ==141 [2025-02-06 06:30:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:30:06 - End Time 2025-02-06 06:30:06 [2025-02-06 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413215', 'tblTempUsageDetail_20' ) start [2025-02-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413215', 'tblTempUsageDetail_20' ) end [2025-02-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413215', 'tblTempVendorCDR_20' ) start [2025-02-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413215', 'tblTempVendorCDR_20' ) end [2025-02-06 06:30:19] Production.INFO: ProcessCDR(1,14413215,1,1,2) [2025-02-06 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413215', 'tblTempUsageDetail_20' ) start [2025-02-06 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413215', 'tblTempUsageDetail_20' ) end [2025-02-06 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:30:22] Production.INFO: ==9013== Releasing lock... [2025-02-06 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:31:05 [end_date_ymd] => 2025-02-06 06:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:31:05' and `end` < '2025-02-06 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-06 06:31:19] Production.INFO: count ==153 [2025-02-06 06:31:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:31:05 - End Time 2025-02-06 06:31:05 [2025-02-06 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413220', 'tblTempUsageDetail_20' ) start [2025-02-06 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413220', 'tblTempUsageDetail_20' ) end [2025-02-06 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413220', 'tblTempVendorCDR_20' ) start [2025-02-06 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413220', 'tblTempVendorCDR_20' ) end [2025-02-06 06:31:19] Production.INFO: ProcessCDR(1,14413220,1,1,2) [2025-02-06 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413220', 'tblTempUsageDetail_20' ) start [2025-02-06 06:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413220', 'tblTempUsageDetail_20' ) end [2025-02-06 06:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:31:24] Production.INFO: ==9138== Releasing lock... [2025-02-06 06:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:31:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:32:04 [end_date_ymd] => 2025-02-06 06:32:04 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:32:04' and `end` < '2025-02-06 06: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-06 06:32:19] Production.INFO: count ==157 [2025-02-06 06:32:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:32:04 - End Time 2025-02-06 06:32:04 [2025-02-06 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413225', 'tblTempUsageDetail_20' ) start [2025-02-06 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413225', 'tblTempUsageDetail_20' ) end [2025-02-06 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413225', 'tblTempVendorCDR_20' ) start [2025-02-06 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413225', 'tblTempVendorCDR_20' ) end [2025-02-06 06:32:19] Production.INFO: ProcessCDR(1,14413225,1,1,2) [2025-02-06 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413225', 'tblTempUsageDetail_20' ) start [2025-02-06 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413225', 'tblTempUsageDetail_20' ) end [2025-02-06 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:32:22] Production.INFO: ==9261== Releasing lock... [2025-02-06 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:33:05 [end_date_ymd] => 2025-02-06 06:33:05 [RateCDR] => 1 ) [2025-02-06 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:33:05' and `end` < '2025-02-06 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:33:19] Production.INFO: count ==157 [2025-02-06 06:33:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:33:05 - End Time 2025-02-06 06:33:05 [2025-02-06 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413230', 'tblTempUsageDetail_20' ) start [2025-02-06 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413230', 'tblTempUsageDetail_20' ) end [2025-02-06 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413230', 'tblTempVendorCDR_20' ) start [2025-02-06 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413230', 'tblTempVendorCDR_20' ) end [2025-02-06 06:33:19] Production.INFO: ProcessCDR(1,14413230,1,1,2) [2025-02-06 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413230', 'tblTempUsageDetail_20' ) start [2025-02-06 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413230', 'tblTempUsageDetail_20' ) end [2025-02-06 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:33:22] Production.INFO: ==9383== Releasing lock... [2025-02-06 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:34:05 [end_date_ymd] => 2025-02-06 06:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:34:05' and `end` < '2025-02-06 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-06 06:34:19] Production.INFO: count ==157 [2025-02-06 06:34:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:34:05 - End Time 2025-02-06 06:34:05 [2025-02-06 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413235', 'tblTempUsageDetail_20' ) start [2025-02-06 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413235', 'tblTempUsageDetail_20' ) end [2025-02-06 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413235', 'tblTempVendorCDR_20' ) start [2025-02-06 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413235', 'tblTempVendorCDR_20' ) end [2025-02-06 06:34:19] Production.INFO: ProcessCDR(1,14413235,1,1,2) [2025-02-06 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413235', 'tblTempUsageDetail_20' ) start [2025-02-06 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413235', 'tblTempUsageDetail_20' ) end [2025-02-06 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:34:22] Production.INFO: ==9506== Releasing lock... [2025-02-06 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:35:05 [end_date_ymd] => 2025-02-06 06:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:35:05' and `end` < '2025-02-06 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-06 06:35:19] Production.INFO: count ==157 [2025-02-06 06:35:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:35:05 - End Time 2025-02-06 06:35:05 [2025-02-06 06:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413240', 'tblTempUsageDetail_20' ) start [2025-02-06 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413240', 'tblTempUsageDetail_20' ) end [2025-02-06 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413240', 'tblTempVendorCDR_20' ) start [2025-02-06 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413240', 'tblTempVendorCDR_20' ) end [2025-02-06 06:35:19] Production.INFO: ProcessCDR(1,14413240,1,1,2) [2025-02-06 06:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413240', 'tblTempUsageDetail_20' ) start [2025-02-06 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413240', 'tblTempUsageDetail_20' ) end [2025-02-06 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:35:22] Production.INFO: ==9631== Releasing lock... [2025-02-06 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:36:06 [end_date_ymd] => 2025-02-06 06:36:06 [RateCDR] => 1 ) [2025-02-06 06:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:36:06' and `end` < '2025-02-06 06:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:36:20] Production.INFO: count ==157 [2025-02-06 06:36:20] Production.ERROR: pbx CDR StartTime 2025-02-06 03:36:06 - End Time 2025-02-06 06:36:06 [2025-02-06 06:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413245', 'tblTempUsageDetail_20' ) start [2025-02-06 06:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413245', 'tblTempUsageDetail_20' ) end [2025-02-06 06:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413245', 'tblTempVendorCDR_20' ) start [2025-02-06 06:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413245', 'tblTempVendorCDR_20' ) end [2025-02-06 06:36:20] Production.INFO: ProcessCDR(1,14413245,1,1,2) [2025-02-06 06:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413245', 'tblTempUsageDetail_20' ) start [2025-02-06 06:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413245', 'tblTempUsageDetail_20' ) end [2025-02-06 06:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:36:23] Production.INFO: ==9757== Releasing lock... [2025-02-06 06:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:36:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:37:05 [end_date_ymd] => 2025-02-06 06:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:37:05' and `end` < '2025-02-06 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-06 06:37:19] Production.INFO: count ==157 [2025-02-06 06:37:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:37:05 - End Time 2025-02-06 06:37:05 [2025-02-06 06:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413250', 'tblTempUsageDetail_20' ) start [2025-02-06 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413250', 'tblTempUsageDetail_20' ) end [2025-02-06 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413250', 'tblTempVendorCDR_20' ) start [2025-02-06 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413250', 'tblTempVendorCDR_20' ) end [2025-02-06 06:37:19] Production.INFO: ProcessCDR(1,14413250,1,1,2) [2025-02-06 06:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413250', 'tblTempUsageDetail_20' ) start [2025-02-06 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413250', 'tblTempUsageDetail_20' ) end [2025-02-06 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:37:22] Production.INFO: ==9884== Releasing lock... [2025-02-06 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:37:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:38:05 [end_date_ymd] => 2025-02-06 06:38:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:38:05' and `end` < '2025-02-06 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-06 06:38:19] Production.INFO: count ==157 [2025-02-06 06:38:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:38:05 - End Time 2025-02-06 06:38:05 [2025-02-06 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413255', 'tblTempUsageDetail_20' ) start [2025-02-06 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413255', 'tblTempUsageDetail_20' ) end [2025-02-06 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413255', 'tblTempVendorCDR_20' ) start [2025-02-06 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413255', 'tblTempVendorCDR_20' ) end [2025-02-06 06:38:19] Production.INFO: ProcessCDR(1,14413255,1,1,2) [2025-02-06 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413255', 'tblTempUsageDetail_20' ) start [2025-02-06 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413255', 'tblTempUsageDetail_20' ) end [2025-02-06 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:38:22] Production.INFO: ==10006== Releasing lock... [2025-02-06 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:39:05 [end_date_ymd] => 2025-02-06 06:39:05 [RateCDR] => 1 ) [2025-02-06 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:39:05' and `end` < '2025-02-06 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:39:19] Production.INFO: count ==155 [2025-02-06 06:39:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:39:05 - End Time 2025-02-06 06:39:05 [2025-02-06 06:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413260', 'tblTempUsageDetail_20' ) start [2025-02-06 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413260', 'tblTempUsageDetail_20' ) end [2025-02-06 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413260', 'tblTempVendorCDR_20' ) start [2025-02-06 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413260', 'tblTempVendorCDR_20' ) end [2025-02-06 06:39:19] Production.INFO: ProcessCDR(1,14413260,1,1,2) [2025-02-06 06:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413260', 'tblTempUsageDetail_20' ) start [2025-02-06 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413260', 'tblTempUsageDetail_20' ) end [2025-02-06 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:39:22] Production.INFO: ==10168== Releasing lock... [2025-02-06 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:40:06 [end_date_ymd] => 2025-02-06 06:40:06 [RateCDR] => 1 ) [2025-02-06 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:40:06' and `end` < '2025-02-06 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:40:19] Production.INFO: count ==149 [2025-02-06 06:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:40:06 - End Time 2025-02-06 06:40:06 [2025-02-06 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413266', 'tblTempUsageDetail_20' ) start [2025-02-06 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413266', 'tblTempUsageDetail_20' ) end [2025-02-06 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413266', 'tblTempVendorCDR_20' ) start [2025-02-06 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413266', 'tblTempVendorCDR_20' ) end [2025-02-06 06:40:19] Production.INFO: ProcessCDR(1,14413266,1,1,2) [2025-02-06 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413266', 'tblTempUsageDetail_20' ) start [2025-02-06 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413266', 'tblTempUsageDetail_20' ) end [2025-02-06 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:40:23] Production.INFO: ==10287== Releasing lock... [2025-02-06 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:41:05 [end_date_ymd] => 2025-02-06 06:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:41:05' and `end` < '2025-02-06 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-06 06:41:19] Production.INFO: count ==145 [2025-02-06 06:41:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:41:05 - End Time 2025-02-06 06:41:05 [2025-02-06 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413271', 'tblTempUsageDetail_20' ) start [2025-02-06 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413271', 'tblTempUsageDetail_20' ) end [2025-02-06 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413271', 'tblTempVendorCDR_20' ) start [2025-02-06 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413271', 'tblTempVendorCDR_20' ) end [2025-02-06 06:41:19] Production.INFO: ProcessCDR(1,14413271,1,1,2) [2025-02-06 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413271', 'tblTempUsageDetail_20' ) start [2025-02-06 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413271', 'tblTempUsageDetail_20' ) end [2025-02-06 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:41:22] Production.INFO: ==10405== Releasing lock... [2025-02-06 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:42:05 [end_date_ymd] => 2025-02-06 06:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:42:05' and `end` < '2025-02-06 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-06 06:42:19] Production.INFO: count ==145 [2025-02-06 06:42:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:42:05 - End Time 2025-02-06 06:42:05 [2025-02-06 06:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413276', 'tblTempUsageDetail_20' ) start [2025-02-06 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413276', 'tblTempUsageDetail_20' ) end [2025-02-06 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413276', 'tblTempVendorCDR_20' ) start [2025-02-06 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413276', 'tblTempVendorCDR_20' ) end [2025-02-06 06:42:19] Production.INFO: ProcessCDR(1,14413276,1,1,2) [2025-02-06 06:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413276', 'tblTempUsageDetail_20' ) start [2025-02-06 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413276', 'tblTempUsageDetail_20' ) end [2025-02-06 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:42:22] Production.INFO: ==10523== Releasing lock... [2025-02-06 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:43:06 [end_date_ymd] => 2025-02-06 06:43:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:43:06' and `end` < '2025-02-06 06: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-06 06:43:19] Production.INFO: count ==145 [2025-02-06 06:43:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:43:06 - End Time 2025-02-06 06:43:06 [2025-02-06 06:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413281', 'tblTempUsageDetail_20' ) start [2025-02-06 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413281', 'tblTempUsageDetail_20' ) end [2025-02-06 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413281', 'tblTempVendorCDR_20' ) start [2025-02-06 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413281', 'tblTempVendorCDR_20' ) end [2025-02-06 06:43:19] Production.INFO: ProcessCDR(1,14413281,1,1,2) [2025-02-06 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413281', 'tblTempUsageDetail_20' ) start [2025-02-06 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413281', 'tblTempUsageDetail_20' ) end [2025-02-06 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:43:23] Production.INFO: ==10642== Releasing lock... [2025-02-06 06:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:43:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:44:05 [end_date_ymd] => 2025-02-06 06:44:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:44:05' and `end` < '2025-02-06 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-06 06:44:18] Production.INFO: count ==145 [2025-02-06 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:44:05 - End Time 2025-02-06 06:44:05 [2025-02-06 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413286', 'tblTempUsageDetail_20' ) start [2025-02-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413286', 'tblTempUsageDetail_20' ) end [2025-02-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413286', 'tblTempVendorCDR_20' ) start [2025-02-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413286', 'tblTempVendorCDR_20' ) end [2025-02-06 06:44:18] Production.INFO: ProcessCDR(1,14413286,1,1,2) [2025-02-06 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413286', 'tblTempUsageDetail_20' ) start [2025-02-06 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413286', 'tblTempUsageDetail_20' ) end [2025-02-06 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:44:22] Production.INFO: ==10743== Releasing lock... [2025-02-06 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:45:06 [end_date_ymd] => 2025-02-06 06:45:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:45:06' and `end` < '2025-02-06 06: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-06 06:45:18] Production.INFO: count ==145 [2025-02-06 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:45:06 - End Time 2025-02-06 06:45:06 [2025-02-06 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413291', 'tblTempUsageDetail_20' ) start [2025-02-06 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413291', 'tblTempUsageDetail_20' ) end [2025-02-06 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413291', 'tblTempVendorCDR_20' ) start [2025-02-06 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413291', 'tblTempVendorCDR_20' ) end [2025-02-06 06:45:18] Production.INFO: ProcessCDR(1,14413291,1,1,2) [2025-02-06 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413291', 'tblTempUsageDetail_20' ) start [2025-02-06 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413291', 'tblTempUsageDetail_20' ) end [2025-02-06 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:45:21] Production.INFO: ==10824== Releasing lock... [2025-02-06 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:46:06 [end_date_ymd] => 2025-02-06 06:46:06 [RateCDR] => 1 ) [2025-02-06 06: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-06 03:46:06' and `end` < '2025-02-06 06: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-06 06:46:19] Production.INFO: count ==144 [2025-02-06 06:46:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:46:06 - End Time 2025-02-06 06:46:06 [2025-02-06 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413296', 'tblTempUsageDetail_20' ) start [2025-02-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413296', 'tblTempUsageDetail_20' ) end [2025-02-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413296', 'tblTempVendorCDR_20' ) start [2025-02-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413296', 'tblTempVendorCDR_20' ) end [2025-02-06 06:46:19] Production.INFO: ProcessCDR(1,14413296,1,1,2) [2025-02-06 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413296', 'tblTempUsageDetail_20' ) start [2025-02-06 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413296', 'tblTempUsageDetail_20' ) end [2025-02-06 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:46:22] Production.INFO: ==10896== Releasing lock... [2025-02-06 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:47:05 [end_date_ymd] => 2025-02-06 06:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:47:05' and `end` < '2025-02-06 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-06 06:47:18] Production.INFO: count ==144 [2025-02-06 06:47:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:47:05 - End Time 2025-02-06 06:47:05 [2025-02-06 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413301', 'tblTempUsageDetail_20' ) start [2025-02-06 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413301', 'tblTempUsageDetail_20' ) end [2025-02-06 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413301', 'tblTempVendorCDR_20' ) start [2025-02-06 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413301', 'tblTempVendorCDR_20' ) end [2025-02-06 06:47:18] Production.INFO: ProcessCDR(1,14413301,1,1,2) [2025-02-06 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413301', 'tblTempUsageDetail_20' ) start [2025-02-06 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413301', 'tblTempUsageDetail_20' ) end [2025-02-06 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:47:21] Production.INFO: ==10966== Releasing lock... [2025-02-06 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:48:05 [end_date_ymd] => 2025-02-06 06:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:48:05' and `end` < '2025-02-06 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-06 06:48:17] Production.INFO: count ==144 [2025-02-06 06:48:17] Production.ERROR: pbx CDR StartTime 2025-02-06 03:48:05 - End Time 2025-02-06 06:48:05 [2025-02-06 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413306', 'tblTempUsageDetail_20' ) start [2025-02-06 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413306', 'tblTempUsageDetail_20' ) end [2025-02-06 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413306', 'tblTempVendorCDR_20' ) start [2025-02-06 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413306', 'tblTempVendorCDR_20' ) end [2025-02-06 06:48:17] Production.INFO: ProcessCDR(1,14413306,1,1,2) [2025-02-06 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413306', 'tblTempUsageDetail_20' ) start [2025-02-06 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413306', 'tblTempUsageDetail_20' ) end [2025-02-06 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:48:21] Production.INFO: ==11043== Releasing lock... [2025-02-06 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:49:05 [end_date_ymd] => 2025-02-06 06:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:49:05' and `end` < '2025-02-06 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-06 06:49:18] Production.INFO: count ==144 [2025-02-06 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:49:05 - End Time 2025-02-06 06:49:05 [2025-02-06 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413311', 'tblTempUsageDetail_20' ) start [2025-02-06 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413311', 'tblTempUsageDetail_20' ) end [2025-02-06 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413311', 'tblTempVendorCDR_20' ) start [2025-02-06 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413311', 'tblTempVendorCDR_20' ) end [2025-02-06 06:49:18] Production.INFO: ProcessCDR(1,14413311,1,1,2) [2025-02-06 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413311', 'tblTempUsageDetail_20' ) start [2025-02-06 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413311', 'tblTempUsageDetail_20' ) end [2025-02-06 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:49:21] Production.INFO: ==11123== Releasing lock... [2025-02-06 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:50:06 [end_date_ymd] => 2025-02-06 06:50:06 [RateCDR] => 1 ) [2025-02-06 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:50:06' and `end` < '2025-02-06 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:50:19] Production.INFO: count ==148 [2025-02-06 06:50:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:50:06 - End Time 2025-02-06 06:50:06 [2025-02-06 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413316', 'tblTempUsageDetail_20' ) start [2025-02-06 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413316', 'tblTempUsageDetail_20' ) end [2025-02-06 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413316', 'tblTempVendorCDR_20' ) start [2025-02-06 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413316', 'tblTempVendorCDR_20' ) end [2025-02-06 06:50:19] Production.INFO: ProcessCDR(1,14413316,1,1,2) [2025-02-06 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413316', 'tblTempUsageDetail_20' ) start [2025-02-06 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413316', 'tblTempUsageDetail_20' ) end [2025-02-06 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:50:22] Production.INFO: ==11202== Releasing lock... [2025-02-06 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-06 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:51:05 [end_date_ymd] => 2025-02-06 06:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:51:05' and `end` < '2025-02-06 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-06 06:51:18] Production.INFO: count ==149 [2025-02-06 06:51:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:51:05 - End Time 2025-02-06 06:51:05 [2025-02-06 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413322', 'tblTempUsageDetail_20' ) start [2025-02-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413322', 'tblTempUsageDetail_20' ) end [2025-02-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413322', 'tblTempVendorCDR_20' ) start [2025-02-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413322', 'tblTempVendorCDR_20' ) end [2025-02-06 06:51:18] Production.INFO: ProcessCDR(1,14413322,1,1,2) [2025-02-06 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413322', 'tblTempUsageDetail_20' ) start [2025-02-06 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413322', 'tblTempUsageDetail_20' ) end [2025-02-06 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:51:21] Production.INFO: ==11282== Releasing lock... [2025-02-06 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:52:05 [end_date_ymd] => 2025-02-06 06:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:52:05' and `end` < '2025-02-06 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-06 06:52:19] Production.INFO: count ==149 [2025-02-06 06:52:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:52:05 - End Time 2025-02-06 06:52:05 [2025-02-06 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413327', 'tblTempUsageDetail_20' ) start [2025-02-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413327', 'tblTempUsageDetail_20' ) end [2025-02-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413327', 'tblTempVendorCDR_20' ) start [2025-02-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413327', 'tblTempVendorCDR_20' ) end [2025-02-06 06:52:19] Production.INFO: ProcessCDR(1,14413327,1,1,2) [2025-02-06 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413327', 'tblTempUsageDetail_20' ) start [2025-02-06 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413327', 'tblTempUsageDetail_20' ) end [2025-02-06 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:52:22] Production.INFO: ==11351== Releasing lock... [2025-02-06 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:53:05 [end_date_ymd] => 2025-02-06 06:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:53:05' and `end` < '2025-02-06 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-06 06:53:17] Production.INFO: count ==149 [2025-02-06 06:53:17] Production.ERROR: pbx CDR StartTime 2025-02-06 03:53:05 - End Time 2025-02-06 06:53:05 [2025-02-06 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413332', 'tblTempUsageDetail_20' ) start [2025-02-06 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413332', 'tblTempUsageDetail_20' ) end [2025-02-06 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413332', 'tblTempVendorCDR_20' ) start [2025-02-06 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413332', 'tblTempVendorCDR_20' ) end [2025-02-06 06:53:18] Production.INFO: ProcessCDR(1,14413332,1,1,2) [2025-02-06 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413332', 'tblTempUsageDetail_20' ) start [2025-02-06 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413332', 'tblTempUsageDetail_20' ) end [2025-02-06 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:53:21] Production.INFO: ==11427== Releasing lock... [2025-02-06 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:54:05 [end_date_ymd] => 2025-02-06 06:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:54:05' and `end` < '2025-02-06 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-06 06:54:19] Production.INFO: count ==149 [2025-02-06 06:54:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:54:05 - End Time 2025-02-06 06:54:05 [2025-02-06 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413337', 'tblTempUsageDetail_20' ) start [2025-02-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413337', 'tblTempUsageDetail_20' ) end [2025-02-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413337', 'tblTempVendorCDR_20' ) start [2025-02-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413337', 'tblTempVendorCDR_20' ) end [2025-02-06 06:54:19] Production.INFO: ProcessCDR(1,14413337,1,1,2) [2025-02-06 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413337', 'tblTempUsageDetail_20' ) start [2025-02-06 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413337', 'tblTempUsageDetail_20' ) end [2025-02-06 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:54:21] Production.INFO: ==11505== Releasing lock... [2025-02-06 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:55:05 [end_date_ymd] => 2025-02-06 06:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:55:05' and `end` < '2025-02-06 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-06 06:55:17] Production.INFO: count ==151 [2025-02-06 06:55:17] Production.ERROR: pbx CDR StartTime 2025-02-06 03:55:05 - End Time 2025-02-06 06:55:05 [2025-02-06 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413342', 'tblTempUsageDetail_20' ) start [2025-02-06 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413342', 'tblTempUsageDetail_20' ) end [2025-02-06 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413342', 'tblTempVendorCDR_20' ) start [2025-02-06 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413342', 'tblTempVendorCDR_20' ) end [2025-02-06 06:55:17] Production.INFO: ProcessCDR(1,14413342,1,1,2) [2025-02-06 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413342', 'tblTempUsageDetail_20' ) start [2025-02-06 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413342', 'tblTempUsageDetail_20' ) end [2025-02-06 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:55:20] Production.INFO: ==11621== Releasing lock... [2025-02-06 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:55:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:56:06 [end_date_ymd] => 2025-02-06 06:56:06 [RateCDR] => 1 ) [2025-02-06 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:56:06' and `end` < '2025-02-06 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:56:18] Production.INFO: count ==154 [2025-02-06 06:56:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:56:06 - End Time 2025-02-06 06:56:06 [2025-02-06 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413347', 'tblTempUsageDetail_20' ) start [2025-02-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413347', 'tblTempUsageDetail_20' ) end [2025-02-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413347', 'tblTempVendorCDR_20' ) start [2025-02-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413347', 'tblTempVendorCDR_20' ) end [2025-02-06 06:56:18] Production.INFO: ProcessCDR(1,14413347,1,1,2) [2025-02-06 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413347', 'tblTempUsageDetail_20' ) start [2025-02-06 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413347', 'tblTempUsageDetail_20' ) end [2025-02-06 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:56:22] Production.INFO: ==11697== Releasing lock... [2025-02-06 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:57:05 [end_date_ymd] => 2025-02-06 06:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:57:05' and `end` < '2025-02-06 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-06 06:57:19] Production.INFO: count ==154 [2025-02-06 06:57:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:57:05 - End Time 2025-02-06 06:57:05 [2025-02-06 06:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413352', 'tblTempUsageDetail_20' ) start [2025-02-06 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413352', 'tblTempUsageDetail_20' ) end [2025-02-06 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413352', 'tblTempVendorCDR_20' ) start [2025-02-06 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413352', 'tblTempVendorCDR_20' ) end [2025-02-06 06:57:19] Production.INFO: ProcessCDR(1,14413352,1,1,2) [2025-02-06 06:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413352', 'tblTempUsageDetail_20' ) start [2025-02-06 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413352', 'tblTempUsageDetail_20' ) end [2025-02-06 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:57:22] Production.INFO: ==11773== Releasing lock... [2025-02-06 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:58:05 [end_date_ymd] => 2025-02-06 06:58:05 [RateCDR] => 1 ) [2025-02-06 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-06 03:58:05' and `end` < '2025-02-06 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-06 06:58:19] Production.INFO: count ==153 [2025-02-06 06:58:19] Production.ERROR: pbx CDR StartTime 2025-02-06 03:58:05 - End Time 2025-02-06 06:58:05 [2025-02-06 06:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413357', 'tblTempUsageDetail_20' ) start [2025-02-06 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413357', 'tblTempUsageDetail_20' ) end [2025-02-06 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413357', 'tblTempVendorCDR_20' ) start [2025-02-06 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413357', 'tblTempVendorCDR_20' ) end [2025-02-06 06:58:19] Production.INFO: ProcessCDR(1,14413357,1,1,2) [2025-02-06 06:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413357', 'tblTempUsageDetail_20' ) start [2025-02-06 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413357', 'tblTempUsageDetail_20' ) end [2025-02-06 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:58:22] Production.INFO: ==11851== Releasing lock... [2025-02-06 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 03:59:06 [end_date_ymd] => 2025-02-06 06:59:06 [RateCDR] => 1 ) [2025-02-06 06:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 03:59:06' and `end` < '2025-02-06 06:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 06:59:18] Production.INFO: count ==153 [2025-02-06 06:59:18] Production.ERROR: pbx CDR StartTime 2025-02-06 03:59:06 - End Time 2025-02-06 06:59:06 [2025-02-06 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413362', 'tblTempUsageDetail_20' ) start [2025-02-06 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413362', 'tblTempUsageDetail_20' ) end [2025-02-06 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413362', 'tblTempVendorCDR_20' ) start [2025-02-06 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413362', 'tblTempVendorCDR_20' ) end [2025-02-06 06:59:19] Production.INFO: ProcessCDR(1,14413362,1,1,2) [2025-02-06 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413362', 'tblTempUsageDetail_20' ) start [2025-02-06 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413362', 'tblTempUsageDetail_20' ) end [2025-02-06 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 06:59:22] Production.INFO: ==11927== Releasing lock... [2025-02-06 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 06:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:00:05 [end_date_ymd] => 2025-02-06 07:00:05 [RateCDR] => 1 ) [2025-02-06 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:00:05' and `end` < '2025-02-06 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:00:18] Production.INFO: count ==152 [2025-02-06 07:00:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:00:05 - End Time 2025-02-06 07:00:05 [2025-02-06 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413367', 'tblTempUsageDetail_20' ) start [2025-02-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413367', 'tblTempUsageDetail_20' ) end [2025-02-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413367', 'tblTempVendorCDR_20' ) start [2025-02-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413367', 'tblTempVendorCDR_20' ) end [2025-02-06 07:00:18] Production.INFO: ProcessCDR(1,14413367,1,1,2) [2025-02-06 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413367', 'tblTempUsageDetail_20' ) start [2025-02-06 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413367', 'tblTempUsageDetail_20' ) end [2025-02-06 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:00:22] Production.INFO: ==12007== Releasing lock... [2025-02-06 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:01:06 [end_date_ymd] => 2025-02-06 07:01:06 [RateCDR] => 1 ) [2025-02-06 07:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:01:06' and `end` < '2025-02-06 07:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:01:26] Production.INFO: count ==146 [2025-02-06 07:01:26] Production.ERROR: pbx CDR StartTime 2025-02-06 04:01:06 - End Time 2025-02-06 07:01:06 [2025-02-06 07:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413373', 'tblTempUsageDetail_20' ) start [2025-02-06 07:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413373', 'tblTempUsageDetail_20' ) end [2025-02-06 07:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413373', 'tblTempVendorCDR_20' ) start [2025-02-06 07:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413373', 'tblTempVendorCDR_20' ) end [2025-02-06 07:01:26] Production.INFO: ProcessCDR(1,14413373,1,1,2) [2025-02-06 07:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413373', 'tblTempUsageDetail_20' ) start [2025-02-06 07:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413373', 'tblTempUsageDetail_20' ) end [2025-02-06 07:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:01:29] Production.INFO: ==12099== Releasing lock... [2025-02-06 07:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:01:29] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:02:05 [end_date_ymd] => 2025-02-06 07:02:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:02:05' and `end` < '2025-02-06 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-06 07:02:20] Production.INFO: count ==146 [2025-02-06 07:02:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:02:05 - End Time 2025-02-06 07:02:05 [2025-02-06 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413378', 'tblTempUsageDetail_20' ) start [2025-02-06 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413378', 'tblTempUsageDetail_20' ) end [2025-02-06 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413378', 'tblTempVendorCDR_20' ) start [2025-02-06 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413378', 'tblTempVendorCDR_20' ) end [2025-02-06 07:02:20] Production.INFO: ProcessCDR(1,14413378,1,1,2) [2025-02-06 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413378', 'tblTempUsageDetail_20' ) start [2025-02-06 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413378', 'tblTempUsageDetail_20' ) end [2025-02-06 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:02:23] Production.INFO: ==12255== Releasing lock... [2025-02-06 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:03:06 [end_date_ymd] => 2025-02-06 07:03:06 [RateCDR] => 1 ) [2025-02-06 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:03:06' and `end` < '2025-02-06 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:03:21] Production.INFO: count ==146 [2025-02-06 07:03:21] Production.ERROR: pbx CDR StartTime 2025-02-06 04:03:06 - End Time 2025-02-06 07:03:06 [2025-02-06 07:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413383', 'tblTempUsageDetail_20' ) start [2025-02-06 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413383', 'tblTempUsageDetail_20' ) end [2025-02-06 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413383', 'tblTempVendorCDR_20' ) start [2025-02-06 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413383', 'tblTempVendorCDR_20' ) end [2025-02-06 07:03:21] Production.INFO: ProcessCDR(1,14413383,1,1,2) [2025-02-06 07:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413383', 'tblTempUsageDetail_20' ) start [2025-02-06 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413383', 'tblTempUsageDetail_20' ) end [2025-02-06 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:03:24] Production.INFO: ==12336== Releasing lock... [2025-02-06 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:03:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:04:05 [end_date_ymd] => 2025-02-06 07:04:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:04:05' and `end` < '2025-02-06 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-06 07:04:20] Production.INFO: count ==146 [2025-02-06 07:04:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:04:05 - End Time 2025-02-06 07:04:05 [2025-02-06 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413388', 'tblTempUsageDetail_20' ) start [2025-02-06 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413388', 'tblTempUsageDetail_20' ) end [2025-02-06 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413388', 'tblTempVendorCDR_20' ) start [2025-02-06 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413388', 'tblTempVendorCDR_20' ) end [2025-02-06 07:04:20] Production.INFO: ProcessCDR(1,14413388,1,1,2) [2025-02-06 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413388', 'tblTempUsageDetail_20' ) start [2025-02-06 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413388', 'tblTempUsageDetail_20' ) end [2025-02-06 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:04:23] Production.INFO: ==12417== Releasing lock... [2025-02-06 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:04:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:05:05 [end_date_ymd] => 2025-02-06 07:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:05:05' and `end` < '2025-02-06 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-06 07:05:19] Production.INFO: count ==146 [2025-02-06 07:05:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:05:05 - End Time 2025-02-06 07:05:05 [2025-02-06 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413393', 'tblTempUsageDetail_20' ) start [2025-02-06 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413393', 'tblTempUsageDetail_20' ) end [2025-02-06 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413393', 'tblTempVendorCDR_20' ) start [2025-02-06 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413393', 'tblTempVendorCDR_20' ) end [2025-02-06 07:05:19] Production.INFO: ProcessCDR(1,14413393,1,1,2) [2025-02-06 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413393', 'tblTempUsageDetail_20' ) start [2025-02-06 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413393', 'tblTempUsageDetail_20' ) end [2025-02-06 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:05:22] Production.INFO: ==12575== Releasing lock... [2025-02-06 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:06:06 [end_date_ymd] => 2025-02-06 07:06:06 [RateCDR] => 1 ) [2025-02-06 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-06 04:06:06' and `end` < '2025-02-06 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-06 07:06:20] Production.INFO: count ==146 [2025-02-06 07:06:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:06:06 - End Time 2025-02-06 07:06:06 [2025-02-06 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413398', 'tblTempUsageDetail_20' ) start [2025-02-06 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413398', 'tblTempUsageDetail_20' ) end [2025-02-06 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413398', 'tblTempVendorCDR_20' ) start [2025-02-06 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413398', 'tblTempVendorCDR_20' ) end [2025-02-06 07:06:20] Production.INFO: ProcessCDR(1,14413398,1,1,2) [2025-02-06 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413398', 'tblTempUsageDetail_20' ) start [2025-02-06 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413398', 'tblTempUsageDetail_20' ) end [2025-02-06 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:06:23] Production.INFO: ==12649== Releasing lock... [2025-02-06 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:06:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:07:06 [end_date_ymd] => 2025-02-06 07:07:06 [RateCDR] => 1 ) [2025-02-06 07:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:07:06' and `end` < '2025-02-06 07:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:07:22] Production.INFO: count ==147 [2025-02-06 07:07:22] Production.ERROR: pbx CDR StartTime 2025-02-06 04:07:06 - End Time 2025-02-06 07:07:06 [2025-02-06 07:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413403', 'tblTempUsageDetail_20' ) start [2025-02-06 07:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413403', 'tblTempUsageDetail_20' ) end [2025-02-06 07:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413403', 'tblTempVendorCDR_20' ) start [2025-02-06 07:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413403', 'tblTempVendorCDR_20' ) end [2025-02-06 07:07:22] Production.INFO: ProcessCDR(1,14413403,1,1,2) [2025-02-06 07:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413403', 'tblTempUsageDetail_20' ) start [2025-02-06 07:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413403', 'tblTempUsageDetail_20' ) end [2025-02-06 07:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:07:25] Production.INFO: ==12728== Releasing lock... [2025-02-06 07:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:07:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:08:05 [end_date_ymd] => 2025-02-06 07:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:08:05' and `end` < '2025-02-06 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-06 07:08:20] Production.INFO: count ==147 [2025-02-06 07:08:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:08:05 - End Time 2025-02-06 07:08:05 [2025-02-06 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413408', 'tblTempUsageDetail_20' ) start [2025-02-06 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413408', 'tblTempUsageDetail_20' ) end [2025-02-06 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413408', 'tblTempVendorCDR_20' ) start [2025-02-06 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413408', 'tblTempVendorCDR_20' ) end [2025-02-06 07:08:20] Production.INFO: ProcessCDR(1,14413408,1,1,2) [2025-02-06 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413408', 'tblTempUsageDetail_20' ) start [2025-02-06 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413408', 'tblTempUsageDetail_20' ) end [2025-02-06 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:08:23] Production.INFO: ==12814== Releasing lock... [2025-02-06 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:08:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:09:05 [end_date_ymd] => 2025-02-06 07:09:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:09:05' and `end` < '2025-02-06 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-06 07:09:19] Production.INFO: count ==147 [2025-02-06 07:09:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:09:05 - End Time 2025-02-06 07:09:05 [2025-02-06 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413413', 'tblTempUsageDetail_20' ) start [2025-02-06 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413413', 'tblTempUsageDetail_20' ) end [2025-02-06 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413413', 'tblTempVendorCDR_20' ) start [2025-02-06 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413413', 'tblTempVendorCDR_20' ) end [2025-02-06 07:09:19] Production.INFO: ProcessCDR(1,14413413,1,1,2) [2025-02-06 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413413', 'tblTempUsageDetail_20' ) start [2025-02-06 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413413', 'tblTempUsageDetail_20' ) end [2025-02-06 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:09:22] Production.INFO: ==12971== Releasing lock... [2025-02-06 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:10:06 [end_date_ymd] => 2025-02-06 07:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 04:10:06' and `end` < '2025-02-06 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-06 07:10:21] Production.INFO: count ==147 [2025-02-06 07:10:21] Production.ERROR: pbx CDR StartTime 2025-02-06 04:10:06 - End Time 2025-02-06 07:10:06 [2025-02-06 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413418', 'tblTempUsageDetail_20' ) start [2025-02-06 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413418', 'tblTempUsageDetail_20' ) end [2025-02-06 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413418', 'tblTempVendorCDR_20' ) start [2025-02-06 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413418', 'tblTempVendorCDR_20' ) end [2025-02-06 07:10:21] Production.INFO: ProcessCDR(1,14413418,1,1,2) [2025-02-06 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413418', 'tblTempUsageDetail_20' ) start [2025-02-06 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413418', 'tblTempUsageDetail_20' ) end [2025-02-06 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:10:24] Production.INFO: ==13089== Releasing lock... [2025-02-06 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:10:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:11:05 [end_date_ymd] => 2025-02-06 07:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:11:05' and `end` < '2025-02-06 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-06 07:11:19] Production.INFO: count ==147 [2025-02-06 07:11:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:11:05 - End Time 2025-02-06 07:11:05 [2025-02-06 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413424', 'tblTempUsageDetail_20' ) start [2025-02-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413424', 'tblTempUsageDetail_20' ) end [2025-02-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413424', 'tblTempVendorCDR_20' ) start [2025-02-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413424', 'tblTempVendorCDR_20' ) end [2025-02-06 07:11:19] Production.INFO: ProcessCDR(1,14413424,1,1,2) [2025-02-06 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413424', 'tblTempUsageDetail_20' ) start [2025-02-06 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413424', 'tblTempUsageDetail_20' ) end [2025-02-06 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:11:23] Production.INFO: ==13171== Releasing lock... [2025-02-06 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:11:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:12:05 [end_date_ymd] => 2025-02-06 07:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:12:05' and `end` < '2025-02-06 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-06 07:12:21] Production.INFO: count ==148 [2025-02-06 07:12:21] Production.ERROR: pbx CDR StartTime 2025-02-06 04:12:05 - End Time 2025-02-06 07:12:05 [2025-02-06 07:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413429', 'tblTempUsageDetail_20' ) start [2025-02-06 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413429', 'tblTempUsageDetail_20' ) end [2025-02-06 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413429', 'tblTempVendorCDR_20' ) start [2025-02-06 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413429', 'tblTempVendorCDR_20' ) end [2025-02-06 07:12:21] Production.INFO: ProcessCDR(1,14413429,1,1,2) [2025-02-06 07:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413429', 'tblTempUsageDetail_20' ) start [2025-02-06 07:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413429', 'tblTempUsageDetail_20' ) end [2025-02-06 07:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:12:26] Production.INFO: ==13331== Releasing lock... [2025-02-06 07:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:12:26] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:13:05 [end_date_ymd] => 2025-02-06 07:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:13:05' and `end` < '2025-02-06 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-06 07:13:19] Production.INFO: count ==148 [2025-02-06 07:13:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:13:05 - End Time 2025-02-06 07:13:05 [2025-02-06 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413434', 'tblTempUsageDetail_20' ) start [2025-02-06 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413434', 'tblTempUsageDetail_20' ) end [2025-02-06 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413434', 'tblTempVendorCDR_20' ) start [2025-02-06 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413434', 'tblTempVendorCDR_20' ) end [2025-02-06 07:13:19] Production.INFO: ProcessCDR(1,14413434,1,1,2) [2025-02-06 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413434', 'tblTempUsageDetail_20' ) start [2025-02-06 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413434', 'tblTempUsageDetail_20' ) end [2025-02-06 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:13:22] Production.INFO: ==13403== Releasing lock... [2025-02-06 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:14:05 [end_date_ymd] => 2025-02-06 07:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:14:05' and `end` < '2025-02-06 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-06 07:14:19] Production.INFO: count ==148 [2025-02-06 07:14:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:14:05 - End Time 2025-02-06 07:14:05 [2025-02-06 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413439', 'tblTempUsageDetail_20' ) start [2025-02-06 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413439', 'tblTempUsageDetail_20' ) end [2025-02-06 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413439', 'tblTempVendorCDR_20' ) start [2025-02-06 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413439', 'tblTempVendorCDR_20' ) end [2025-02-06 07:14:19] Production.INFO: ProcessCDR(1,14413439,1,1,2) [2025-02-06 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413439', 'tblTempUsageDetail_20' ) start [2025-02-06 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413439', 'tblTempUsageDetail_20' ) end [2025-02-06 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:14:22] Production.INFO: ==13482== Releasing lock... [2025-02-06 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:15:05 [end_date_ymd] => 2025-02-06 07:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:15:05' and `end` < '2025-02-06 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-06 07:15:18] Production.INFO: count ==147 [2025-02-06 07:15:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:15:05 - End Time 2025-02-06 07:15:05 [2025-02-06 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413444', 'tblTempUsageDetail_20' ) start [2025-02-06 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413444', 'tblTempUsageDetail_20' ) end [2025-02-06 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413444', 'tblTempVendorCDR_20' ) start [2025-02-06 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413444', 'tblTempVendorCDR_20' ) end [2025-02-06 07:15:18] Production.INFO: ProcessCDR(1,14413444,1,1,2) [2025-02-06 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413444', 'tblTempUsageDetail_20' ) start [2025-02-06 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413444', 'tblTempUsageDetail_20' ) end [2025-02-06 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:15:21] Production.INFO: ==13594== Releasing lock... [2025-02-06 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:16:05 [end_date_ymd] => 2025-02-06 07:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:16:05' and `end` < '2025-02-06 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-06 07:16:19] Production.INFO: count ==147 [2025-02-06 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:16:05 - End Time 2025-02-06 07:16:05 [2025-02-06 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413449', 'tblTempUsageDetail_20' ) start [2025-02-06 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413449', 'tblTempUsageDetail_20' ) end [2025-02-06 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413449', 'tblTempVendorCDR_20' ) start [2025-02-06 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413449', 'tblTempVendorCDR_20' ) end [2025-02-06 07:16:19] Production.INFO: ProcessCDR(1,14413449,1,1,2) [2025-02-06 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413449', 'tblTempUsageDetail_20' ) start [2025-02-06 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413449', 'tblTempUsageDetail_20' ) end [2025-02-06 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:16:23] Production.INFO: ==13708== Releasing lock... [2025-02-06 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:16:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:17:05 [end_date_ymd] => 2025-02-06 07:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:17:05' and `end` < '2025-02-06 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-06 07:17:18] Production.INFO: count ==147 [2025-02-06 07:17:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:17:05 - End Time 2025-02-06 07:17:05 [2025-02-06 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413454', 'tblTempUsageDetail_20' ) start [2025-02-06 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413454', 'tblTempUsageDetail_20' ) end [2025-02-06 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413454', 'tblTempVendorCDR_20' ) start [2025-02-06 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413454', 'tblTempVendorCDR_20' ) end [2025-02-06 07:17:18] Production.INFO: ProcessCDR(1,14413454,1,1,2) [2025-02-06 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413454', 'tblTempUsageDetail_20' ) start [2025-02-06 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413454', 'tblTempUsageDetail_20' ) end [2025-02-06 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:17:21] Production.INFO: ==13789== Releasing lock... [2025-02-06 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:18:05 [end_date_ymd] => 2025-02-06 07:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:18:05' and `end` < '2025-02-06 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-06 07:18:19] Production.INFO: count ==147 [2025-02-06 07:18:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:18:05 - End Time 2025-02-06 07:18:05 [2025-02-06 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413458', 'tblTempUsageDetail_20' ) start [2025-02-06 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413458', 'tblTempUsageDetail_20' ) end [2025-02-06 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413458', 'tblTempVendorCDR_20' ) start [2025-02-06 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413458', 'tblTempVendorCDR_20' ) end [2025-02-06 07:18:19] Production.INFO: ProcessCDR(1,14413458,1,1,2) [2025-02-06 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413458', 'tblTempUsageDetail_20' ) start [2025-02-06 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413458', 'tblTempUsageDetail_20' ) end [2025-02-06 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:18:22] Production.INFO: ==13869== Releasing lock... [2025-02-06 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:19:04 [end_date_ymd] => 2025-02-06 07:19:04 [RateCDR] => 1 ) [2025-02-06 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-06 04:19:04' and `end` < '2025-02-06 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-06 07:19:17] Production.INFO: count ==147 [2025-02-06 07:19:17] Production.ERROR: pbx CDR StartTime 2025-02-06 04:19:04 - End Time 2025-02-06 07:19:04 [2025-02-06 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413464', 'tblTempUsageDetail_20' ) start [2025-02-06 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413464', 'tblTempUsageDetail_20' ) end [2025-02-06 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413464', 'tblTempVendorCDR_20' ) start [2025-02-06 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413464', 'tblTempVendorCDR_20' ) end [2025-02-06 07:19:17] Production.INFO: ProcessCDR(1,14413464,1,1,2) [2025-02-06 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413464', 'tblTempUsageDetail_20' ) start [2025-02-06 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413464', 'tblTempUsageDetail_20' ) end [2025-02-06 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:19:20] Production.INFO: ==13944== Releasing lock... [2025-02-06 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-06 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:20:06 [end_date_ymd] => 2025-02-06 07:20:06 [RateCDR] => 1 ) [2025-02-06 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-06 04:20:06' and `end` < '2025-02-06 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-06 07:20:19] Production.INFO: count ==159 [2025-02-06 07:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:20:06 - End Time 2025-02-06 07:20:06 [2025-02-06 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413470', 'tblTempUsageDetail_20' ) start [2025-02-06 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413470', 'tblTempUsageDetail_20' ) end [2025-02-06 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413470', 'tblTempVendorCDR_20' ) start [2025-02-06 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413470', 'tblTempVendorCDR_20' ) end [2025-02-06 07:20:19] Production.INFO: ProcessCDR(1,14413470,1,1,2) [2025-02-06 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413470', 'tblTempUsageDetail_20' ) start [2025-02-06 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413470', 'tblTempUsageDetail_20' ) end [2025-02-06 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:20:22] Production.INFO: ==14025== Releasing lock... [2025-02-06 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:20:22] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:21:05 [end_date_ymd] => 2025-02-06 07:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:21:05' and `end` < '2025-02-06 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-06 07:21:19] Production.INFO: count ==166 [2025-02-06 07:21:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:21:05 - End Time 2025-02-06 07:21:05 [2025-02-06 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413475', 'tblTempUsageDetail_20' ) start [2025-02-06 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413475', 'tblTempUsageDetail_20' ) end [2025-02-06 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413475', 'tblTempVendorCDR_20' ) start [2025-02-06 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413475', 'tblTempVendorCDR_20' ) end [2025-02-06 07:21:19] Production.INFO: ProcessCDR(1,14413475,1,1,2) [2025-02-06 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413475', 'tblTempUsageDetail_20' ) start [2025-02-06 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413475', 'tblTempUsageDetail_20' ) end [2025-02-06 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:21:23] Production.INFO: ==14103== Releasing lock... [2025-02-06 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:21:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:22:05 [end_date_ymd] => 2025-02-06 07:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:22:05' and `end` < '2025-02-06 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-06 07:22:18] Production.INFO: count ==164 [2025-02-06 07:22:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:22:05 - End Time 2025-02-06 07:22:05 [2025-02-06 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413480', 'tblTempUsageDetail_20' ) start [2025-02-06 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413480', 'tblTempUsageDetail_20' ) end [2025-02-06 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413480', 'tblTempVendorCDR_20' ) start [2025-02-06 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413480', 'tblTempVendorCDR_20' ) end [2025-02-06 07:22:18] Production.INFO: ProcessCDR(1,14413480,1,1,2) [2025-02-06 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413480', 'tblTempUsageDetail_20' ) start [2025-02-06 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413480', 'tblTempUsageDetail_20' ) end [2025-02-06 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:22:21] Production.INFO: ==14188== Releasing lock... [2025-02-06 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:22:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:23:06 [end_date_ymd] => 2025-02-06 07:23:06 [RateCDR] => 1 ) [2025-02-06 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-06 04:23:06' and `end` < '2025-02-06 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-06 07:23:20] Production.INFO: count ==164 [2025-02-06 07:23:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:23:06 - End Time 2025-02-06 07:23:06 [2025-02-06 07:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413485', 'tblTempUsageDetail_20' ) start [2025-02-06 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413485', 'tblTempUsageDetail_20' ) end [2025-02-06 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413485', 'tblTempVendorCDR_20' ) start [2025-02-06 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413485', 'tblTempVendorCDR_20' ) end [2025-02-06 07:23:20] Production.INFO: ProcessCDR(1,14413485,1,1,2) [2025-02-06 07:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413485', 'tblTempUsageDetail_20' ) start [2025-02-06 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413485', 'tblTempUsageDetail_20' ) end [2025-02-06 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:23:23] Production.INFO: ==14265== Releasing lock... [2025-02-06 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:23:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:24:04 [end_date_ymd] => 2025-02-06 07:24:04 [RateCDR] => 1 ) [2025-02-06 07:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:24:04' and `end` < '2025-02-06 07:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:24:19] Production.INFO: count ==164 [2025-02-06 07:24:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:24:04 - End Time 2025-02-06 07:24:04 [2025-02-06 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413490', 'tblTempUsageDetail_20' ) start [2025-02-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413490', 'tblTempUsageDetail_20' ) end [2025-02-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413490', 'tblTempVendorCDR_20' ) start [2025-02-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413490', 'tblTempVendorCDR_20' ) end [2025-02-06 07:24:19] Production.INFO: ProcessCDR(1,14413490,1,1,2) [2025-02-06 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413490', 'tblTempUsageDetail_20' ) start [2025-02-06 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413490', 'tblTempUsageDetail_20' ) end [2025-02-06 07:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:24:23] Production.INFO: ==14350== Releasing lock... [2025-02-06 07:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:24:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:25:05 [end_date_ymd] => 2025-02-06 07:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:25:05' and `end` < '2025-02-06 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-06 07:25:18] Production.INFO: count ==164 [2025-02-06 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:25:05 - End Time 2025-02-06 07:25:05 [2025-02-06 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413495', 'tblTempUsageDetail_20' ) start [2025-02-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413495', 'tblTempUsageDetail_20' ) end [2025-02-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413495', 'tblTempVendorCDR_20' ) start [2025-02-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413495', 'tblTempVendorCDR_20' ) end [2025-02-06 07:25:18] Production.INFO: ProcessCDR(1,14413495,1,1,2) [2025-02-06 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413495', 'tblTempUsageDetail_20' ) start [2025-02-06 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413495', 'tblTempUsageDetail_20' ) end [2025-02-06 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:25:21] Production.INFO: ==14437== Releasing lock... [2025-02-06 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:25:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:26:05 [end_date_ymd] => 2025-02-06 07:26:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:26:05' and `end` < '2025-02-06 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-06 07:26:18] Production.INFO: count ==166 [2025-02-06 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:26:05 - End Time 2025-02-06 07:26:05 [2025-02-06 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413500', 'tblTempUsageDetail_20' ) start [2025-02-06 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413500', 'tblTempUsageDetail_20' ) end [2025-02-06 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413500', 'tblTempVendorCDR_20' ) start [2025-02-06 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413500', 'tblTempVendorCDR_20' ) end [2025-02-06 07:26:18] Production.INFO: ProcessCDR(1,14413500,1,1,2) [2025-02-06 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413500', 'tblTempUsageDetail_20' ) start [2025-02-06 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413500', 'tblTempUsageDetail_20' ) end [2025-02-06 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:26:21] Production.INFO: ==14561== Releasing lock... [2025-02-06 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:26:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:27:05 [end_date_ymd] => 2025-02-06 07:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:27:05' and `end` < '2025-02-06 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-06 07:27:20] Production.INFO: count ==168 [2025-02-06 07:27:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:27:05 - End Time 2025-02-06 07:27:05 [2025-02-06 07:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413505', 'tblTempUsageDetail_20' ) start [2025-02-06 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413505', 'tblTempUsageDetail_20' ) end [2025-02-06 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413505', 'tblTempVendorCDR_20' ) start [2025-02-06 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413505', 'tblTempVendorCDR_20' ) end [2025-02-06 07:27:20] Production.INFO: ProcessCDR(1,14413505,1,1,2) [2025-02-06 07:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413505', 'tblTempUsageDetail_20' ) start [2025-02-06 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413505', 'tblTempUsageDetail_20' ) end [2025-02-06 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:27:23] Production.INFO: ==14647== Releasing lock... [2025-02-06 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:27:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:28:06 [end_date_ymd] => 2025-02-06 07:28:06 [RateCDR] => 1 ) [2025-02-06 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:28:06' and `end` < '2025-02-06 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:28:19] Production.INFO: count ==168 [2025-02-06 07:28:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:28:06 - End Time 2025-02-06 07:28:06 [2025-02-06 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413510', 'tblTempUsageDetail_20' ) start [2025-02-06 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413510', 'tblTempUsageDetail_20' ) end [2025-02-06 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413510', 'tblTempVendorCDR_20' ) start [2025-02-06 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413510', 'tblTempVendorCDR_20' ) end [2025-02-06 07:28:19] Production.INFO: ProcessCDR(1,14413510,1,1,2) [2025-02-06 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413510', 'tblTempUsageDetail_20' ) start [2025-02-06 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413510', 'tblTempUsageDetail_20' ) end [2025-02-06 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:28:22] Production.INFO: ==14734== Releasing lock... [2025-02-06 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:28:22] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:29:05 [end_date_ymd] => 2025-02-06 07:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:29:05' and `end` < '2025-02-06 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-06 07:29:20] Production.INFO: count ==173 [2025-02-06 07:29:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:29:05 - End Time 2025-02-06 07:29:05 [2025-02-06 07:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413515', 'tblTempUsageDetail_20' ) start [2025-02-06 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413515', 'tblTempUsageDetail_20' ) end [2025-02-06 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413515', 'tblTempVendorCDR_20' ) start [2025-02-06 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413515', 'tblTempVendorCDR_20' ) end [2025-02-06 07:29:20] Production.INFO: ProcessCDR(1,14413515,1,1,2) [2025-02-06 07:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413515', 'tblTempUsageDetail_20' ) start [2025-02-06 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413515', 'tblTempUsageDetail_20' ) end [2025-02-06 07:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:29:23] Production.INFO: ==14820== Releasing lock... [2025-02-06 07:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:29:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:30:06 [end_date_ymd] => 2025-02-06 07:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 04:30:06' and `end` < '2025-02-06 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-06 07:30:19] Production.INFO: count ==175 [2025-02-06 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:30:06 - End Time 2025-02-06 07:30:06 [2025-02-06 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413520', 'tblTempUsageDetail_20' ) start [2025-02-06 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413520', 'tblTempUsageDetail_20' ) end [2025-02-06 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413520', 'tblTempVendorCDR_20' ) start [2025-02-06 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413520', 'tblTempVendorCDR_20' ) end [2025-02-06 07:30:19] Production.INFO: ProcessCDR(1,14413520,1,1,2) [2025-02-06 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413520', 'tblTempUsageDetail_20' ) start [2025-02-06 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413520', 'tblTempUsageDetail_20' ) end [2025-02-06 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:30:22] Production.INFO: ==14905== Releasing lock... [2025-02-06 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:30:22] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:31:05 [end_date_ymd] => 2025-02-06 07:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:31:05' and `end` < '2025-02-06 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-06 07:31:18] Production.INFO: count ==191 [2025-02-06 07:31:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:31:05 - End Time 2025-02-06 07:31:05 [2025-02-06 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413526', 'tblTempUsageDetail_20' ) start [2025-02-06 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413526', 'tblTempUsageDetail_20' ) end [2025-02-06 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413526', 'tblTempVendorCDR_20' ) start [2025-02-06 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413526', 'tblTempVendorCDR_20' ) end [2025-02-06 07:31:18] Production.INFO: ProcessCDR(1,14413526,1,1,2) [2025-02-06 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413526', 'tblTempUsageDetail_20' ) start [2025-02-06 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413526', 'tblTempUsageDetail_20' ) end [2025-02-06 07:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:31:23] Production.INFO: ==14992== Releasing lock... [2025-02-06 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:31:23] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:32:05 [end_date_ymd] => 2025-02-06 07:32:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:32:05' and `end` < '2025-02-06 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-06 07:32:19] Production.INFO: count ==191 [2025-02-06 07:32:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:32:05 - End Time 2025-02-06 07:32:05 [2025-02-06 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413531', 'tblTempUsageDetail_20' ) start [2025-02-06 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413531', 'tblTempUsageDetail_20' ) end [2025-02-06 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413531', 'tblTempVendorCDR_20' ) start [2025-02-06 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413531', 'tblTempVendorCDR_20' ) end [2025-02-06 07:32:19] Production.INFO: ProcessCDR(1,14413531,1,1,2) [2025-02-06 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413531', 'tblTempUsageDetail_20' ) start [2025-02-06 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413531', 'tblTempUsageDetail_20' ) end [2025-02-06 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:32:22] Production.INFO: ==15075== Releasing lock... [2025-02-06 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:32:22] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:33:05 [end_date_ymd] => 2025-02-06 07:33:05 [RateCDR] => 1 ) [2025-02-06 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:33:05' and `end` < '2025-02-06 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:33:19] Production.INFO: count ==191 [2025-02-06 07:33:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:33:05 - End Time 2025-02-06 07:33:05 [2025-02-06 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413536', 'tblTempUsageDetail_20' ) start [2025-02-06 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413536', 'tblTempUsageDetail_20' ) end [2025-02-06 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413536', 'tblTempVendorCDR_20' ) start [2025-02-06 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413536', 'tblTempVendorCDR_20' ) end [2025-02-06 07:33:19] Production.INFO: ProcessCDR(1,14413536,1,1,2) [2025-02-06 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413536', 'tblTempUsageDetail_20' ) start [2025-02-06 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413536', 'tblTempUsageDetail_20' ) end [2025-02-06 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:33:22] Production.INFO: ==15157== Releasing lock... [2025-02-06 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:33:22] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:34:05 [end_date_ymd] => 2025-02-06 07:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:34:05' and `end` < '2025-02-06 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-06 07:34:18] Production.INFO: count ==191 [2025-02-06 07:34:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:34:05 - End Time 2025-02-06 07:34:05 [2025-02-06 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413541', 'tblTempUsageDetail_20' ) start [2025-02-06 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413541', 'tblTempUsageDetail_20' ) end [2025-02-06 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413541', 'tblTempVendorCDR_20' ) start [2025-02-06 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413541', 'tblTempVendorCDR_20' ) end [2025-02-06 07:34:18] Production.INFO: ProcessCDR(1,14413541,1,1,2) [2025-02-06 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413541', 'tblTempUsageDetail_20' ) start [2025-02-06 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413541', 'tblTempUsageDetail_20' ) end [2025-02-06 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:34:21] Production.INFO: ==15258== Releasing lock... [2025-02-06 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:34:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:35:05 [end_date_ymd] => 2025-02-06 07:35:05 [RateCDR] => 1 ) [2025-02-06 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:35:05' and `end` < '2025-02-06 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:35:18] Production.INFO: count ==191 [2025-02-06 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:35:05 - End Time 2025-02-06 07:35:05 [2025-02-06 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413546', 'tblTempUsageDetail_20' ) start [2025-02-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413546', 'tblTempUsageDetail_20' ) end [2025-02-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413546', 'tblTempVendorCDR_20' ) start [2025-02-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413546', 'tblTempVendorCDR_20' ) end [2025-02-06 07:35:18] Production.INFO: ProcessCDR(1,14413546,1,1,2) [2025-02-06 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413546', 'tblTempUsageDetail_20' ) start [2025-02-06 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413546', 'tblTempUsageDetail_20' ) end [2025-02-06 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:35:21] Production.INFO: ==15336== Releasing lock... [2025-02-06 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:35:21] Production.INFO: 29 MB #Memory Used# [2025-02-06 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:36:05 [end_date_ymd] => 2025-02-06 07:36:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:36:05' and `end` < '2025-02-06 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-06 07:36:20] Production.INFO: count ==192 [2025-02-06 07:36:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:36:05 - End Time 2025-02-06 07:36:05 [2025-02-06 07:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413551', 'tblTempUsageDetail_20' ) start [2025-02-06 07:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413551', 'tblTempUsageDetail_20' ) end [2025-02-06 07:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413551', 'tblTempVendorCDR_20' ) start [2025-02-06 07:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413551', 'tblTempVendorCDR_20' ) end [2025-02-06 07:36:20] Production.INFO: ProcessCDR(1,14413551,1,1,2) [2025-02-06 07:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413551', 'tblTempUsageDetail_20' ) start [2025-02-06 07:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413551', 'tblTempUsageDetail_20' ) end [2025-02-06 07:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:36:24] Production.INFO: ==15425== Releasing lock... [2025-02-06 07:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:36:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:37:05 [end_date_ymd] => 2025-02-06 07:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:37:05' and `end` < '2025-02-06 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-06 07:37:18] Production.INFO: count ==192 [2025-02-06 07:37:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:37:05 - End Time 2025-02-06 07:37:05 [2025-02-06 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413556', 'tblTempUsageDetail_20' ) start [2025-02-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413556', 'tblTempUsageDetail_20' ) end [2025-02-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413556', 'tblTempVendorCDR_20' ) start [2025-02-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413556', 'tblTempVendorCDR_20' ) end [2025-02-06 07:37:18] Production.INFO: ProcessCDR(1,14413556,1,1,2) [2025-02-06 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413556', 'tblTempUsageDetail_20' ) start [2025-02-06 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413556', 'tblTempUsageDetail_20' ) end [2025-02-06 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:37:21] Production.INFO: ==15502== Releasing lock... [2025-02-06 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:38:05 [end_date_ymd] => 2025-02-06 07:38:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:38:05' and `end` < '2025-02-06 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-06 07:38:18] Production.INFO: count ==192 [2025-02-06 07:38:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:38:05 - End Time 2025-02-06 07:38:05 [2025-02-06 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413561', 'tblTempUsageDetail_20' ) start [2025-02-06 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413561', 'tblTempUsageDetail_20' ) end [2025-02-06 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413561', 'tblTempVendorCDR_20' ) start [2025-02-06 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413561', 'tblTempVendorCDR_20' ) end [2025-02-06 07:38:18] Production.INFO: ProcessCDR(1,14413561,1,1,2) [2025-02-06 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413561', 'tblTempUsageDetail_20' ) start [2025-02-06 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413561', 'tblTempUsageDetail_20' ) end [2025-02-06 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:38:21] Production.INFO: ==15579== Releasing lock... [2025-02-06 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:39:05 [end_date_ymd] => 2025-02-06 07:39:05 [RateCDR] => 1 ) [2025-02-06 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:39:05' and `end` < '2025-02-06 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:39:19] Production.INFO: count ==192 [2025-02-06 07:39:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:39:05 - End Time 2025-02-06 07:39:05 [2025-02-06 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413566', 'tblTempUsageDetail_20' ) start [2025-02-06 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413566', 'tblTempUsageDetail_20' ) end [2025-02-06 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413566', 'tblTempVendorCDR_20' ) start [2025-02-06 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413566', 'tblTempVendorCDR_20' ) end [2025-02-06 07:39:19] Production.INFO: ProcessCDR(1,14413566,1,1,2) [2025-02-06 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413566', 'tblTempUsageDetail_20' ) start [2025-02-06 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413566', 'tblTempUsageDetail_20' ) end [2025-02-06 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:39:22] Production.INFO: ==15664== Releasing lock... [2025-02-06 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:40:06 [end_date_ymd] => 2025-02-06 07:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 04:40:06' and `end` < '2025-02-06 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-06 07:40:19] Production.INFO: count ==200 [2025-02-06 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:40:06 - End Time 2025-02-06 07:40:06 [2025-02-06 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413572', 'tblTempUsageDetail_20' ) start [2025-02-06 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413572', 'tblTempUsageDetail_20' ) end [2025-02-06 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413572', 'tblTempVendorCDR_20' ) start [2025-02-06 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413572', 'tblTempVendorCDR_20' ) end [2025-02-06 07:40:19] Production.INFO: ProcessCDR(1,14413572,1,1,2) [2025-02-06 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413572', 'tblTempUsageDetail_20' ) start [2025-02-06 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413572', 'tblTempUsageDetail_20' ) end [2025-02-06 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:40:22] Production.INFO: ==15747== Releasing lock... [2025-02-06 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-06 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:41:05 [end_date_ymd] => 2025-02-06 07:41:05 [RateCDR] => 1 ) [2025-02-06 07: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-06 04:41:05' and `end` < '2025-02-06 07: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-06 07:41:18] Production.INFO: count ==208 [2025-02-06 07:41:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:41:05 - End Time 2025-02-06 07:41:05 [2025-02-06 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413575', 'tblTempUsageDetail_20' ) start [2025-02-06 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413575', 'tblTempUsageDetail_20' ) end [2025-02-06 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413575', 'tblTempVendorCDR_20' ) start [2025-02-06 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413575', 'tblTempVendorCDR_20' ) end [2025-02-06 07:41:18] Production.INFO: ProcessCDR(1,14413575,1,1,2) [2025-02-06 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413575', 'tblTempUsageDetail_20' ) start [2025-02-06 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413575', 'tblTempUsageDetail_20' ) end [2025-02-06 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:41:21] Production.INFO: ==15872== Releasing lock... [2025-02-06 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:42:05 [end_date_ymd] => 2025-02-06 07:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:42:05' and `end` < '2025-02-06 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-06 07:42:18] Production.INFO: count ==208 [2025-02-06 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:42:05 - End Time 2025-02-06 07:42:05 [2025-02-06 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413582', 'tblTempUsageDetail_20' ) start [2025-02-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413582', 'tblTempUsageDetail_20' ) end [2025-02-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413582', 'tblTempVendorCDR_20' ) start [2025-02-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413582', 'tblTempVendorCDR_20' ) end [2025-02-06 07:42:18] Production.INFO: ProcessCDR(1,14413582,1,1,2) [2025-02-06 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413582', 'tblTempUsageDetail_20' ) start [2025-02-06 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413582', 'tblTempUsageDetail_20' ) end [2025-02-06 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:42:21] Production.INFO: ==15953== Releasing lock... [2025-02-06 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:43:05 [end_date_ymd] => 2025-02-06 07:43:05 [RateCDR] => 1 ) [2025-02-06 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:43:05' and `end` < '2025-02-06 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:43:18] Production.INFO: count ==208 [2025-02-06 07:43:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:43:05 - End Time 2025-02-06 07:43:05 [2025-02-06 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413587', 'tblTempUsageDetail_20' ) start [2025-02-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413587', 'tblTempUsageDetail_20' ) end [2025-02-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413587', 'tblTempVendorCDR_20' ) start [2025-02-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413587', 'tblTempVendorCDR_20' ) end [2025-02-06 07:43:18] Production.INFO: ProcessCDR(1,14413587,1,1,2) [2025-02-06 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413587', 'tblTempUsageDetail_20' ) start [2025-02-06 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413587', 'tblTempUsageDetail_20' ) end [2025-02-06 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:43:22] Production.INFO: ==16036== Releasing lock... [2025-02-06 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:44:06 [end_date_ymd] => 2025-02-06 07:44:06 [RateCDR] => 1 ) [2025-02-06 07: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-06 04:44:06' and `end` < '2025-02-06 07: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-06 07:44:19] Production.INFO: count ==208 [2025-02-06 07:44:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:44:06 - End Time 2025-02-06 07:44:06 [2025-02-06 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413592', 'tblTempUsageDetail_20' ) start [2025-02-06 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413592', 'tblTempUsageDetail_20' ) end [2025-02-06 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413592', 'tblTempVendorCDR_20' ) start [2025-02-06 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413592', 'tblTempVendorCDR_20' ) end [2025-02-06 07:44:19] Production.INFO: ProcessCDR(1,14413592,1,1,2) [2025-02-06 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413592', 'tblTempUsageDetail_20' ) start [2025-02-06 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413592', 'tblTempUsageDetail_20' ) end [2025-02-06 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:44:22] Production.INFO: ==16120== Releasing lock... [2025-02-06 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:45:06 [end_date_ymd] => 2025-02-06 07:45:06 [RateCDR] => 1 ) [2025-02-06 07: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-06 04:45:06' and `end` < '2025-02-06 07: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-06 07:45:19] Production.INFO: count ==208 [2025-02-06 07:45:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:45:06 - End Time 2025-02-06 07:45:06 [2025-02-06 07:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413597', 'tblTempUsageDetail_20' ) start [2025-02-06 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413597', 'tblTempUsageDetail_20' ) end [2025-02-06 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413597', 'tblTempVendorCDR_20' ) start [2025-02-06 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413597', 'tblTempVendorCDR_20' ) end [2025-02-06 07:45:19] Production.INFO: ProcessCDR(1,14413597,1,1,2) [2025-02-06 07:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413597', 'tblTempUsageDetail_20' ) start [2025-02-06 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413597', 'tblTempUsageDetail_20' ) end [2025-02-06 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:45:22] Production.INFO: ==16199== Releasing lock... [2025-02-06 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:45:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:46:06 [end_date_ymd] => 2025-02-06 07:46:06 [RateCDR] => 1 ) [2025-02-06 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-06 04:46:06' and `end` < '2025-02-06 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-06 07:46:20] Production.INFO: count ==208 [2025-02-06 07:46:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:46:06 - End Time 2025-02-06 07:46:06 [2025-02-06 07:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413602', 'tblTempUsageDetail_20' ) start [2025-02-06 07:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413602', 'tblTempUsageDetail_20' ) end [2025-02-06 07:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413602', 'tblTempVendorCDR_20' ) start [2025-02-06 07:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413602', 'tblTempVendorCDR_20' ) end [2025-02-06 07:46:20] Production.INFO: ProcessCDR(1,14413602,1,1,2) [2025-02-06 07:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413602', 'tblTempUsageDetail_20' ) start [2025-02-06 07:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413602', 'tblTempUsageDetail_20' ) end [2025-02-06 07:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:46:23] Production.INFO: ==16284== Releasing lock... [2025-02-06 07:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:46:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:47:05 [end_date_ymd] => 2025-02-06 07:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:47:05' and `end` < '2025-02-06 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-06 07:47:18] Production.INFO: count ==208 [2025-02-06 07:47:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:47:05 - End Time 2025-02-06 07:47:05 [2025-02-06 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413607', 'tblTempUsageDetail_20' ) start [2025-02-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413607', 'tblTempUsageDetail_20' ) end [2025-02-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413607', 'tblTempVendorCDR_20' ) start [2025-02-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413607', 'tblTempVendorCDR_20' ) end [2025-02-06 07:47:18] Production.INFO: ProcessCDR(1,14413607,1,1,2) [2025-02-06 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413607', 'tblTempUsageDetail_20' ) start [2025-02-06 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413607', 'tblTempUsageDetail_20' ) end [2025-02-06 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:47:21] Production.INFO: ==16369== Releasing lock... [2025-02-06 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:48:06 [end_date_ymd] => 2025-02-06 07:48:06 [RateCDR] => 1 ) [2025-02-06 07: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-06 04:48:06' and `end` < '2025-02-06 07: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-06 07:48:19] Production.INFO: count ==208 [2025-02-06 07:48:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:48:06 - End Time 2025-02-06 07:48:06 [2025-02-06 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413612', 'tblTempUsageDetail_20' ) start [2025-02-06 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413612', 'tblTempUsageDetail_20' ) end [2025-02-06 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413612', 'tblTempVendorCDR_20' ) start [2025-02-06 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413612', 'tblTempVendorCDR_20' ) end [2025-02-06 07:48:19] Production.INFO: ProcessCDR(1,14413612,1,1,2) [2025-02-06 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413612', 'tblTempUsageDetail_20' ) start [2025-02-06 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413612', 'tblTempUsageDetail_20' ) end [2025-02-06 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:48:22] Production.INFO: ==16448== Releasing lock... [2025-02-06 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:49:05 [end_date_ymd] => 2025-02-06 07:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:49:05' and `end` < '2025-02-06 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-06 07:49:18] Production.INFO: count ==212 [2025-02-06 07:49:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:49:05 - End Time 2025-02-06 07:49:05 [2025-02-06 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413617', 'tblTempUsageDetail_20' ) start [2025-02-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413617', 'tblTempUsageDetail_20' ) end [2025-02-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413617', 'tblTempVendorCDR_20' ) start [2025-02-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413617', 'tblTempVendorCDR_20' ) end [2025-02-06 07:49:18] Production.INFO: ProcessCDR(1,14413617,1,1,2) [2025-02-06 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413617', 'tblTempUsageDetail_20' ) start [2025-02-06 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413617', 'tblTempUsageDetail_20' ) end [2025-02-06 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:49:21] Production.INFO: ==16542== Releasing lock... [2025-02-06 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:50:06 [end_date_ymd] => 2025-02-06 07:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 04:50:06' and `end` < '2025-02-06 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-06 07:50:20] Production.INFO: count ==216 [2025-02-06 07:50:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:50:06 - End Time 2025-02-06 07:50:06 [2025-02-06 07:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413623', 'tblTempUsageDetail_20' ) start [2025-02-06 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413623', 'tblTempUsageDetail_20' ) end [2025-02-06 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413623', 'tblTempVendorCDR_20' ) start [2025-02-06 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413623', 'tblTempVendorCDR_20' ) end [2025-02-06 07:50:20] Production.INFO: ProcessCDR(1,14413623,1,1,2) [2025-02-06 07:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413623', 'tblTempUsageDetail_20' ) start [2025-02-06 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413623', 'tblTempUsageDetail_20' ) end [2025-02-06 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:50:23] Production.INFO: ==16633== Releasing lock... [2025-02-06 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:50:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:51:05 [end_date_ymd] => 2025-02-06 07:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:51:05' and `end` < '2025-02-06 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-06 07:51:19] Production.INFO: count ==240 [2025-02-06 07:51:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:51:05 - End Time 2025-02-06 07:51:05 [2025-02-06 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413628', 'tblTempUsageDetail_20' ) start [2025-02-06 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413628', 'tblTempUsageDetail_20' ) end [2025-02-06 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413628', 'tblTempVendorCDR_20' ) start [2025-02-06 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413628', 'tblTempVendorCDR_20' ) end [2025-02-06 07:51:19] Production.INFO: ProcessCDR(1,14413628,1,1,2) [2025-02-06 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413628', 'tblTempUsageDetail_20' ) start [2025-02-06 07:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413628', 'tblTempUsageDetail_20' ) end [2025-02-06 07:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:51:24] Production.INFO: ==16716== Releasing lock... [2025-02-06 07:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:51:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:52:05 [end_date_ymd] => 2025-02-06 07:52:05 [RateCDR] => 1 ) [2025-02-06 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:52:05' and `end` < '2025-02-06 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-06 07:52:18] Production.INFO: count ==240 [2025-02-06 07:52:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:52:05 - End Time 2025-02-06 07:52:05 [2025-02-06 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413633', 'tblTempUsageDetail_20' ) start [2025-02-06 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413633', 'tblTempUsageDetail_20' ) end [2025-02-06 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413633', 'tblTempVendorCDR_20' ) start [2025-02-06 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413633', 'tblTempVendorCDR_20' ) end [2025-02-06 07:52:18] Production.INFO: ProcessCDR(1,14413633,1,1,2) [2025-02-06 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413633', 'tblTempUsageDetail_20' ) start [2025-02-06 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413633', 'tblTempUsageDetail_20' ) end [2025-02-06 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:52:22] Production.INFO: ==16802== Releasing lock... [2025-02-06 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:53:04 [end_date_ymd] => 2025-02-06 07:53:04 [RateCDR] => 1 ) [2025-02-06 07:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:53:04' and `end` < '2025-02-06 07:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:53:18] Production.INFO: count ==240 [2025-02-06 07:53:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:53:04 - End Time 2025-02-06 07:53:04 [2025-02-06 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413638', 'tblTempUsageDetail_20' ) start [2025-02-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413638', 'tblTempUsageDetail_20' ) end [2025-02-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413638', 'tblTempVendorCDR_20' ) start [2025-02-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413638', 'tblTempVendorCDR_20' ) end [2025-02-06 07:53:18] Production.INFO: ProcessCDR(1,14413638,1,1,2) [2025-02-06 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413638', 'tblTempUsageDetail_20' ) start [2025-02-06 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413638', 'tblTempUsageDetail_20' ) end [2025-02-06 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:53:21] Production.INFO: ==16888== Releasing lock... [2025-02-06 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:54:05 [end_date_ymd] => 2025-02-06 07:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:54:05' and `end` < '2025-02-06 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-06 07:54:20] Production.INFO: count ==248 [2025-02-06 07:54:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:54:05 - End Time 2025-02-06 07:54:05 [2025-02-06 07:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413643', 'tblTempUsageDetail_20' ) start [2025-02-06 07:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413643', 'tblTempUsageDetail_20' ) end [2025-02-06 07:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413643', 'tblTempVendorCDR_20' ) start [2025-02-06 07:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413643', 'tblTempVendorCDR_20' ) end [2025-02-06 07:54:20] Production.INFO: ProcessCDR(1,14413643,1,1,2) [2025-02-06 07:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413643', 'tblTempUsageDetail_20' ) start [2025-02-06 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413643', 'tblTempUsageDetail_20' ) end [2025-02-06 07:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:54:23] Production.INFO: ==16970== Releasing lock... [2025-02-06 07:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:54:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-06 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:55:05 [end_date_ymd] => 2025-02-06 07:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:55:05' and `end` < '2025-02-06 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-06 07:55:18] Production.INFO: count ==253 [2025-02-06 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:55:05 - End Time 2025-02-06 07:55:05 [2025-02-06 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413648', 'tblTempUsageDetail_20' ) start [2025-02-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413648', 'tblTempUsageDetail_20' ) end [2025-02-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413648', 'tblTempVendorCDR_20' ) start [2025-02-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413648', 'tblTempVendorCDR_20' ) end [2025-02-06 07:55:18] Production.INFO: ProcessCDR(1,14413648,1,1,2) [2025-02-06 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413648', 'tblTempUsageDetail_20' ) start [2025-02-06 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413648', 'tblTempUsageDetail_20' ) end [2025-02-06 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:55:21] Production.INFO: ==17047== Releasing lock... [2025-02-06 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:56:05 [end_date_ymd] => 2025-02-06 07:56:05 [RateCDR] => 1 ) [2025-02-06 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 04:56:05' and `end` < '2025-02-06 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 07:56:19] Production.INFO: count ==254 [2025-02-06 07:56:19] Production.ERROR: pbx CDR StartTime 2025-02-06 04:56:05 - End Time 2025-02-06 07:56:05 [2025-02-06 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413653', 'tblTempUsageDetail_20' ) start [2025-02-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413653', 'tblTempUsageDetail_20' ) end [2025-02-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413653', 'tblTempVendorCDR_20' ) start [2025-02-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413653', 'tblTempVendorCDR_20' ) end [2025-02-06 07:56:19] Production.INFO: ProcessCDR(1,14413653,1,1,2) [2025-02-06 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413653', 'tblTempUsageDetail_20' ) start [2025-02-06 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413653', 'tblTempUsageDetail_20' ) end [2025-02-06 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:56:22] Production.INFO: ==17136== Releasing lock... [2025-02-06 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:56:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:57:05 [end_date_ymd] => 2025-02-06 07:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:57:05' and `end` < '2025-02-06 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-06 07:57:18] Production.INFO: count ==254 [2025-02-06 07:57:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:57:05 - End Time 2025-02-06 07:57:05 [2025-02-06 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413658', 'tblTempUsageDetail_20' ) start [2025-02-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413658', 'tblTempUsageDetail_20' ) end [2025-02-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413658', 'tblTempVendorCDR_20' ) start [2025-02-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413658', 'tblTempVendorCDR_20' ) end [2025-02-06 07:57:18] Production.INFO: ProcessCDR(1,14413658,1,1,2) [2025-02-06 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413658', 'tblTempUsageDetail_20' ) start [2025-02-06 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413658', 'tblTempUsageDetail_20' ) end [2025-02-06 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:57:21] Production.INFO: ==17248== Releasing lock... [2025-02-06 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:58:05 [end_date_ymd] => 2025-02-06 07:58:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:58:05' and `end` < '2025-02-06 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-06 07:58:20] Production.INFO: count ==254 [2025-02-06 07:58:20] Production.ERROR: pbx CDR StartTime 2025-02-06 04:58:05 - End Time 2025-02-06 07:58:05 [2025-02-06 07:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413663', 'tblTempUsageDetail_20' ) start [2025-02-06 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413663', 'tblTempUsageDetail_20' ) end [2025-02-06 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413663', 'tblTempVendorCDR_20' ) start [2025-02-06 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413663', 'tblTempVendorCDR_20' ) end [2025-02-06 07:58:20] Production.INFO: ProcessCDR(1,14413663,1,1,2) [2025-02-06 07:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413663', 'tblTempUsageDetail_20' ) start [2025-02-06 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413663', 'tblTempUsageDetail_20' ) end [2025-02-06 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:58:23] Production.INFO: ==17333== Releasing lock... [2025-02-06 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:58:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 04:59:05 [end_date_ymd] => 2025-02-06 07:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 04:59:05' and `end` < '2025-02-06 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-06 07:59:18] Production.INFO: count ==255 [2025-02-06 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-06 04:59:05 - End Time 2025-02-06 07:59:05 [2025-02-06 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413668', 'tblTempUsageDetail_20' ) start [2025-02-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413668', 'tblTempUsageDetail_20' ) end [2025-02-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413668', 'tblTempVendorCDR_20' ) start [2025-02-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413668', 'tblTempVendorCDR_20' ) end [2025-02-06 07:59:18] Production.INFO: ProcessCDR(1,14413668,1,1,2) [2025-02-06 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413668', 'tblTempUsageDetail_20' ) start [2025-02-06 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413668', 'tblTempUsageDetail_20' ) end [2025-02-06 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 07:59:23] Production.INFO: ==17411== Releasing lock... [2025-02-06 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 07:59:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:00:06 [end_date_ymd] => 2025-02-06 08:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 05:00:06' and `end` < '2025-02-06 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-06 08:00:19] Production.INFO: count ==263 [2025-02-06 08:00:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:00:06 - End Time 2025-02-06 08:00:06 [2025-02-06 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413674', 'tblTempUsageDetail_20' ) start [2025-02-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413674', 'tblTempUsageDetail_20' ) end [2025-02-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413674', 'tblTempVendorCDR_20' ) start [2025-02-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413674', 'tblTempVendorCDR_20' ) end [2025-02-06 08:00:19] Production.INFO: ProcessCDR(1,14413674,1,1,2) [2025-02-06 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413674', 'tblTempUsageDetail_20' ) start [2025-02-06 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413674', 'tblTempUsageDetail_20' ) end [2025-02-06 08:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:00:24] Production.INFO: ==17494== Releasing lock... [2025-02-06 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:00:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:01:05 [end_date_ymd] => 2025-02-06 08:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:01:05' and `end` < '2025-02-06 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-06 08:01:18] Production.INFO: count ==269 [2025-02-06 08:01:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:01:05 - End Time 2025-02-06 08:01:05 [2025-02-06 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413679', 'tblTempUsageDetail_20' ) start [2025-02-06 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413679', 'tblTempUsageDetail_20' ) end [2025-02-06 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413679', 'tblTempVendorCDR_20' ) start [2025-02-06 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413679', 'tblTempVendorCDR_20' ) end [2025-02-06 08:01:19] Production.INFO: ProcessCDR(1,14413679,1,1,2) [2025-02-06 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413679', 'tblTempUsageDetail_20' ) start [2025-02-06 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413679', 'tblTempUsageDetail_20' ) end [2025-02-06 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:01:22] Production.INFO: ==17587== Releasing lock... [2025-02-06 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:02:05 [end_date_ymd] => 2025-02-06 08:02:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:02:05' and `end` < '2025-02-06 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-06 08:02:18] Production.INFO: count ==272 [2025-02-06 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:02:05 - End Time 2025-02-06 08:02:05 [2025-02-06 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413684', 'tblTempUsageDetail_20' ) start [2025-02-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413684', 'tblTempUsageDetail_20' ) end [2025-02-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413684', 'tblTempVendorCDR_20' ) start [2025-02-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413684', 'tblTempVendorCDR_20' ) end [2025-02-06 08:02:18] Production.INFO: ProcessCDR(1,14413684,1,1,2) [2025-02-06 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413684', 'tblTempUsageDetail_20' ) start [2025-02-06 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413684', 'tblTempUsageDetail_20' ) end [2025-02-06 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:02:21] Production.INFO: ==17664== Releasing lock... [2025-02-06 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-06 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:03:05 [end_date_ymd] => 2025-02-06 08:03:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:03:05' and `end` < '2025-02-06 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-06 08:03:18] Production.INFO: count ==281 [2025-02-06 08:03:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:03:05 - End Time 2025-02-06 08:03:05 [2025-02-06 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413689', 'tblTempUsageDetail_20' ) start [2025-02-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413689', 'tblTempUsageDetail_20' ) end [2025-02-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413689', 'tblTempVendorCDR_20' ) start [2025-02-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413689', 'tblTempVendorCDR_20' ) end [2025-02-06 08:03:18] Production.INFO: ProcessCDR(1,14413689,1,1,2) [2025-02-06 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413689', 'tblTempUsageDetail_20' ) start [2025-02-06 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413689', 'tblTempUsageDetail_20' ) end [2025-02-06 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:03:22] Production.INFO: ==17740== Releasing lock... [2025-02-06 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:03:22] Production.INFO: 30 MB #Memory Used# [2025-02-06 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:04:05 [end_date_ymd] => 2025-02-06 08:04:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:04:05' and `end` < '2025-02-06 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-06 08:04:18] Production.INFO: count ==287 [2025-02-06 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:04:05 - End Time 2025-02-06 08:04:05 [2025-02-06 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413694', 'tblTempUsageDetail_20' ) start [2025-02-06 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413694', 'tblTempUsageDetail_20' ) end [2025-02-06 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413694', 'tblTempVendorCDR_20' ) start [2025-02-06 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413694', 'tblTempVendorCDR_20' ) end [2025-02-06 08:04:18] Production.INFO: ProcessCDR(1,14413694,1,1,2) [2025-02-06 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413694', 'tblTempUsageDetail_20' ) start [2025-02-06 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413694', 'tblTempUsageDetail_20' ) end [2025-02-06 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:04:23] Production.INFO: ==17818== Releasing lock... [2025-02-06 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-06 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:05:05 [end_date_ymd] => 2025-02-06 08:05:05 [RateCDR] => 1 ) [2025-02-06 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:05:05' and `end` < '2025-02-06 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-06 08:05:19] Production.INFO: count ==309 [2025-02-06 08:05:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:05:05 - End Time 2025-02-06 08:05:05 [2025-02-06 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413699', 'tblTempUsageDetail_20' ) start [2025-02-06 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413699', 'tblTempUsageDetail_20' ) end [2025-02-06 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413699', 'tblTempVendorCDR_20' ) start [2025-02-06 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413699', 'tblTempVendorCDR_20' ) end [2025-02-06 08:05:19] Production.INFO: ProcessCDR(1,14413699,1,1,2) [2025-02-06 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413699', 'tblTempUsageDetail_20' ) start [2025-02-06 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413699', 'tblTempUsageDetail_20' ) end [2025-02-06 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:05:23] Production.INFO: ==17894== Releasing lock... [2025-02-06 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:05:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-06 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:06:05 [end_date_ymd] => 2025-02-06 08:06:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:06:05' and `end` < '2025-02-06 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-06 08:06:19] Production.INFO: count ==353 [2025-02-06 08:06:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:06:05 - End Time 2025-02-06 08:06:05 [2025-02-06 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413704', 'tblTempUsageDetail_20' ) start [2025-02-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413704', 'tblTempUsageDetail_20' ) end [2025-02-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413704', 'tblTempVendorCDR_20' ) start [2025-02-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413704', 'tblTempVendorCDR_20' ) end [2025-02-06 08:06:19] Production.INFO: ProcessCDR(1,14413704,1,1,2) [2025-02-06 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413704', 'tblTempUsageDetail_20' ) start [2025-02-06 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413704', 'tblTempUsageDetail_20' ) end [2025-02-06 08:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:06:24] Production.INFO: ==17975== Releasing lock... [2025-02-06 08:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:06:24] Production.INFO: 31 MB #Memory Used# [2025-02-06 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:07:05 [end_date_ymd] => 2025-02-06 08:07:05 [RateCDR] => 1 ) [2025-02-06 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:07:05' and `end` < '2025-02-06 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:07:18] Production.INFO: count ==360 [2025-02-06 08:07:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:07:05 - End Time 2025-02-06 08:07:05 [2025-02-06 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413709', 'tblTempUsageDetail_20' ) start [2025-02-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413709', 'tblTempUsageDetail_20' ) end [2025-02-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413709', 'tblTempVendorCDR_20' ) start [2025-02-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413709', 'tblTempVendorCDR_20' ) end [2025-02-06 08:07:18] Production.INFO: ProcessCDR(1,14413709,1,1,2) [2025-02-06 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413709', 'tblTempUsageDetail_20' ) start [2025-02-06 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413709', 'tblTempUsageDetail_20' ) end [2025-02-06 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:07:23] Production.INFO: ==18047== Releasing lock... [2025-02-06 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:07:23] Production.INFO: 31 MB #Memory Used# [2025-02-06 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:08:06 [end_date_ymd] => 2025-02-06 08:08:06 [RateCDR] => 1 ) [2025-02-06 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:08:06' and `end` < '2025-02-06 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:08:19] Production.INFO: count ==363 [2025-02-06 08:08:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:08:06 - End Time 2025-02-06 08:08:06 [2025-02-06 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413714', 'tblTempUsageDetail_20' ) start [2025-02-06 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413714', 'tblTempUsageDetail_20' ) end [2025-02-06 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413714', 'tblTempVendorCDR_20' ) start [2025-02-06 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413714', 'tblTempVendorCDR_20' ) end [2025-02-06 08:08:19] Production.INFO: ProcessCDR(1,14413714,1,1,2) [2025-02-06 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413714', 'tblTempUsageDetail_20' ) start [2025-02-06 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413714', 'tblTempUsageDetail_20' ) end [2025-02-06 08:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:08:24] Production.INFO: ==18126== Releasing lock... [2025-02-06 08:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:08:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:09:05 [end_date_ymd] => 2025-02-06 08:09:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:09:05' and `end` < '2025-02-06 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-06 08:09:19] Production.INFO: count ==374 [2025-02-06 08:09:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:09:05 - End Time 2025-02-06 08:09:05 [2025-02-06 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413719', 'tblTempUsageDetail_20' ) start [2025-02-06 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413719', 'tblTempUsageDetail_20' ) end [2025-02-06 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413719', 'tblTempVendorCDR_20' ) start [2025-02-06 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413719', 'tblTempVendorCDR_20' ) end [2025-02-06 08:09:19] Production.INFO: ProcessCDR(1,14413719,1,1,2) [2025-02-06 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413719', 'tblTempUsageDetail_20' ) start [2025-02-06 08:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413719', 'tblTempUsageDetail_20' ) end [2025-02-06 08:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:09:24] Production.INFO: ==18196== Releasing lock... [2025-02-06 08:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:09:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-06 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:10:07 [end_date_ymd] => 2025-02-06 08:10:07 [RateCDR] => 1 ) [2025-02-06 08: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-06 05:10:07' and `end` < '2025-02-06 08: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-06 08:10:20] Production.INFO: count ==400 [2025-02-06 08:10:20] Production.ERROR: pbx CDR StartTime 2025-02-06 05:10:07 - End Time 2025-02-06 08:10:07 [2025-02-06 08:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413725', 'tblTempUsageDetail_20' ) start [2025-02-06 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413725', 'tblTempUsageDetail_20' ) end [2025-02-06 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413725', 'tblTempVendorCDR_20' ) start [2025-02-06 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413725', 'tblTempVendorCDR_20' ) end [2025-02-06 08:10:20] Production.INFO: ProcessCDR(1,14413725,1,1,2) [2025-02-06 08:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413725', 'tblTempUsageDetail_20' ) start [2025-02-06 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413725', 'tblTempUsageDetail_20' ) end [2025-02-06 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:10:24] Production.INFO: ==18272== Releasing lock... [2025-02-06 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:10:24] Production.INFO: 31 MB #Memory Used# [2025-02-06 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:11:05 [end_date_ymd] => 2025-02-06 08:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:11:05' and `end` < '2025-02-06 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-06 08:11:19] Production.INFO: count ==464 [2025-02-06 08:11:20] Production.ERROR: pbx CDR StartTime 2025-02-06 05:11:05 - End Time 2025-02-06 08:11:05 [2025-02-06 08:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413730', 'tblTempUsageDetail_20' ) start [2025-02-06 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413730', 'tblTempUsageDetail_20' ) end [2025-02-06 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413730', 'tblTempVendorCDR_20' ) start [2025-02-06 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413730', 'tblTempVendorCDR_20' ) end [2025-02-06 08:11:20] Production.INFO: ProcessCDR(1,14413730,1,1,2) [2025-02-06 08:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413730', 'tblTempUsageDetail_20' ) start [2025-02-06 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413730', 'tblTempUsageDetail_20' ) end [2025-02-06 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:11:23] Production.INFO: ==18346== Releasing lock... [2025-02-06 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:11:23] Production.INFO: 32 MB #Memory Used# [2025-02-06 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:12:05 [end_date_ymd] => 2025-02-06 08:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:12:05' and `end` < '2025-02-06 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-06 08:12:18] Production.INFO: count ==478 [2025-02-06 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:12:05 - End Time 2025-02-06 08:12:05 [2025-02-06 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413735', 'tblTempUsageDetail_20' ) start [2025-02-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413735', 'tblTempUsageDetail_20' ) end [2025-02-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413735', 'tblTempVendorCDR_20' ) start [2025-02-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413735', 'tblTempVendorCDR_20' ) end [2025-02-06 08:12:18] Production.INFO: ProcessCDR(1,14413735,1,1,2) [2025-02-06 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413735', 'tblTempUsageDetail_20' ) start [2025-02-06 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413735', 'tblTempUsageDetail_20' ) end [2025-02-06 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:12:22] Production.INFO: ==18457== Releasing lock... [2025-02-06 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:12:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-06 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:13:04 [end_date_ymd] => 2025-02-06 08:13:04 [RateCDR] => 1 ) [2025-02-06 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-06 05:13:04' and `end` < '2025-02-06 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-06 08:13:17] Production.INFO: count ==481 [2025-02-06 08:13:17] Production.ERROR: pbx CDR StartTime 2025-02-06 05:13:04 - End Time 2025-02-06 08:13:04 [2025-02-06 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413740', 'tblTempUsageDetail_20' ) start [2025-02-06 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413740', 'tblTempUsageDetail_20' ) end [2025-02-06 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413740', 'tblTempVendorCDR_20' ) start [2025-02-06 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413740', 'tblTempVendorCDR_20' ) end [2025-02-06 08:13:17] Production.INFO: ProcessCDR(1,14413740,1,1,2) [2025-02-06 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413740', 'tblTempUsageDetail_20' ) start [2025-02-06 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413740', 'tblTempUsageDetail_20' ) end [2025-02-06 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:13:21] Production.INFO: ==18534== Releasing lock... [2025-02-06 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:13:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-06 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:14:05 [end_date_ymd] => 2025-02-06 08:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:14:05' and `end` < '2025-02-06 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-06 08:14:18] Production.INFO: count ==493 [2025-02-06 08:14:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:14:05 - End Time 2025-02-06 08:14:05 [2025-02-06 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413745', 'tblTempUsageDetail_20' ) start [2025-02-06 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413745', 'tblTempUsageDetail_20' ) end [2025-02-06 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413745', 'tblTempVendorCDR_20' ) start [2025-02-06 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413745', 'tblTempVendorCDR_20' ) end [2025-02-06 08:14:19] Production.INFO: ProcessCDR(1,14413745,1,1,2) [2025-02-06 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413745', 'tblTempUsageDetail_20' ) start [2025-02-06 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413745', 'tblTempUsageDetail_20' ) end [2025-02-06 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:14:22] Production.INFO: ==18609== Releasing lock... [2025-02-06 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-06 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:15:05 [end_date_ymd] => 2025-02-06 08:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:15:05' and `end` < '2025-02-06 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-06 08:15:18] Production.INFO: count ==494 [2025-02-06 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:15:05 - End Time 2025-02-06 08:15:05 [2025-02-06 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413750', 'tblTempUsageDetail_20' ) start [2025-02-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413750', 'tblTempUsageDetail_20' ) end [2025-02-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413750', 'tblTempVendorCDR_20' ) start [2025-02-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413750', 'tblTempVendorCDR_20' ) end [2025-02-06 08:15:18] Production.INFO: ProcessCDR(1,14413750,1,1,2) [2025-02-06 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413750', 'tblTempUsageDetail_20' ) start [2025-02-06 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413750', 'tblTempUsageDetail_20' ) end [2025-02-06 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:15:23] Production.INFO: ==18684== Releasing lock... [2025-02-06 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:15:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-06 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:16:05 [end_date_ymd] => 2025-02-06 08:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:16:05' and `end` < '2025-02-06 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-06 08:16:18] Production.INFO: count ==502 [2025-02-06 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:16:05 - End Time 2025-02-06 08:16:05 [2025-02-06 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413755', 'tblTempUsageDetail_20' ) start [2025-02-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413755', 'tblTempUsageDetail_20' ) end [2025-02-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413755', 'tblTempVendorCDR_20' ) start [2025-02-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413755', 'tblTempVendorCDR_20' ) end [2025-02-06 08:16:18] Production.INFO: ProcessCDR(1,14413755,1,1,2) [2025-02-06 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413755', 'tblTempUsageDetail_20' ) start [2025-02-06 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413755', 'tblTempUsageDetail_20' ) end [2025-02-06 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:16:23] Production.INFO: ==18755== Releasing lock... [2025-02-06 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:16:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-06 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:17:05 [end_date_ymd] => 2025-02-06 08:17:05 [RateCDR] => 1 ) [2025-02-06 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:17:05' and `end` < '2025-02-06 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:17:18] Production.INFO: count ==507 [2025-02-06 08:17:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:17:05 - End Time 2025-02-06 08:17:05 [2025-02-06 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413760', 'tblTempUsageDetail_20' ) start [2025-02-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413760', 'tblTempUsageDetail_20' ) end [2025-02-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413760', 'tblTempVendorCDR_20' ) start [2025-02-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413760', 'tblTempVendorCDR_20' ) end [2025-02-06 08:17:18] Production.INFO: ProcessCDR(1,14413760,1,1,2) [2025-02-06 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413760', 'tblTempUsageDetail_20' ) start [2025-02-06 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413760', 'tblTempUsageDetail_20' ) end [2025-02-06 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:17:22] Production.INFO: ==18831== Releasing lock... [2025-02-06 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:17:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-06 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:18:05 [end_date_ymd] => 2025-02-06 08:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:18:05' and `end` < '2025-02-06 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-06 08:18:18] Production.INFO: count ==509 [2025-02-06 08:18:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:18:05 - End Time 2025-02-06 08:18:05 [2025-02-06 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413765', 'tblTempUsageDetail_20' ) start [2025-02-06 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413765', 'tblTempUsageDetail_20' ) end [2025-02-06 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413765', 'tblTempVendorCDR_20' ) start [2025-02-06 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413765', 'tblTempVendorCDR_20' ) end [2025-02-06 08:18:19] Production.INFO: ProcessCDR(1,14413765,1,1,2) [2025-02-06 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413765', 'tblTempUsageDetail_20' ) start [2025-02-06 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413765', 'tblTempUsageDetail_20' ) end [2025-02-06 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:18:22] Production.INFO: ==18915== Releasing lock... [2025-02-06 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:18:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:19:05 [end_date_ymd] => 2025-02-06 08:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:19:05' and `end` < '2025-02-06 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-06 08:19:19] Production.INFO: count ==514 [2025-02-06 08:19:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:19:05 - End Time 2025-02-06 08:19:05 [2025-02-06 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413770', 'tblTempUsageDetail_20' ) start [2025-02-06 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413770', 'tblTempUsageDetail_20' ) end [2025-02-06 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413770', 'tblTempVendorCDR_20' ) start [2025-02-06 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413770', 'tblTempVendorCDR_20' ) end [2025-02-06 08:19:19] Production.INFO: ProcessCDR(1,14413770,1,1,2) [2025-02-06 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413770', 'tblTempUsageDetail_20' ) start [2025-02-06 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413770', 'tblTempUsageDetail_20' ) end [2025-02-06 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:19:23] Production.INFO: ==18986== Releasing lock... [2025-02-06 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:19:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-06 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:20:06 [end_date_ymd] => 2025-02-06 08:20:06 [RateCDR] => 1 ) [2025-02-06 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:20:06' and `end` < '2025-02-06 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:20:19] Production.INFO: count ==528 [2025-02-06 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:20:06 - End Time 2025-02-06 08:20:06 [2025-02-06 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413776', 'tblTempUsageDetail_20' ) start [2025-02-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413776', 'tblTempUsageDetail_20' ) end [2025-02-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413776', 'tblTempVendorCDR_20' ) start [2025-02-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413776', 'tblTempVendorCDR_20' ) end [2025-02-06 08:20:19] Production.INFO: ProcessCDR(1,14413776,1,1,2) [2025-02-06 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413776', 'tblTempUsageDetail_20' ) start [2025-02-06 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413776', 'tblTempUsageDetail_20' ) end [2025-02-06 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:20:24] Production.INFO: ==19064== Releasing lock... [2025-02-06 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:20:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-06 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:21:05 [end_date_ymd] => 2025-02-06 08:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:21:05' and `end` < '2025-02-06 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-06 08:21:19] Production.INFO: count ==557 [2025-02-06 08:21:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:21:05 - End Time 2025-02-06 08:21:05 [2025-02-06 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413781', 'tblTempUsageDetail_20' ) start [2025-02-06 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413781', 'tblTempUsageDetail_20' ) end [2025-02-06 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413781', 'tblTempVendorCDR_20' ) start [2025-02-06 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413781', 'tblTempVendorCDR_20' ) end [2025-02-06 08:21:19] Production.INFO: ProcessCDR(1,14413781,1,1,2) [2025-02-06 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413781', 'tblTempUsageDetail_20' ) start [2025-02-06 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413781', 'tblTempUsageDetail_20' ) end [2025-02-06 08:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:21:24] Production.INFO: ==19143== Releasing lock... [2025-02-06 08:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:21:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-06 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:22:05 [end_date_ymd] => 2025-02-06 08:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:22:05' and `end` < '2025-02-06 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-06 08:22:18] Production.INFO: count ==567 [2025-02-06 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:22:05 - End Time 2025-02-06 08:22:05 [2025-02-06 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413786', 'tblTempUsageDetail_20' ) start [2025-02-06 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413786', 'tblTempUsageDetail_20' ) end [2025-02-06 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413786', 'tblTempVendorCDR_20' ) start [2025-02-06 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413786', 'tblTempVendorCDR_20' ) end [2025-02-06 08:22:18] Production.INFO: ProcessCDR(1,14413786,1,1,2) [2025-02-06 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413786', 'tblTempUsageDetail_20' ) start [2025-02-06 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413786', 'tblTempUsageDetail_20' ) end [2025-02-06 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:22:21] Production.INFO: ==19217== Releasing lock... [2025-02-06 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:23:05 [end_date_ymd] => 2025-02-06 08:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:23:05' and `end` < '2025-02-06 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-06 08:23:19] Production.INFO: count ==568 [2025-02-06 08:23:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:23:05 - End Time 2025-02-06 08:23:05 [2025-02-06 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413791', 'tblTempUsageDetail_20' ) start [2025-02-06 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413791', 'tblTempUsageDetail_20' ) end [2025-02-06 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413791', 'tblTempVendorCDR_20' ) start [2025-02-06 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413791', 'tblTempVendorCDR_20' ) end [2025-02-06 08:23:19] Production.INFO: ProcessCDR(1,14413791,1,1,2) [2025-02-06 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413791', 'tblTempUsageDetail_20' ) start [2025-02-06 08:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413791', 'tblTempUsageDetail_20' ) end [2025-02-06 08:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:23:24] Production.INFO: ==19292== Releasing lock... [2025-02-06 08:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:23:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-06 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:24:05 [end_date_ymd] => 2025-02-06 08:24:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:24:05' and `end` < '2025-02-06 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-06 08:24:19] Production.INFO: count ==569 [2025-02-06 08:24:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:24:05 - End Time 2025-02-06 08:24:05 [2025-02-06 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413796', 'tblTempUsageDetail_20' ) start [2025-02-06 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413796', 'tblTempUsageDetail_20' ) end [2025-02-06 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413796', 'tblTempVendorCDR_20' ) start [2025-02-06 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413796', 'tblTempVendorCDR_20' ) end [2025-02-06 08:24:19] Production.INFO: ProcessCDR(1,14413796,1,1,2) [2025-02-06 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413796', 'tblTempUsageDetail_20' ) start [2025-02-06 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413796', 'tblTempUsageDetail_20' ) end [2025-02-06 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:24:22] Production.INFO: ==19365== Releasing lock... [2025-02-06 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:24:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:25:05 [end_date_ymd] => 2025-02-06 08:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:25:05' and `end` < '2025-02-06 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-06 08:25:18] Production.INFO: count ==582 [2025-02-06 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:25:05 - End Time 2025-02-06 08:25:05 [2025-02-06 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413801', 'tblTempUsageDetail_20' ) start [2025-02-06 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413801', 'tblTempUsageDetail_20' ) end [2025-02-06 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413801', 'tblTempVendorCDR_20' ) start [2025-02-06 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413801', 'tblTempVendorCDR_20' ) end [2025-02-06 08:25:18] Production.INFO: ProcessCDR(1,14413801,1,1,2) [2025-02-06 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413801', 'tblTempUsageDetail_20' ) start [2025-02-06 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413801', 'tblTempUsageDetail_20' ) end [2025-02-06 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:25:23] Production.INFO: ==19439== Releasing lock... [2025-02-06 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:25:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-06 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:26:05 [end_date_ymd] => 2025-02-06 08:26:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:26:05' and `end` < '2025-02-06 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-06 08:26:18] Production.INFO: count ==590 [2025-02-06 08:26:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:26:05 - End Time 2025-02-06 08:26:05 [2025-02-06 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413806', 'tblTempUsageDetail_20' ) start [2025-02-06 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413806', 'tblTempUsageDetail_20' ) end [2025-02-06 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413806', 'tblTempVendorCDR_20' ) start [2025-02-06 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413806', 'tblTempVendorCDR_20' ) end [2025-02-06 08:26:19] Production.INFO: ProcessCDR(1,14413806,1,1,2) [2025-02-06 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413806', 'tblTempUsageDetail_20' ) start [2025-02-06 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413806', 'tblTempUsageDetail_20' ) end [2025-02-06 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:26:22] Production.INFO: ==19515== Releasing lock... [2025-02-06 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:26:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:27:05 [end_date_ymd] => 2025-02-06 08:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:27:05' and `end` < '2025-02-06 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-06 08:27:19] Production.INFO: count ==590 [2025-02-06 08:27:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:27:05 - End Time 2025-02-06 08:27:05 [2025-02-06 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413811', 'tblTempUsageDetail_20' ) start [2025-02-06 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413811', 'tblTempUsageDetail_20' ) end [2025-02-06 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413811', 'tblTempVendorCDR_20' ) start [2025-02-06 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413811', 'tblTempVendorCDR_20' ) end [2025-02-06 08:27:19] Production.INFO: ProcessCDR(1,14413811,1,1,2) [2025-02-06 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413811', 'tblTempUsageDetail_20' ) start [2025-02-06 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413811', 'tblTempUsageDetail_20' ) end [2025-02-06 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:27:22] Production.INFO: ==19587== Releasing lock... [2025-02-06 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:27:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:28:05 [end_date_ymd] => 2025-02-06 08:28:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:28:05' and `end` < '2025-02-06 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-06 08:28:19] Production.INFO: count ==591 [2025-02-06 08:28:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:28:05 - End Time 2025-02-06 08:28:05 [2025-02-06 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413816', 'tblTempUsageDetail_20' ) start [2025-02-06 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413816', 'tblTempUsageDetail_20' ) end [2025-02-06 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413816', 'tblTempVendorCDR_20' ) start [2025-02-06 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413816', 'tblTempVendorCDR_20' ) end [2025-02-06 08:28:19] Production.INFO: ProcessCDR(1,14413816,1,1,2) [2025-02-06 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413816', 'tblTempUsageDetail_20' ) start [2025-02-06 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413816', 'tblTempUsageDetail_20' ) end [2025-02-06 08:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:28:24] Production.INFO: ==19699== Releasing lock... [2025-02-06 08:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:28:24] Production.INFO: 33 MB #Memory Used# [2025-02-06 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:29:05 [end_date_ymd] => 2025-02-06 08:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:29:05' and `end` < '2025-02-06 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-06 08:29:18] Production.INFO: count ==591 [2025-02-06 08:29:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:29:05 - End Time 2025-02-06 08:29:05 [2025-02-06 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413821', 'tblTempUsageDetail_20' ) start [2025-02-06 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413821', 'tblTempUsageDetail_20' ) end [2025-02-06 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413821', 'tblTempVendorCDR_20' ) start [2025-02-06 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413821', 'tblTempVendorCDR_20' ) end [2025-02-06 08:29:18] Production.INFO: ProcessCDR(1,14413821,1,1,2) [2025-02-06 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413821', 'tblTempUsageDetail_20' ) start [2025-02-06 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413821', 'tblTempUsageDetail_20' ) end [2025-02-06 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:29:21] Production.INFO: ==19773== Releasing lock... [2025-02-06 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:29:21] Production.INFO: 33 MB #Memory Used# [2025-02-06 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:30:06 [end_date_ymd] => 2025-02-06 08:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 05:30:06' and `end` < '2025-02-06 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-06 08:30:19] Production.INFO: count ==599 [2025-02-06 08:30:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:30:06 - End Time 2025-02-06 08:30:06 [2025-02-06 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413827', 'tblTempUsageDetail_20' ) start [2025-02-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413827', 'tblTempUsageDetail_20' ) end [2025-02-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413827', 'tblTempVendorCDR_20' ) start [2025-02-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413827', 'tblTempVendorCDR_20' ) end [2025-02-06 08:30:19] Production.INFO: ProcessCDR(1,14413827,1,1,2) [2025-02-06 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413827', 'tblTempUsageDetail_20' ) start [2025-02-06 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413827', 'tblTempUsageDetail_20' ) end [2025-02-06 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:30:23] Production.INFO: ==19847== Releasing lock... [2025-02-06 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:30:23] Production.INFO: 33 MB #Memory Used# [2025-02-06 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:31:06 [end_date_ymd] => 2025-02-06 08:31:06 [RateCDR] => 1 ) [2025-02-06 08:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:31:06' and `end` < '2025-02-06 08:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:31:19] Production.INFO: count ==624 [2025-02-06 08:31:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:31:06 - End Time 2025-02-06 08:31:06 [2025-02-06 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413832', 'tblTempUsageDetail_20' ) start [2025-02-06 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413832', 'tblTempUsageDetail_20' ) end [2025-02-06 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413832', 'tblTempVendorCDR_20' ) start [2025-02-06 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413832', 'tblTempVendorCDR_20' ) end [2025-02-06 08:31:19] Production.INFO: ProcessCDR(1,14413832,1,1,2) [2025-02-06 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413832', 'tblTempUsageDetail_20' ) start [2025-02-06 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413832', 'tblTempUsageDetail_20' ) end [2025-02-06 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:31:22] Production.INFO: ==19920== Releasing lock... [2025-02-06 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:31:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:32:05 [end_date_ymd] => 2025-02-06 08:32:05 [RateCDR] => 1 ) [2025-02-06 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:32:05' and `end` < '2025-02-06 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:32:18] Production.INFO: count ==624 [2025-02-06 08:32:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:32:05 - End Time 2025-02-06 08:32:05 [2025-02-06 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413837', 'tblTempUsageDetail_20' ) start [2025-02-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413837', 'tblTempUsageDetail_20' ) end [2025-02-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413837', 'tblTempVendorCDR_20' ) start [2025-02-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413837', 'tblTempVendorCDR_20' ) end [2025-02-06 08:32:18] Production.INFO: ProcessCDR(1,14413837,1,1,2) [2025-02-06 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413837', 'tblTempUsageDetail_20' ) start [2025-02-06 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413837', 'tblTempUsageDetail_20' ) end [2025-02-06 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:32:21] Production.INFO: ==19990== Releasing lock... [2025-02-06 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:32:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:33:05 [end_date_ymd] => 2025-02-06 08:33:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:33:05' and `end` < '2025-02-06 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-06 08:33:18] Production.INFO: count ==624 [2025-02-06 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:33:05 - End Time 2025-02-06 08:33:05 [2025-02-06 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413842', 'tblTempUsageDetail_20' ) start [2025-02-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413842', 'tblTempUsageDetail_20' ) end [2025-02-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413842', 'tblTempVendorCDR_20' ) start [2025-02-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413842', 'tblTempVendorCDR_20' ) end [2025-02-06 08:33:18] Production.INFO: ProcessCDR(1,14413842,1,1,2) [2025-02-06 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413842', 'tblTempUsageDetail_20' ) start [2025-02-06 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413842', 'tblTempUsageDetail_20' ) end [2025-02-06 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:33:21] Production.INFO: ==20063== Releasing lock... [2025-02-06 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:33:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:34:04 [end_date_ymd] => 2025-02-06 08:34:04 [RateCDR] => 1 ) [2025-02-06 08:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:34:04' and `end` < '2025-02-06 08:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:34:17] Production.INFO: count ==626 [2025-02-06 08:34:17] Production.ERROR: pbx CDR StartTime 2025-02-06 05:34:04 - End Time 2025-02-06 08:34:04 [2025-02-06 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413847', 'tblTempUsageDetail_20' ) start [2025-02-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413847', 'tblTempUsageDetail_20' ) end [2025-02-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413847', 'tblTempVendorCDR_20' ) start [2025-02-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413847', 'tblTempVendorCDR_20' ) end [2025-02-06 08:34:18] Production.INFO: ProcessCDR(1,14413847,1,1,2) [2025-02-06 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413847', 'tblTempUsageDetail_20' ) start [2025-02-06 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413847', 'tblTempUsageDetail_20' ) end [2025-02-06 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:34:21] Production.INFO: ==20133== Releasing lock... [2025-02-06 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:34:21] Production.INFO: 33 MB #Memory Used# [2025-02-06 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:35:05 [end_date_ymd] => 2025-02-06 08:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:35:05' and `end` < '2025-02-06 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-06 08:35:18] Production.INFO: count ==633 [2025-02-06 08:35:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:35:05 - End Time 2025-02-06 08:35:05 [2025-02-06 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413852', 'tblTempUsageDetail_20' ) start [2025-02-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413852', 'tblTempUsageDetail_20' ) end [2025-02-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413852', 'tblTempVendorCDR_20' ) start [2025-02-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413852', 'tblTempVendorCDR_20' ) end [2025-02-06 08:35:18] Production.INFO: ProcessCDR(1,14413852,1,1,2) [2025-02-06 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413852', 'tblTempUsageDetail_20' ) start [2025-02-06 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413852', 'tblTempUsageDetail_20' ) end [2025-02-06 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:35:23] Production.INFO: ==20211== Releasing lock... [2025-02-06 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:35:23] Production.INFO: 33 MB #Memory Used# [2025-02-06 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:36:05 [end_date_ymd] => 2025-02-06 08:36:05 [RateCDR] => 1 ) [2025-02-06 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:36:05' and `end` < '2025-02-06 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:36:19] Production.INFO: count ==635 [2025-02-06 08:36:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:36:05 - End Time 2025-02-06 08:36:05 [2025-02-06 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413857', 'tblTempUsageDetail_20' ) start [2025-02-06 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413857', 'tblTempUsageDetail_20' ) end [2025-02-06 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413857', 'tblTempVendorCDR_20' ) start [2025-02-06 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413857', 'tblTempVendorCDR_20' ) end [2025-02-06 08:36:19] Production.INFO: ProcessCDR(1,14413857,1,1,2) [2025-02-06 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413857', 'tblTempUsageDetail_20' ) start [2025-02-06 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413857', 'tblTempUsageDetail_20' ) end [2025-02-06 08:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:36:24] Production.INFO: ==20288== Releasing lock... [2025-02-06 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:36:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:37:05 [end_date_ymd] => 2025-02-06 08:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:37:05' and `end` < '2025-02-06 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-06 08:37:18] Production.INFO: count ==635 [2025-02-06 08:37:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:37:05 - End Time 2025-02-06 08:37:05 [2025-02-06 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413862', 'tblTempUsageDetail_20' ) start [2025-02-06 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413862', 'tblTempUsageDetail_20' ) end [2025-02-06 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413862', 'tblTempVendorCDR_20' ) start [2025-02-06 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413862', 'tblTempVendorCDR_20' ) end [2025-02-06 08:37:19] Production.INFO: ProcessCDR(1,14413862,1,1,2) [2025-02-06 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413862', 'tblTempUsageDetail_20' ) start [2025-02-06 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413862', 'tblTempUsageDetail_20' ) end [2025-02-06 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:37:22] Production.INFO: ==20358== Releasing lock... [2025-02-06 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:37:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:38:05 [end_date_ymd] => 2025-02-06 08:38:05 [RateCDR] => 1 ) [2025-02-06 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:38:05' and `end` < '2025-02-06 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:38:19] Production.INFO: count ==646 [2025-02-06 08:38:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:38:05 - End Time 2025-02-06 08:38:05 [2025-02-06 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413867', 'tblTempUsageDetail_20' ) start [2025-02-06 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413867', 'tblTempUsageDetail_20' ) end [2025-02-06 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413867', 'tblTempVendorCDR_20' ) start [2025-02-06 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413867', 'tblTempVendorCDR_20' ) end [2025-02-06 08:38:19] Production.INFO: ProcessCDR(1,14413867,1,1,2) [2025-02-06 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413867', 'tblTempUsageDetail_20' ) start [2025-02-06 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413867', 'tblTempUsageDetail_20' ) end [2025-02-06 08:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:38:24] Production.INFO: ==20433== Releasing lock... [2025-02-06 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:38:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:39:05 [end_date_ymd] => 2025-02-06 08:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:39:05' and `end` < '2025-02-06 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-06 08:39:18] Production.INFO: count ==647 [2025-02-06 08:39:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:39:05 - End Time 2025-02-06 08:39:05 [2025-02-06 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413872', 'tblTempUsageDetail_20' ) start [2025-02-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413872', 'tblTempUsageDetail_20' ) end [2025-02-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413872', 'tblTempVendorCDR_20' ) start [2025-02-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413872', 'tblTempVendorCDR_20' ) end [2025-02-06 08:39:18] Production.INFO: ProcessCDR(1,14413872,1,1,2) [2025-02-06 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413872', 'tblTempUsageDetail_20' ) start [2025-02-06 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413872', 'tblTempUsageDetail_20' ) end [2025-02-06 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:39:23] Production.INFO: ==20509== Releasing lock... [2025-02-06 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:39:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:40:06 [end_date_ymd] => 2025-02-06 08:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 05:40:06' and `end` < '2025-02-06 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-06 08:40:19] Production.INFO: count ==659 [2025-02-06 08:40:20] Production.ERROR: pbx CDR StartTime 2025-02-06 05:40:06 - End Time 2025-02-06 08:40:06 [2025-02-06 08:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413878', 'tblTempUsageDetail_20' ) start [2025-02-06 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413878', 'tblTempUsageDetail_20' ) end [2025-02-06 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413878', 'tblTempVendorCDR_20' ) start [2025-02-06 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413878', 'tblTempVendorCDR_20' ) end [2025-02-06 08:40:20] Production.INFO: ProcessCDR(1,14413878,1,1,2) [2025-02-06 08:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413878', 'tblTempUsageDetail_20' ) start [2025-02-06 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413878', 'tblTempUsageDetail_20' ) end [2025-02-06 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:40:24] Production.INFO: ==20590== Releasing lock... [2025-02-06 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:40:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:41:05 [end_date_ymd] => 2025-02-06 08:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:41:05' and `end` < '2025-02-06 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-06 08:41:18] Production.INFO: count ==690 [2025-02-06 08:41:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:41:05 - End Time 2025-02-06 08:41:05 [2025-02-06 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413883', 'tblTempUsageDetail_20' ) start [2025-02-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413883', 'tblTempUsageDetail_20' ) end [2025-02-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413883', 'tblTempVendorCDR_20' ) start [2025-02-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413883', 'tblTempVendorCDR_20' ) end [2025-02-06 08:41:18] Production.INFO: ProcessCDR(1,14413883,1,1,2) [2025-02-06 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413883', 'tblTempUsageDetail_20' ) start [2025-02-06 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413883', 'tblTempUsageDetail_20' ) end [2025-02-06 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:41:21] Production.INFO: ==20683== Releasing lock... [2025-02-06 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:41:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:42:05 [end_date_ymd] => 2025-02-06 08:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:42:05' and `end` < '2025-02-06 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-06 08:42:19] Production.INFO: count ==700 [2025-02-06 08:42:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:42:05 - End Time 2025-02-06 08:42:05 [2025-02-06 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413888', 'tblTempUsageDetail_20' ) start [2025-02-06 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413888', 'tblTempUsageDetail_20' ) end [2025-02-06 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413888', 'tblTempVendorCDR_20' ) start [2025-02-06 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413888', 'tblTempVendorCDR_20' ) end [2025-02-06 08:42:19] Production.INFO: ProcessCDR(1,14413888,1,1,2) [2025-02-06 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413888', 'tblTempUsageDetail_20' ) start [2025-02-06 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413888', 'tblTempUsageDetail_20' ) end [2025-02-06 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:42:22] Production.INFO: ==20763== Releasing lock... [2025-02-06 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:42:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:43:04 [end_date_ymd] => 2025-02-06 08:43:04 [RateCDR] => 1 ) [2025-02-06 08:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:43:04' and `end` < '2025-02-06 08:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:43:18] Production.INFO: count ==702 [2025-02-06 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:43:04 - End Time 2025-02-06 08:43:04 [2025-02-06 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413893', 'tblTempUsageDetail_20' ) start [2025-02-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413893', 'tblTempUsageDetail_20' ) end [2025-02-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413893', 'tblTempVendorCDR_20' ) start [2025-02-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413893', 'tblTempVendorCDR_20' ) end [2025-02-06 08:43:18] Production.INFO: ProcessCDR(1,14413893,1,1,2) [2025-02-06 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413893', 'tblTempUsageDetail_20' ) start [2025-02-06 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413893', 'tblTempUsageDetail_20' ) end [2025-02-06 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:43:21] Production.INFO: ==20882== Releasing lock... [2025-02-06 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:43:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:44:06 [end_date_ymd] => 2025-02-06 08:44:06 [RateCDR] => 1 ) [2025-02-06 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:44:06' and `end` < '2025-02-06 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:44:19] Production.INFO: count ==702 [2025-02-06 08:44:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:44:06 - End Time 2025-02-06 08:44:06 [2025-02-06 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413898', 'tblTempUsageDetail_20' ) start [2025-02-06 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413898', 'tblTempUsageDetail_20' ) end [2025-02-06 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413898', 'tblTempVendorCDR_20' ) start [2025-02-06 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413898', 'tblTempVendorCDR_20' ) end [2025-02-06 08:44:19] Production.INFO: ProcessCDR(1,14413898,1,1,2) [2025-02-06 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413898', 'tblTempUsageDetail_20' ) start [2025-02-06 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413898', 'tblTempUsageDetail_20' ) end [2025-02-06 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:44:22] Production.INFO: ==20965== Releasing lock... [2025-02-06 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:45:05 [end_date_ymd] => 2025-02-06 08:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:45:05' and `end` < '2025-02-06 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-06 08:45:19] Production.INFO: count ==712 [2025-02-06 08:45:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:45:05 - End Time 2025-02-06 08:45:05 [2025-02-06 08:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413903', 'tblTempUsageDetail_20' ) start [2025-02-06 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413903', 'tblTempUsageDetail_20' ) end [2025-02-06 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413903', 'tblTempVendorCDR_20' ) start [2025-02-06 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413903', 'tblTempVendorCDR_20' ) end [2025-02-06 08:45:19] Production.INFO: ProcessCDR(1,14413903,1,1,2) [2025-02-06 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413903', 'tblTempUsageDetail_20' ) start [2025-02-06 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413903', 'tblTempUsageDetail_20' ) end [2025-02-06 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:45:22] Production.INFO: ==21053== Releasing lock... [2025-02-06 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:45:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:46:05 [end_date_ymd] => 2025-02-06 08:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:46:05' and `end` < '2025-02-06 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-06 08:46:20] Production.INFO: count ==716 [2025-02-06 08:46:20] Production.ERROR: pbx CDR StartTime 2025-02-06 05:46:05 - End Time 2025-02-06 08:46:05 [2025-02-06 08:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413908', 'tblTempUsageDetail_20' ) start [2025-02-06 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413908', 'tblTempUsageDetail_20' ) end [2025-02-06 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413908', 'tblTempVendorCDR_20' ) start [2025-02-06 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413908', 'tblTempVendorCDR_20' ) end [2025-02-06 08:46:20] Production.INFO: ProcessCDR(1,14413908,1,1,2) [2025-02-06 08:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413908', 'tblTempUsageDetail_20' ) start [2025-02-06 08:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413908', 'tblTempUsageDetail_20' ) end [2025-02-06 08:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:46:25] Production.INFO: ==21133== Releasing lock... [2025-02-06 08:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:46:25] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:47:05 [end_date_ymd] => 2025-02-06 08:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:47:05' and `end` < '2025-02-06 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-06 08:47:19] Production.INFO: count ==739 [2025-02-06 08:47:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:47:05 - End Time 2025-02-06 08:47:05 [2025-02-06 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413913', 'tblTempUsageDetail_20' ) start [2025-02-06 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413913', 'tblTempUsageDetail_20' ) end [2025-02-06 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413913', 'tblTempVendorCDR_20' ) start [2025-02-06 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413913', 'tblTempVendorCDR_20' ) end [2025-02-06 08:47:19] Production.INFO: ProcessCDR(1,14413913,1,1,2) [2025-02-06 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413913', 'tblTempUsageDetail_20' ) start [2025-02-06 08:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413913', 'tblTempUsageDetail_20' ) end [2025-02-06 08:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:47:25] Production.INFO: ==21212== Releasing lock... [2025-02-06 08:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:47:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:48:05 [end_date_ymd] => 2025-02-06 08:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:48:05' and `end` < '2025-02-06 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-06 08:48:20] Production.INFO: count ==750 [2025-02-06 08:48:20] Production.ERROR: pbx CDR StartTime 2025-02-06 05:48:05 - End Time 2025-02-06 08:48:05 [2025-02-06 08:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413918', 'tblTempUsageDetail_20' ) start [2025-02-06 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413918', 'tblTempUsageDetail_20' ) end [2025-02-06 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413918', 'tblTempVendorCDR_20' ) start [2025-02-06 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413918', 'tblTempVendorCDR_20' ) end [2025-02-06 08:48:21] Production.INFO: ProcessCDR(1,14413918,1,1,2) [2025-02-06 08:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413918', 'tblTempUsageDetail_20' ) start [2025-02-06 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413918', 'tblTempUsageDetail_20' ) end [2025-02-06 08:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:48:24] Production.INFO: ==21294== Releasing lock... [2025-02-06 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:48:24] Production.INFO: 34 MB #Memory Used# [2025-02-06 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:49:05 [end_date_ymd] => 2025-02-06 08:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:49:05' and `end` < '2025-02-06 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-06 08:49:18] Production.INFO: count ==767 [2025-02-06 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:49:05 - End Time 2025-02-06 08:49:05 [2025-02-06 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413923', 'tblTempUsageDetail_20' ) start [2025-02-06 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413923', 'tblTempUsageDetail_20' ) end [2025-02-06 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413923', 'tblTempVendorCDR_20' ) start [2025-02-06 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413923', 'tblTempVendorCDR_20' ) end [2025-02-06 08:49:19] Production.INFO: ProcessCDR(1,14413923,1,1,2) [2025-02-06 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413923', 'tblTempUsageDetail_20' ) start [2025-02-06 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413923', 'tblTempUsageDetail_20' ) end [2025-02-06 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:49:23] Production.INFO: ==21375== Releasing lock... [2025-02-06 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:49:23] Production.INFO: 34 MB #Memory Used# [2025-02-06 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:50:05 [end_date_ymd] => 2025-02-06 08:50:05 [RateCDR] => 1 ) [2025-02-06 08: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-06 05:50:05' and `end` < '2025-02-06 08: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-06 08:50:19] Production.INFO: count ==784 [2025-02-06 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:50:05 - End Time 2025-02-06 08:50:05 [2025-02-06 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413929', 'tblTempUsageDetail_20' ) start [2025-02-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413929', 'tblTempUsageDetail_20' ) end [2025-02-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413929', 'tblTempVendorCDR_20' ) start [2025-02-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413929', 'tblTempVendorCDR_20' ) end [2025-02-06 08:50:19] Production.INFO: ProcessCDR(1,14413929,1,1,2) [2025-02-06 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413929', 'tblTempUsageDetail_20' ) start [2025-02-06 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413929', 'tblTempUsageDetail_20' ) end [2025-02-06 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:50:22] Production.INFO: ==21456== Releasing lock... [2025-02-06 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:51:06 [end_date_ymd] => 2025-02-06 08:51:06 [RateCDR] => 1 ) [2025-02-06 08: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-06 05:51:06' and `end` < '2025-02-06 08: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-06 08:51:19] Production.INFO: count ==846 [2025-02-06 08:51:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:51:06 - End Time 2025-02-06 08:51:06 [2025-02-06 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413934', 'tblTempUsageDetail_20' ) start [2025-02-06 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413934', 'tblTempUsageDetail_20' ) end [2025-02-06 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413934', 'tblTempVendorCDR_20' ) start [2025-02-06 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413934', 'tblTempVendorCDR_20' ) end [2025-02-06 08:51:19] Production.INFO: ProcessCDR(1,14413934,1,1,2) [2025-02-06 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413934', 'tblTempUsageDetail_20' ) start [2025-02-06 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413934', 'tblTempUsageDetail_20' ) end [2025-02-06 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:51:23] Production.INFO: ==21539== Releasing lock... [2025-02-06 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:51:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-06 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:52:05 [end_date_ymd] => 2025-02-06 08:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:52:05' and `end` < '2025-02-06 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-06 08:52:19] Production.INFO: count ==847 [2025-02-06 08:52:20] Production.ERROR: pbx CDR StartTime 2025-02-06 05:52:05 - End Time 2025-02-06 08:52:05 [2025-02-06 08:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413939', 'tblTempUsageDetail_20' ) start [2025-02-06 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413939', 'tblTempUsageDetail_20' ) end [2025-02-06 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413939', 'tblTempVendorCDR_20' ) start [2025-02-06 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413939', 'tblTempVendorCDR_20' ) end [2025-02-06 08:52:20] Production.INFO: ProcessCDR(1,14413939,1,1,2) [2025-02-06 08:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413939', 'tblTempUsageDetail_20' ) start [2025-02-06 08:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413939', 'tblTempUsageDetail_20' ) end [2025-02-06 08:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:52:25] Production.INFO: ==21621== Releasing lock... [2025-02-06 08:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:52:25] Production.INFO: 34.25 MB #Memory Used# [2025-02-06 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:53:05 [end_date_ymd] => 2025-02-06 08:53:05 [RateCDR] => 1 ) [2025-02-06 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:53:05' and `end` < '2025-02-06 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:53:19] Production.INFO: count ==852 [2025-02-06 08:53:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:53:05 - End Time 2025-02-06 08:53:05 [2025-02-06 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413944', 'tblTempUsageDetail_20' ) start [2025-02-06 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413944', 'tblTempUsageDetail_20' ) end [2025-02-06 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413944', 'tblTempVendorCDR_20' ) start [2025-02-06 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413944', 'tblTempVendorCDR_20' ) end [2025-02-06 08:53:20] Production.INFO: ProcessCDR(1,14413944,1,1,2) [2025-02-06 08:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413944', 'tblTempUsageDetail_20' ) start [2025-02-06 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413944', 'tblTempUsageDetail_20' ) end [2025-02-06 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:53:24] Production.INFO: ==21703== Releasing lock... [2025-02-06 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:53:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-06 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:54:04 [end_date_ymd] => 2025-02-06 08:54:04 [RateCDR] => 1 ) [2025-02-06 08: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-06 05:54:04' and `end` < '2025-02-06 08: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-06 08:54:17] Production.INFO: count ==858 [2025-02-06 08:54:17] Production.ERROR: pbx CDR StartTime 2025-02-06 05:54:04 - End Time 2025-02-06 08:54:04 [2025-02-06 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413949', 'tblTempUsageDetail_20' ) start [2025-02-06 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413949', 'tblTempUsageDetail_20' ) end [2025-02-06 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413949', 'tblTempVendorCDR_20' ) start [2025-02-06 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413949', 'tblTempVendorCDR_20' ) end [2025-02-06 08:54:17] Production.INFO: ProcessCDR(1,14413949,1,1,2) [2025-02-06 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413949', 'tblTempUsageDetail_20' ) start [2025-02-06 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413949', 'tblTempUsageDetail_20' ) end [2025-02-06 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:54:21] Production.INFO: ==21781== Releasing lock... [2025-02-06 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:54:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-06 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:55:06 [end_date_ymd] => 2025-02-06 08:55:06 [RateCDR] => 1 ) [2025-02-06 08:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:55:06' and `end` < '2025-02-06 08:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:55:19] Production.INFO: count ==869 [2025-02-06 08:55:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:55:06 - End Time 2025-02-06 08:55:06 [2025-02-06 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413954', 'tblTempUsageDetail_20' ) start [2025-02-06 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413954', 'tblTempUsageDetail_20' ) end [2025-02-06 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413954', 'tblTempVendorCDR_20' ) start [2025-02-06 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413954', 'tblTempVendorCDR_20' ) end [2025-02-06 08:55:19] Production.INFO: ProcessCDR(1,14413954,1,1,2) [2025-02-06 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413954', 'tblTempUsageDetail_20' ) start [2025-02-06 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413954', 'tblTempUsageDetail_20' ) end [2025-02-06 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:55:24] Production.INFO: ==21864== Releasing lock... [2025-02-06 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:55:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:56:05 [end_date_ymd] => 2025-02-06 08:56:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:56:05' and `end` < '2025-02-06 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-06 08:56:18] Production.INFO: count ==891 [2025-02-06 08:56:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:56:05 - End Time 2025-02-06 08:56:05 [2025-02-06 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413959', 'tblTempUsageDetail_20' ) start [2025-02-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413959', 'tblTempUsageDetail_20' ) end [2025-02-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413959', 'tblTempVendorCDR_20' ) start [2025-02-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413959', 'tblTempVendorCDR_20' ) end [2025-02-06 08:56:18] Production.INFO: ProcessCDR(1,14413959,1,1,2) [2025-02-06 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413959', 'tblTempUsageDetail_20' ) start [2025-02-06 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413959', 'tblTempUsageDetail_20' ) end [2025-02-06 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:56:21] Production.INFO: ==21943== Releasing lock... [2025-02-06 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:56:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:57:05 [end_date_ymd] => 2025-02-06 08:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:57:05' and `end` < '2025-02-06 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-06 08:57:18] Production.INFO: count ==903 [2025-02-06 08:57:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:57:05 - End Time 2025-02-06 08:57:05 [2025-02-06 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413964', 'tblTempUsageDetail_20' ) start [2025-02-06 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413964', 'tblTempUsageDetail_20' ) end [2025-02-06 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413964', 'tblTempVendorCDR_20' ) start [2025-02-06 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413964', 'tblTempVendorCDR_20' ) end [2025-02-06 08:57:19] Production.INFO: ProcessCDR(1,14413964,1,1,2) [2025-02-06 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413964', 'tblTempUsageDetail_20' ) start [2025-02-06 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413964', 'tblTempUsageDetail_20' ) end [2025-02-06 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:57:22] Production.INFO: ==22030== Releasing lock... [2025-02-06 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:57:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-06 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:58:05 [end_date_ymd] => 2025-02-06 08:58:05 [RateCDR] => 1 ) [2025-02-06 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 05:58:05' and `end` < '2025-02-06 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 08:58:19] Production.INFO: count ==908 [2025-02-06 08:58:19] Production.ERROR: pbx CDR StartTime 2025-02-06 05:58:05 - End Time 2025-02-06 08:58:05 [2025-02-06 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413969', 'tblTempUsageDetail_20' ) start [2025-02-06 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413969', 'tblTempUsageDetail_20' ) end [2025-02-06 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413969', 'tblTempVendorCDR_20' ) start [2025-02-06 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413969', 'tblTempVendorCDR_20' ) end [2025-02-06 08:58:19] Production.INFO: ProcessCDR(1,14413969,1,1,2) [2025-02-06 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413969', 'tblTempUsageDetail_20' ) start [2025-02-06 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413969', 'tblTempUsageDetail_20' ) end [2025-02-06 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:58:24] Production.INFO: ==22114== Releasing lock... [2025-02-06 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:58:24] Production.INFO: 35 MB #Memory Used# [2025-02-06 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 05:59:05 [end_date_ymd] => 2025-02-06 08:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 05:59:05' and `end` < '2025-02-06 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-06 08:59:18] Production.INFO: count ==913 [2025-02-06 08:59:18] Production.ERROR: pbx CDR StartTime 2025-02-06 05:59:05 - End Time 2025-02-06 08:59:05 [2025-02-06 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413974', 'tblTempUsageDetail_20' ) start [2025-02-06 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413974', 'tblTempUsageDetail_20' ) end [2025-02-06 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413974', 'tblTempVendorCDR_20' ) start [2025-02-06 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413974', 'tblTempVendorCDR_20' ) end [2025-02-06 08:59:18] Production.INFO: ProcessCDR(1,14413974,1,1,2) [2025-02-06 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413974', 'tblTempUsageDetail_20' ) start [2025-02-06 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413974', 'tblTempUsageDetail_20' ) end [2025-02-06 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 08:59:21] Production.INFO: ==22232== Releasing lock... [2025-02-06 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 08:59:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:00:06 [end_date_ymd] => 2025-02-06 09:00:06 [RateCDR] => 1 ) [2025-02-06 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:00:06' and `end` < '2025-02-06 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:00:19] Production.INFO: count ==921 [2025-02-06 09:00:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:00:06 - End Time 2025-02-06 09:00:06 [2025-02-06 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413979', 'tblTempUsageDetail_20' ) start [2025-02-06 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413979', 'tblTempUsageDetail_20' ) end [2025-02-06 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413979', 'tblTempVendorCDR_20' ) start [2025-02-06 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413979', 'tblTempVendorCDR_20' ) end [2025-02-06 09:00:20] Production.INFO: ProcessCDR(1,14413979,1,1,2) [2025-02-06 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413979', 'tblTempUsageDetail_20' ) start [2025-02-06 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413979', 'tblTempUsageDetail_20' ) end [2025-02-06 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:00:23] Production.INFO: ==22316== Releasing lock... [2025-02-06 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:00:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:01:05 [end_date_ymd] => 2025-02-06 09:01:05 [RateCDR] => 1 ) [2025-02-06 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:01:05' and `end` < '2025-02-06 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:01:18] Production.INFO: count ==939 [2025-02-06 09:01:18] Production.ERROR: pbx CDR StartTime 2025-02-06 06:01:05 - End Time 2025-02-06 09:01:05 [2025-02-06 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413985', 'tblTempUsageDetail_20' ) start [2025-02-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413985', 'tblTempUsageDetail_20' ) end [2025-02-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413985', 'tblTempVendorCDR_20' ) start [2025-02-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413985', 'tblTempVendorCDR_20' ) end [2025-02-06 09:01:18] Production.INFO: ProcessCDR(1,14413985,1,1,2) [2025-02-06 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413985', 'tblTempUsageDetail_20' ) start [2025-02-06 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413985', 'tblTempUsageDetail_20' ) end [2025-02-06 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:01:21] Production.INFO: ==22408== Releasing lock... [2025-02-06 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:01:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-06 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:02:06 [end_date_ymd] => 2025-02-06 09:02:06 [RateCDR] => 1 ) [2025-02-06 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:02:06' and `end` < '2025-02-06 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:02:19] Production.INFO: count ==942 [2025-02-06 09:02:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:02:06 - End Time 2025-02-06 09:02:06 [2025-02-06 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413990', 'tblTempUsageDetail_20' ) start [2025-02-06 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413990', 'tblTempUsageDetail_20' ) end [2025-02-06 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413990', 'tblTempVendorCDR_20' ) start [2025-02-06 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413990', 'tblTempVendorCDR_20' ) end [2025-02-06 09:02:19] Production.INFO: ProcessCDR(1,14413990,1,1,2) [2025-02-06 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413990', 'tblTempUsageDetail_20' ) start [2025-02-06 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413990', 'tblTempUsageDetail_20' ) end [2025-02-06 09:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:02:25] Production.INFO: ==22488== Releasing lock... [2025-02-06 09:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:02:25] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:03:06 [end_date_ymd] => 2025-02-06 09:03:06 [RateCDR] => 1 ) [2025-02-06 09: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-06 06:03:06' and `end` < '2025-02-06 09: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-06 09:03:19] Production.INFO: count ==969 [2025-02-06 09:03:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:03:06 - End Time 2025-02-06 09:03:06 [2025-02-06 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413995', 'tblTempUsageDetail_20' ) start [2025-02-06 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14413995', 'tblTempUsageDetail_20' ) end [2025-02-06 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413995', 'tblTempVendorCDR_20' ) start [2025-02-06 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14413995', 'tblTempVendorCDR_20' ) end [2025-02-06 09:03:19] Production.INFO: ProcessCDR(1,14413995,1,1,2) [2025-02-06 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14413995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14413995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14413995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14413995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413995', 'tblTempUsageDetail_20' ) start [2025-02-06 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14413995', 'tblTempUsageDetail_20' ) end [2025-02-06 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:03:24] Production.INFO: ==22570== Releasing lock... [2025-02-06 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:03:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-06 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:04:06 [end_date_ymd] => 2025-02-06 09:04:06 [RateCDR] => 1 ) [2025-02-06 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:04:06' and `end` < '2025-02-06 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:04:20] Production.INFO: count ==969 [2025-02-06 09:04:21] Production.ERROR: pbx CDR StartTime 2025-02-06 06:04:06 - End Time 2025-02-06 09:04:06 [2025-02-06 09:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414000', 'tblTempUsageDetail_20' ) start [2025-02-06 09:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414000', 'tblTempUsageDetail_20' ) end [2025-02-06 09:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414000', 'tblTempVendorCDR_20' ) start [2025-02-06 09:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414000', 'tblTempVendorCDR_20' ) end [2025-02-06 09:04:21] Production.INFO: ProcessCDR(1,14414000,1,1,2) [2025-02-06 09:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414000', 'tblTempUsageDetail_20' ) start [2025-02-06 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414000', 'tblTempUsageDetail_20' ) end [2025-02-06 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:04:24] Production.INFO: ==22657== Releasing lock... [2025-02-06 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:04:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-06 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:05:05 [end_date_ymd] => 2025-02-06 09:05:05 [RateCDR] => 1 ) [2025-02-06 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:05:05' and `end` < '2025-02-06 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:05:18] Production.INFO: count ==969 [2025-02-06 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-06 06:05:05 - End Time 2025-02-06 09:05:05 [2025-02-06 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414005', 'tblTempUsageDetail_20' ) start [2025-02-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414005', 'tblTempUsageDetail_20' ) end [2025-02-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414005', 'tblTempVendorCDR_20' ) start [2025-02-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414005', 'tblTempVendorCDR_20' ) end [2025-02-06 09:05:18] Production.INFO: ProcessCDR(1,14414005,1,1,2) [2025-02-06 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414005', 'tblTempUsageDetail_20' ) start [2025-02-06 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414005', 'tblTempUsageDetail_20' ) end [2025-02-06 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:05:22] Production.INFO: ==22734== Releasing lock... [2025-02-06 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:05:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-06 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:06:06 [end_date_ymd] => 2025-02-06 09:06:06 [RateCDR] => 1 ) [2025-02-06 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-06 06:06:06' and `end` < '2025-02-06 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-06 09:06:21] Production.INFO: count ==981 [2025-02-06 09:06:22] Production.ERROR: pbx CDR StartTime 2025-02-06 06:06:06 - End Time 2025-02-06 09:06:06 [2025-02-06 09:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414010', 'tblTempUsageDetail_20' ) start [2025-02-06 09:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414010', 'tblTempUsageDetail_20' ) end [2025-02-06 09:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414010', 'tblTempVendorCDR_20' ) start [2025-02-06 09:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414010', 'tblTempVendorCDR_20' ) end [2025-02-06 09:06:22] Production.INFO: ProcessCDR(1,14414010,1,1,2) [2025-02-06 09:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414010', 'tblTempUsageDetail_20' ) start [2025-02-06 09:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414010', 'tblTempUsageDetail_20' ) end [2025-02-06 09:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:06:27] Production.INFO: ==22818== Releasing lock... [2025-02-06 09:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:06:27] Production.INFO: 35.75 MB #Memory Used# [2025-02-06 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:07:06 [end_date_ymd] => 2025-02-06 09:07:06 [RateCDR] => 1 ) [2025-02-06 09: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-06 06:07:06' and `end` < '2025-02-06 09: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-06 09:07:19] Production.INFO: count ==995 [2025-02-06 09:07:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:07:06 - End Time 2025-02-06 09:07:06 [2025-02-06 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414015', 'tblTempUsageDetail_20' ) start [2025-02-06 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414015', 'tblTempUsageDetail_20' ) end [2025-02-06 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414015', 'tblTempVendorCDR_20' ) start [2025-02-06 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414015', 'tblTempVendorCDR_20' ) end [2025-02-06 09:07:19] Production.INFO: ProcessCDR(1,14414015,1,1,2) [2025-02-06 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414015', 'tblTempUsageDetail_20' ) start [2025-02-06 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414015', 'tblTempUsageDetail_20' ) end [2025-02-06 09:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:07:25] Production.INFO: ==22899== Releasing lock... [2025-02-06 09:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:07:25] Production.INFO: 35.75 MB #Memory Used# [2025-02-06 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:08:06 [end_date_ymd] => 2025-02-06 09:08:06 [RateCDR] => 1 ) [2025-02-06 09: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-06 06:08:06' and `end` < '2025-02-06 09: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-06 09:08:19] Production.INFO: count ==1006 [2025-02-06 09:08:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:08:06 - End Time 2025-02-06 09:08:06 [2025-02-06 09:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414020', 'tblTempUsageDetail_20' ) start [2025-02-06 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414020', 'tblTempUsageDetail_20' ) end [2025-02-06 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414020', 'tblTempVendorCDR_20' ) start [2025-02-06 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414020', 'tblTempVendorCDR_20' ) end [2025-02-06 09:08:20] Production.INFO: ProcessCDR(1,14414020,1,1,2) [2025-02-06 09:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414020', 'tblTempUsageDetail_20' ) start [2025-02-06 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414020', 'tblTempUsageDetail_20' ) end [2025-02-06 09:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:08:25] Production.INFO: ==22979== Releasing lock... [2025-02-06 09:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:08:25] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:09:05 [end_date_ymd] => 2025-02-06 09:09:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:09:05' and `end` < '2025-02-06 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-06 09:09:19] Production.INFO: count ==1031 [2025-02-06 09:09:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:09:05 - End Time 2025-02-06 09:09:05 [2025-02-06 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414025', 'tblTempUsageDetail_20' ) start [2025-02-06 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414025', 'tblTempUsageDetail_20' ) end [2025-02-06 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414025', 'tblTempVendorCDR_20' ) start [2025-02-06 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414025', 'tblTempVendorCDR_20' ) end [2025-02-06 09:09:19] Production.INFO: ProcessCDR(1,14414025,1,1,2) [2025-02-06 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414025', 'tblTempUsageDetail_20' ) start [2025-02-06 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414025', 'tblTempUsageDetail_20' ) end [2025-02-06 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:09:24] Production.INFO: ==23059== Releasing lock... [2025-02-06 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:09:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-06 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:10:06 [end_date_ymd] => 2025-02-06 09:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 06:10:06' and `end` < '2025-02-06 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-06 09:10:20] Production.INFO: count ==1053 [2025-02-06 09:10:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:10:06 - End Time 2025-02-06 09:10:06 [2025-02-06 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414031', 'tblTempUsageDetail_20' ) start [2025-02-06 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414031', 'tblTempUsageDetail_20' ) end [2025-02-06 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414031', 'tblTempVendorCDR_20' ) start [2025-02-06 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414031', 'tblTempVendorCDR_20' ) end [2025-02-06 09:10:20] Production.INFO: ProcessCDR(1,14414031,1,1,2) [2025-02-06 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414031', 'tblTempUsageDetail_20' ) start [2025-02-06 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414031', 'tblTempUsageDetail_20' ) end [2025-02-06 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:10:25] Production.INFO: ==23143== Releasing lock... [2025-02-06 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:10:25] Production.INFO: 36.5 MB #Memory Used# [2025-02-06 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:11:05 [end_date_ymd] => 2025-02-06 09:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:11:05' and `end` < '2025-02-06 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-06 09:11:18] Production.INFO: count ==1105 [2025-02-06 09:11:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:11:05 - End Time 2025-02-06 09:11:05 [2025-02-06 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414036', 'tblTempUsageDetail_20' ) start [2025-02-06 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414036', 'tblTempUsageDetail_20' ) end [2025-02-06 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414036', 'tblTempVendorCDR_20' ) start [2025-02-06 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414036', 'tblTempVendorCDR_20' ) end [2025-02-06 09:11:19] Production.INFO: ProcessCDR(1,14414036,1,1,2) [2025-02-06 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414036', 'tblTempUsageDetail_20' ) start [2025-02-06 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414036', 'tblTempUsageDetail_20' ) end [2025-02-06 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:11:23] Production.INFO: ==23227== Releasing lock... [2025-02-06 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:11:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-06 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:12:06 [end_date_ymd] => 2025-02-06 09:12:06 [RateCDR] => 1 ) [2025-02-06 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-06 06:12:06' and `end` < '2025-02-06 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-06 09:12:19] Production.INFO: count ==1125 [2025-02-06 09:12:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:12:06 - End Time 2025-02-06 09:12:06 [2025-02-06 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414041', 'tblTempUsageDetail_20' ) start [2025-02-06 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414041', 'tblTempUsageDetail_20' ) end [2025-02-06 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414041', 'tblTempVendorCDR_20' ) start [2025-02-06 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414041', 'tblTempVendorCDR_20' ) end [2025-02-06 09:12:19] Production.INFO: ProcessCDR(1,14414041,1,1,2) [2025-02-06 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414041', 'tblTempUsageDetail_20' ) start [2025-02-06 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414041', 'tblTempUsageDetail_20' ) end [2025-02-06 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:12:25] Production.INFO: ==23309== Releasing lock... [2025-02-06 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:12:25] Production.INFO: 37 MB #Memory Used# [2025-02-06 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:13:05 [end_date_ymd] => 2025-02-06 09:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:13:05' and `end` < '2025-02-06 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-06 09:13:19] Production.INFO: count ==1142 [2025-02-06 09:13:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:13:05 - End Time 2025-02-06 09:13:05 [2025-02-06 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414046', 'tblTempUsageDetail_20' ) start [2025-02-06 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414046', 'tblTempUsageDetail_20' ) end [2025-02-06 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414046', 'tblTempVendorCDR_20' ) start [2025-02-06 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414046', 'tblTempVendorCDR_20' ) end [2025-02-06 09:13:19] Production.INFO: ProcessCDR(1,14414046,1,1,2) [2025-02-06 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414046', 'tblTempUsageDetail_20' ) start [2025-02-06 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414046', 'tblTempUsageDetail_20' ) end [2025-02-06 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:13:24] Production.INFO: ==23383== Releasing lock... [2025-02-06 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:13:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:14:06 [end_date_ymd] => 2025-02-06 09:14:06 [RateCDR] => 1 ) [2025-02-06 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-06 06:14:06' and `end` < '2025-02-06 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-06 09:14:20] Production.INFO: count ==1148 [2025-02-06 09:14:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:14:06 - End Time 2025-02-06 09:14:06 [2025-02-06 09:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414051', 'tblTempUsageDetail_20' ) start [2025-02-06 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414051', 'tblTempUsageDetail_20' ) end [2025-02-06 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414051', 'tblTempVendorCDR_20' ) start [2025-02-06 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414051', 'tblTempVendorCDR_20' ) end [2025-02-06 09:14:20] Production.INFO: ProcessCDR(1,14414051,1,1,2) [2025-02-06 09:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414051', 'tblTempUsageDetail_20' ) start [2025-02-06 09:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414051', 'tblTempUsageDetail_20' ) end [2025-02-06 09:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:14:26] Production.INFO: ==23499== Releasing lock... [2025-02-06 09:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:14:26] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:15:05 [end_date_ymd] => 2025-02-06 09:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:15:05' and `end` < '2025-02-06 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-06 09:15:19] Production.INFO: count ==1149 [2025-02-06 09:15:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:15:05 - End Time 2025-02-06 09:15:05 [2025-02-06 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414056', 'tblTempUsageDetail_20' ) start [2025-02-06 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414056', 'tblTempUsageDetail_20' ) end [2025-02-06 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414056', 'tblTempVendorCDR_20' ) start [2025-02-06 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414056', 'tblTempVendorCDR_20' ) end [2025-02-06 09:15:19] Production.INFO: ProcessCDR(1,14414056,1,1,2) [2025-02-06 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414056', 'tblTempUsageDetail_20' ) start [2025-02-06 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414056', 'tblTempUsageDetail_20' ) end [2025-02-06 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:15:24] Production.INFO: ==23576== Releasing lock... [2025-02-06 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:15:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:16:06 [end_date_ymd] => 2025-02-06 09:16:06 [RateCDR] => 1 ) [2025-02-06 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-06 06:16:06' and `end` < '2025-02-06 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-06 09:16:19] Production.INFO: count ==1159 [2025-02-06 09:16:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:16:06 - End Time 2025-02-06 09:16:06 [2025-02-06 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414061', 'tblTempUsageDetail_20' ) start [2025-02-06 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414061', 'tblTempUsageDetail_20' ) end [2025-02-06 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414061', 'tblTempVendorCDR_20' ) start [2025-02-06 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414061', 'tblTempVendorCDR_20' ) end [2025-02-06 09:16:19] Production.INFO: ProcessCDR(1,14414061,1,1,2) [2025-02-06 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414061', 'tblTempUsageDetail_20' ) start [2025-02-06 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414061', 'tblTempUsageDetail_20' ) end [2025-02-06 09:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:16:25] Production.INFO: ==23650== Releasing lock... [2025-02-06 09:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:16:25] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:17:05 [end_date_ymd] => 2025-02-06 09:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:17:05' and `end` < '2025-02-06 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-06 09:17:18] Production.INFO: count ==1179 [2025-02-06 09:17:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:17:05 - End Time 2025-02-06 09:17:05 [2025-02-06 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414066', 'tblTempUsageDetail_20' ) start [2025-02-06 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414066', 'tblTempUsageDetail_20' ) end [2025-02-06 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414066', 'tblTempVendorCDR_20' ) start [2025-02-06 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414066', 'tblTempVendorCDR_20' ) end [2025-02-06 09:17:19] Production.INFO: ProcessCDR(1,14414066,1,1,2) [2025-02-06 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414066', 'tblTempUsageDetail_20' ) start [2025-02-06 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414066', 'tblTempUsageDetail_20' ) end [2025-02-06 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:17:24] Production.INFO: ==23728== Releasing lock... [2025-02-06 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:17:24] Production.INFO: 37 MB #Memory Used# [2025-02-06 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:18:06 [end_date_ymd] => 2025-02-06 09:18:06 [RateCDR] => 1 ) [2025-02-06 09:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:18:06' and `end` < '2025-02-06 09:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:18:19] Production.INFO: count ==1203 [2025-02-06 09:18:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:18:06 - End Time 2025-02-06 09:18:06 [2025-02-06 09:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414071', 'tblTempUsageDetail_20' ) start [2025-02-06 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414071', 'tblTempUsageDetail_20' ) end [2025-02-06 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414071', 'tblTempVendorCDR_20' ) start [2025-02-06 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414071', 'tblTempVendorCDR_20' ) end [2025-02-06 09:18:20] Production.INFO: ProcessCDR(1,14414071,1,1,2) [2025-02-06 09:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414071', 'tblTempUsageDetail_20' ) start [2025-02-06 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414071', 'tblTempUsageDetail_20' ) end [2025-02-06 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:18:25] Production.INFO: ==23804== Releasing lock... [2025-02-06 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:18:25] Production.INFO: 37 MB #Memory Used# [2025-02-06 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:19:05 [end_date_ymd] => 2025-02-06 09:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:19:05' and `end` < '2025-02-06 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-06 09:19:19] Production.INFO: count ==1215 [2025-02-06 09:19:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:19:05 - End Time 2025-02-06 09:19:05 [2025-02-06 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414076', 'tblTempUsageDetail_20' ) start [2025-02-06 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414076', 'tblTempUsageDetail_20' ) end [2025-02-06 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414076', 'tblTempVendorCDR_20' ) start [2025-02-06 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414076', 'tblTempVendorCDR_20' ) end [2025-02-06 09:19:19] Production.INFO: ProcessCDR(1,14414076,1,1,2) [2025-02-06 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414076', 'tblTempUsageDetail_20' ) start [2025-02-06 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414076', 'tblTempUsageDetail_20' ) end [2025-02-06 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:19:23] Production.INFO: ==23880== Releasing lock... [2025-02-06 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:19:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-06 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:20:07 [end_date_ymd] => 2025-02-06 09:20:07 [RateCDR] => 1 ) [2025-02-06 09: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-06 06:20:07' and `end` < '2025-02-06 09: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-06 09:20:22] Production.INFO: count ==1240 [2025-02-06 09:20:23] Production.ERROR: pbx CDR StartTime 2025-02-06 06:20:07 - End Time 2025-02-06 09:20:07 [2025-02-06 09:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414082', 'tblTempUsageDetail_20' ) start [2025-02-06 09:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414082', 'tblTempUsageDetail_20' ) end [2025-02-06 09:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414082', 'tblTempVendorCDR_20' ) start [2025-02-06 09:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414082', 'tblTempVendorCDR_20' ) end [2025-02-06 09:20:23] Production.INFO: ProcessCDR(1,14414082,1,1,2) [2025-02-06 09:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414082', 'tblTempUsageDetail_20' ) start [2025-02-06 09:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414082', 'tblTempUsageDetail_20' ) end [2025-02-06 09:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:20:28] Production.INFO: ==23958== Releasing lock... [2025-02-06 09:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:20:28] Production.INFO: 37 MB #Memory Used# [2025-02-06 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:21:05 [end_date_ymd] => 2025-02-06 09:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:21:05' and `end` < '2025-02-06 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-06 09:21:24] Production.INFO: count ==1295 [2025-02-06 09:21:25] Production.ERROR: pbx CDR StartTime 2025-02-06 06:21:05 - End Time 2025-02-06 09:21:05 [2025-02-06 09:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414087', 'tblTempUsageDetail_20' ) start [2025-02-06 09:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414087', 'tblTempUsageDetail_20' ) end [2025-02-06 09:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414087', 'tblTempVendorCDR_20' ) start [2025-02-06 09:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414087', 'tblTempVendorCDR_20' ) end [2025-02-06 09:21:25] Production.INFO: ProcessCDR(1,14414087,1,1,2) [2025-02-06 09:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414087', 'tblTempUsageDetail_20' ) start [2025-02-06 09:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414087', 'tblTempUsageDetail_20' ) end [2025-02-06 09:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:21:30] Production.INFO: ==24034== Releasing lock... [2025-02-06 09:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:21:30] Production.INFO: 37.5 MB #Memory Used# [2025-02-06 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:22:05 [end_date_ymd] => 2025-02-06 09:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:22:05' and `end` < '2025-02-06 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-06 09:22:18] Production.INFO: count ==1307 [2025-02-06 09:22:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:22:05 - End Time 2025-02-06 09:22:05 [2025-02-06 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414092', 'tblTempUsageDetail_20' ) start [2025-02-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414092', 'tblTempUsageDetail_20' ) end [2025-02-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414092', 'tblTempVendorCDR_20' ) start [2025-02-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414092', 'tblTempVendorCDR_20' ) end [2025-02-06 09:22:19] Production.INFO: ProcessCDR(1,14414092,1,1,2) [2025-02-06 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414092', 'tblTempUsageDetail_20' ) start [2025-02-06 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414092', 'tblTempUsageDetail_20' ) end [2025-02-06 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:22:24] Production.INFO: ==24105== Releasing lock... [2025-02-06 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:22:24] Production.INFO: 38 MB #Memory Used# [2025-02-06 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:23:05 [end_date_ymd] => 2025-02-06 09:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:23:05' and `end` < '2025-02-06 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-06 09:23:21] Production.INFO: count ==1310 [2025-02-06 09:23:21] Production.ERROR: pbx CDR StartTime 2025-02-06 06:23:05 - End Time 2025-02-06 09:23:05 [2025-02-06 09:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414097', 'tblTempUsageDetail_20' ) start [2025-02-06 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414097', 'tblTempUsageDetail_20' ) end [2025-02-06 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414097', 'tblTempVendorCDR_20' ) start [2025-02-06 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414097', 'tblTempVendorCDR_20' ) end [2025-02-06 09:23:21] Production.INFO: ProcessCDR(1,14414097,1,1,2) [2025-02-06 09:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414097', 'tblTempUsageDetail_20' ) start [2025-02-06 09:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414097', 'tblTempUsageDetail_20' ) end [2025-02-06 09:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:23:27] Production.INFO: ==24176== Releasing lock... [2025-02-06 09:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:23:27] Production.INFO: 37.75 MB #Memory Used# [2025-02-06 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:24:05 [end_date_ymd] => 2025-02-06 09:24:05 [RateCDR] => 1 ) [2025-02-06 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:24:05' and `end` < '2025-02-06 09: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-06 09:24:19] Production.INFO: count ==1317 [2025-02-06 09:24:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:24:05 - End Time 2025-02-06 09:24:05 [2025-02-06 09:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414102', 'tblTempUsageDetail_20' ) start [2025-02-06 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414102', 'tblTempUsageDetail_20' ) end [2025-02-06 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414102', 'tblTempVendorCDR_20' ) start [2025-02-06 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414102', 'tblTempVendorCDR_20' ) end [2025-02-06 09:24:20] Production.INFO: ProcessCDR(1,14414102,1,1,2) [2025-02-06 09:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414102', 'tblTempUsageDetail_20' ) start [2025-02-06 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414102', 'tblTempUsageDetail_20' ) end [2025-02-06 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:24:23] Production.INFO: ==24254== Releasing lock... [2025-02-06 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:24:23] Production.INFO: 38 MB #Memory Used# [2025-02-06 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:25:06 [end_date_ymd] => 2025-02-06 09:25:06 [RateCDR] => 1 ) [2025-02-06 09: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-06 06:25:06' and `end` < '2025-02-06 09: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-06 09:25:19] Production.INFO: count ==1334 [2025-02-06 09:25:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:25:06 - End Time 2025-02-06 09:25:06 [2025-02-06 09:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414107', 'tblTempUsageDetail_20' ) start [2025-02-06 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414107', 'tblTempUsageDetail_20' ) end [2025-02-06 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414107', 'tblTempVendorCDR_20' ) start [2025-02-06 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414107', 'tblTempVendorCDR_20' ) end [2025-02-06 09:25:20] Production.INFO: ProcessCDR(1,14414107,1,1,2) [2025-02-06 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414107', 'tblTempUsageDetail_20' ) start [2025-02-06 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414107', 'tblTempUsageDetail_20' ) end [2025-02-06 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:25:25] Production.INFO: ==24324== Releasing lock... [2025-02-06 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:25:25] Production.INFO: 38 MB #Memory Used# [2025-02-06 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:26:06 [end_date_ymd] => 2025-02-06 09:26:06 [RateCDR] => 1 ) [2025-02-06 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:26:06' and `end` < '2025-02-06 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:26:19] Production.INFO: count ==1349 [2025-02-06 09:26:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:26:06 - End Time 2025-02-06 09:26:06 [2025-02-06 09:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414112', 'tblTempUsageDetail_20' ) start [2025-02-06 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414112', 'tblTempUsageDetail_20' ) end [2025-02-06 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414112', 'tblTempVendorCDR_20' ) start [2025-02-06 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414112', 'tblTempVendorCDR_20' ) end [2025-02-06 09:26:20] Production.INFO: ProcessCDR(1,14414112,1,1,2) [2025-02-06 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414112', 'tblTempUsageDetail_20' ) start [2025-02-06 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414112', 'tblTempUsageDetail_20' ) end [2025-02-06 09:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:26:25] Production.INFO: ==24397== Releasing lock... [2025-02-06 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:26:25] Production.INFO: 38.25 MB #Memory Used# [2025-02-06 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:27:05 [end_date_ymd] => 2025-02-06 09:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:27:05' and `end` < '2025-02-06 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-06 09:27:19] Production.INFO: count ==1368 [2025-02-06 09:27:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:27:05 - End Time 2025-02-06 09:27:05 [2025-02-06 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414117', 'tblTempUsageDetail_20' ) start [2025-02-06 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414117', 'tblTempUsageDetail_20' ) end [2025-02-06 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414117', 'tblTempVendorCDR_20' ) start [2025-02-06 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414117', 'tblTempVendorCDR_20' ) end [2025-02-06 09:27:19] Production.INFO: ProcessCDR(1,14414117,1,1,2) [2025-02-06 09:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414117', 'tblTempUsageDetail_20' ) start [2025-02-06 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414117', 'tblTempUsageDetail_20' ) end [2025-02-06 09:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:27:25] Production.INFO: ==24466== Releasing lock... [2025-02-06 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:27:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-06 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:28:06 [end_date_ymd] => 2025-02-06 09:28:06 [RateCDR] => 1 ) [2025-02-06 09:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:28:06' and `end` < '2025-02-06 09:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:28:20] Production.INFO: count ==1389 [2025-02-06 09:28:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:28:06 - End Time 2025-02-06 09:28:06 [2025-02-06 09:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414122', 'tblTempUsageDetail_20' ) start [2025-02-06 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414122', 'tblTempUsageDetail_20' ) end [2025-02-06 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414122', 'tblTempVendorCDR_20' ) start [2025-02-06 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414122', 'tblTempVendorCDR_20' ) end [2025-02-06 09:28:20] Production.INFO: ProcessCDR(1,14414122,1,1,2) [2025-02-06 09:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414122', 'tblTempUsageDetail_20' ) start [2025-02-06 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414122', 'tblTempUsageDetail_20' ) end [2025-02-06 09:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:28:26] Production.INFO: ==24537== Releasing lock... [2025-02-06 09:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:28:26] Production.INFO: 38.5 MB #Memory Used# [2025-02-06 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:29:05 [end_date_ymd] => 2025-02-06 09:29:05 [RateCDR] => 1 ) [2025-02-06 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:29:05' and `end` < '2025-02-06 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:29:19] Production.INFO: count ==1416 [2025-02-06 09:29:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:29:05 - End Time 2025-02-06 09:29:05 [2025-02-06 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414127', 'tblTempUsageDetail_20' ) start [2025-02-06 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414127', 'tblTempUsageDetail_20' ) end [2025-02-06 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414127', 'tblTempVendorCDR_20' ) start [2025-02-06 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414127', 'tblTempVendorCDR_20' ) end [2025-02-06 09:29:19] Production.INFO: ProcessCDR(1,14414127,1,1,2) [2025-02-06 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414127', 'tblTempUsageDetail_20' ) start [2025-02-06 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414127', 'tblTempUsageDetail_20' ) end [2025-02-06 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:29:24] Production.INFO: ==24644== Releasing lock... [2025-02-06 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:29:24] Production.INFO: 39 MB #Memory Used# [2025-02-06 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:30:06 [end_date_ymd] => 2025-02-06 09:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 06:30:06' and `end` < '2025-02-06 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-06 09:30:21] Production.INFO: count ==1427 [2025-02-06 09:30:22] Production.ERROR: pbx CDR StartTime 2025-02-06 06:30:06 - End Time 2025-02-06 09:30:06 [2025-02-06 09:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414132', 'tblTempUsageDetail_20' ) start [2025-02-06 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414132', 'tblTempUsageDetail_20' ) end [2025-02-06 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414132', 'tblTempVendorCDR_20' ) start [2025-02-06 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414132', 'tblTempVendorCDR_20' ) end [2025-02-06 09:30:22] Production.INFO: ProcessCDR(1,14414132,1,1,2) [2025-02-06 09:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414132', 'tblTempUsageDetail_20' ) start [2025-02-06 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414132', 'tblTempUsageDetail_20' ) end [2025-02-06 09:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:30:27] Production.INFO: ==24723== Releasing lock... [2025-02-06 09:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:30:27] Production.INFO: 39 MB #Memory Used# [2025-02-06 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:31:05 [end_date_ymd] => 2025-02-06 09:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:31:05' and `end` < '2025-02-06 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-06 09:31:21] Production.INFO: count ==1486 [2025-02-06 09:31:22] Production.ERROR: pbx CDR StartTime 2025-02-06 06:31:05 - End Time 2025-02-06 09:31:05 [2025-02-06 09:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414138', 'tblTempUsageDetail_20' ) start [2025-02-06 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414138', 'tblTempUsageDetail_20' ) end [2025-02-06 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414138', 'tblTempVendorCDR_20' ) start [2025-02-06 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414138', 'tblTempVendorCDR_20' ) end [2025-02-06 09:31:22] Production.INFO: ProcessCDR(1,14414138,1,1,2) [2025-02-06 09:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414138', 'tblTempUsageDetail_20' ) start [2025-02-06 09:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414138', 'tblTempUsageDetail_20' ) end [2025-02-06 09:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:31:28] Production.INFO: ==24796== Releasing lock... [2025-02-06 09:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:31:28] Production.INFO: 39.25 MB #Memory Used# [2025-02-06 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:32:06 [end_date_ymd] => 2025-02-06 09:32:06 [RateCDR] => 1 ) [2025-02-06 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:32:06' and `end` < '2025-02-06 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:32:19] Production.INFO: count ==1500 [2025-02-06 09:32:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:32:06 - End Time 2025-02-06 09:32:06 [2025-02-06 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414143', 'tblTempUsageDetail_20' ) start [2025-02-06 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414143', 'tblTempUsageDetail_20' ) end [2025-02-06 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414143', 'tblTempVendorCDR_20' ) start [2025-02-06 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414143', 'tblTempVendorCDR_20' ) end [2025-02-06 09:32:20] Production.INFO: ProcessCDR(1,14414143,1,1,2) [2025-02-06 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414143', 'tblTempUsageDetail_20' ) start [2025-02-06 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414143', 'tblTempUsageDetail_20' ) end [2025-02-06 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:32:25] Production.INFO: ==24866== Releasing lock... [2025-02-06 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:32:25] Production.INFO: 39.25 MB #Memory Used# [2025-02-06 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:33:06 [end_date_ymd] => 2025-02-06 09:33:06 [RateCDR] => 1 ) [2025-02-06 09: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-06 06:33:06' and `end` < '2025-02-06 09: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-06 09:33:20] Production.INFO: count ==1522 [2025-02-06 09:33:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:33:06 - End Time 2025-02-06 09:33:06 [2025-02-06 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414148', 'tblTempUsageDetail_20' ) start [2025-02-06 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414148', 'tblTempUsageDetail_20' ) end [2025-02-06 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414148', 'tblTempVendorCDR_20' ) start [2025-02-06 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414148', 'tblTempVendorCDR_20' ) end [2025-02-06 09:33:20] Production.INFO: ProcessCDR(1,14414148,1,1,2) [2025-02-06 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414148', 'tblTempUsageDetail_20' ) start [2025-02-06 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414148', 'tblTempUsageDetail_20' ) end [2025-02-06 09:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:33:26] Production.INFO: ==24936== Releasing lock... [2025-02-06 09:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:33:26] Production.INFO: 39.25 MB #Memory Used# [2025-02-06 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:34:06 [end_date_ymd] => 2025-02-06 09:34:06 [RateCDR] => 1 ) [2025-02-06 09: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-06 06:34:06' and `end` < '2025-02-06 09: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-06 09:34:20] Production.INFO: count ==1536 [2025-02-06 09:34:21] Production.ERROR: pbx CDR StartTime 2025-02-06 06:34:06 - End Time 2025-02-06 09:34:06 [2025-02-06 09:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414153', 'tblTempUsageDetail_20' ) start [2025-02-06 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414153', 'tblTempUsageDetail_20' ) end [2025-02-06 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414153', 'tblTempVendorCDR_20' ) start [2025-02-06 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414153', 'tblTempVendorCDR_20' ) end [2025-02-06 09:34:21] Production.INFO: ProcessCDR(1,14414153,1,1,2) [2025-02-06 09:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414153', 'tblTempUsageDetail_20' ) start [2025-02-06 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414153', 'tblTempUsageDetail_20' ) end [2025-02-06 09:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:34:26] Production.INFO: ==25010== Releasing lock... [2025-02-06 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:34:26] Production.INFO: 39.5 MB #Memory Used# [2025-02-06 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:35:05 [end_date_ymd] => 2025-02-06 09:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:35:05' and `end` < '2025-02-06 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-06 09:35:20] Production.INFO: count ==1555 [2025-02-06 09:35:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:35:05 - End Time 2025-02-06 09:35:05 [2025-02-06 09:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414155', 'tblTempUsageDetail_20' ) start [2025-02-06 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414155', 'tblTempUsageDetail_20' ) end [2025-02-06 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414155', 'tblTempVendorCDR_20' ) start [2025-02-06 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414155', 'tblTempVendorCDR_20' ) end [2025-02-06 09:35:20] Production.INFO: ProcessCDR(1,14414155,1,1,2) [2025-02-06 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414155', 'tblTempUsageDetail_20' ) start [2025-02-06 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414155', 'tblTempUsageDetail_20' ) end [2025-02-06 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:35:25] Production.INFO: ==25080== Releasing lock... [2025-02-06 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:35:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-06 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:36:05 [end_date_ymd] => 2025-02-06 09:36:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:36:05' and `end` < '2025-02-06 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-06 09:36:18] Production.INFO: count ==1571 [2025-02-06 09:36:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:36:05 - End Time 2025-02-06 09:36:05 [2025-02-06 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414163', 'tblTempUsageDetail_20' ) start [2025-02-06 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414163', 'tblTempUsageDetail_20' ) end [2025-02-06 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414163', 'tblTempVendorCDR_20' ) start [2025-02-06 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414163', 'tblTempVendorCDR_20' ) end [2025-02-06 09:36:19] Production.INFO: ProcessCDR(1,14414163,1,1,2) [2025-02-06 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414163', 'tblTempUsageDetail_20' ) start [2025-02-06 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414163', 'tblTempUsageDetail_20' ) end [2025-02-06 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:36:24] Production.INFO: ==25151== Releasing lock... [2025-02-06 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:36:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-06 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:37:06 [end_date_ymd] => 2025-02-06 09:37:06 [RateCDR] => 1 ) [2025-02-06 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-06 06:37:06' and `end` < '2025-02-06 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-06 09:37:19] Production.INFO: count ==1583 [2025-02-06 09:37:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:37:06 - End Time 2025-02-06 09:37:06 [2025-02-06 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414168', 'tblTempUsageDetail_20' ) start [2025-02-06 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414168', 'tblTempUsageDetail_20' ) end [2025-02-06 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414168', 'tblTempVendorCDR_20' ) start [2025-02-06 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414168', 'tblTempVendorCDR_20' ) end [2025-02-06 09:37:20] Production.INFO: ProcessCDR(1,14414168,1,1,2) [2025-02-06 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414168', 'tblTempUsageDetail_20' ) start [2025-02-06 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414168', 'tblTempUsageDetail_20' ) end [2025-02-06 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:37:25] Production.INFO: ==25222== Releasing lock... [2025-02-06 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:37:25] Production.INFO: 40 MB #Memory Used# [2025-02-06 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:38:06 [end_date_ymd] => 2025-02-06 09:38:06 [RateCDR] => 1 ) [2025-02-06 09: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-06 06:38:06' and `end` < '2025-02-06 09: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-06 09:38:24] Production.INFO: count ==1601 [2025-02-06 09:38:24] Production.ERROR: pbx CDR StartTime 2025-02-06 06:38:06 - End Time 2025-02-06 09:38:06 [2025-02-06 09:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414173', 'tblTempUsageDetail_20' ) start [2025-02-06 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414173', 'tblTempUsageDetail_20' ) end [2025-02-06 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414173', 'tblTempVendorCDR_20' ) start [2025-02-06 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414173', 'tblTempVendorCDR_20' ) end [2025-02-06 09:38:24] Production.INFO: ProcessCDR(1,14414173,1,1,2) [2025-02-06 09:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414173', 'tblTempUsageDetail_20' ) start [2025-02-06 09:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414173', 'tblTempUsageDetail_20' ) end [2025-02-06 09:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:38:30] Production.INFO: ==25293== Releasing lock... [2025-02-06 09:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:38:30] Production.INFO: 40 MB #Memory Used# [2025-02-06 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:39:05 [end_date_ymd] => 2025-02-06 09:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:39:05' and `end` < '2025-02-06 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-06 09:39:18] Production.INFO: count ==1618 [2025-02-06 09:39:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:39:05 - End Time 2025-02-06 09:39:05 [2025-02-06 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414178', 'tblTempUsageDetail_20' ) start [2025-02-06 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414178', 'tblTempUsageDetail_20' ) end [2025-02-06 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414178', 'tblTempVendorCDR_20' ) start [2025-02-06 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414178', 'tblTempVendorCDR_20' ) end [2025-02-06 09:39:19] Production.INFO: ProcessCDR(1,14414178,1,1,2) [2025-02-06 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414178', 'tblTempUsageDetail_20' ) start [2025-02-06 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414178', 'tblTempUsageDetail_20' ) end [2025-02-06 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:39:24] Production.INFO: ==25365== Releasing lock... [2025-02-06 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:39:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-06 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:40:07 [end_date_ymd] => 2025-02-06 09:40:07 [RateCDR] => 1 ) [2025-02-06 09: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-06 06:40:07' and `end` < '2025-02-06 09: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-06 09:40:22] Production.INFO: count ==1628 [2025-02-06 09:40:23] Production.ERROR: pbx CDR StartTime 2025-02-06 06:40:07 - End Time 2025-02-06 09:40:07 [2025-02-06 09:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414184', 'tblTempUsageDetail_20' ) start [2025-02-06 09:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414184', 'tblTempUsageDetail_20' ) end [2025-02-06 09:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414184', 'tblTempVendorCDR_20' ) start [2025-02-06 09:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414184', 'tblTempVendorCDR_20' ) end [2025-02-06 09:40:23] Production.INFO: ProcessCDR(1,14414184,1,1,2) [2025-02-06 09:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414184', 'tblTempUsageDetail_20' ) start [2025-02-06 09:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414184', 'tblTempUsageDetail_20' ) end [2025-02-06 09:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:40:28] Production.INFO: ==25444== Releasing lock... [2025-02-06 09:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:40:28] Production.INFO: 40.25 MB #Memory Used# [2025-02-06 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:41:05 [end_date_ymd] => 2025-02-06 09:41:05 [RateCDR] => 1 ) [2025-02-06 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:41:05' and `end` < '2025-02-06 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:41:18] Production.INFO: count ==1726 [2025-02-06 09:41:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:41:05 - End Time 2025-02-06 09:41:05 [2025-02-06 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414189', 'tblTempUsageDetail_20' ) start [2025-02-06 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414189', 'tblTempUsageDetail_20' ) end [2025-02-06 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414189', 'tblTempVendorCDR_20' ) start [2025-02-06 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414189', 'tblTempVendorCDR_20' ) end [2025-02-06 09:41:19] Production.INFO: ProcessCDR(1,14414189,1,1,2) [2025-02-06 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414189', 'tblTempUsageDetail_20' ) start [2025-02-06 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414189', 'tblTempUsageDetail_20' ) end [2025-02-06 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:41:24] Production.INFO: ==25517== Releasing lock... [2025-02-06 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:41:24] Production.INFO: 41 MB #Memory Used# [2025-02-06 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:42:05 [end_date_ymd] => 2025-02-06 09:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:42:05' and `end` < '2025-02-06 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-06 09:42:18] Production.INFO: count ==1741 [2025-02-06 09:42:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:42:05 - End Time 2025-02-06 09:42:05 [2025-02-06 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414194', 'tblTempUsageDetail_20' ) start [2025-02-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414194', 'tblTempUsageDetail_20' ) end [2025-02-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414194', 'tblTempVendorCDR_20' ) start [2025-02-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414194', 'tblTempVendorCDR_20' ) end [2025-02-06 09:42:19] Production.INFO: ProcessCDR(1,14414194,1,1,2) [2025-02-06 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414194', 'tblTempUsageDetail_20' ) start [2025-02-06 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414194', 'tblTempUsageDetail_20' ) end [2025-02-06 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:42:24] Production.INFO: ==25586== Releasing lock... [2025-02-06 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:42:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-06 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:43:05 [end_date_ymd] => 2025-02-06 09:43:05 [RateCDR] => 1 ) [2025-02-06 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:43:05' and `end` < '2025-02-06 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:43:18] Production.INFO: count ==1756 [2025-02-06 09:43:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:43:05 - End Time 2025-02-06 09:43:05 [2025-02-06 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414199', 'tblTempUsageDetail_20' ) start [2025-02-06 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414199', 'tblTempUsageDetail_20' ) end [2025-02-06 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414199', 'tblTempVendorCDR_20' ) start [2025-02-06 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414199', 'tblTempVendorCDR_20' ) end [2025-02-06 09:43:19] Production.INFO: ProcessCDR(1,14414199,1,1,2) [2025-02-06 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414199', 'tblTempUsageDetail_20' ) start [2025-02-06 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414199', 'tblTempUsageDetail_20' ) end [2025-02-06 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:43:24] Production.INFO: ==25661== Releasing lock... [2025-02-06 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:43:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-06 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:44:05 [end_date_ymd] => 2025-02-06 09:44:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:44:05' and `end` < '2025-02-06 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-06 09:44:19] Production.INFO: count ==1761 [2025-02-06 09:44:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:44:05 - End Time 2025-02-06 09:44:05 [2025-02-06 09:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414204', 'tblTempUsageDetail_20' ) start [2025-02-06 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414204', 'tblTempUsageDetail_20' ) end [2025-02-06 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414204', 'tblTempVendorCDR_20' ) start [2025-02-06 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414204', 'tblTempVendorCDR_20' ) end [2025-02-06 09:44:20] Production.INFO: ProcessCDR(1,14414204,1,1,2) [2025-02-06 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414204', 'tblTempUsageDetail_20' ) start [2025-02-06 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414204', 'tblTempUsageDetail_20' ) end [2025-02-06 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:44:24] Production.INFO: ==25732== Releasing lock... [2025-02-06 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:44:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-06 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:45:06 [end_date_ymd] => 2025-02-06 09:45:06 [RateCDR] => 1 ) [2025-02-06 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-06 06:45:06' and `end` < '2025-02-06 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-06 09:45:20] Production.INFO: count ==1763 [2025-02-06 09:45:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:45:06 - End Time 2025-02-06 09:45:06 [2025-02-06 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414209', 'tblTempUsageDetail_20' ) start [2025-02-06 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414209', 'tblTempUsageDetail_20' ) end [2025-02-06 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414209', 'tblTempVendorCDR_20' ) start [2025-02-06 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414209', 'tblTempVendorCDR_20' ) end [2025-02-06 09:45:20] Production.INFO: ProcessCDR(1,14414209,1,1,2) [2025-02-06 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414209', 'tblTempUsageDetail_20' ) start [2025-02-06 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414209', 'tblTempUsageDetail_20' ) end [2025-02-06 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:45:25] Production.INFO: ==25843== Releasing lock... [2025-02-06 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:45:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-06 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:46:06 [end_date_ymd] => 2025-02-06 09:46:06 [RateCDR] => 1 ) [2025-02-06 09:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:46:06' and `end` < '2025-02-06 09: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-06 09:46:19] Production.INFO: count ==1769 [2025-02-06 09:46:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:46:06 - End Time 2025-02-06 09:46:06 [2025-02-06 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414214', 'tblTempUsageDetail_20' ) start [2025-02-06 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414214', 'tblTempUsageDetail_20' ) end [2025-02-06 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414214', 'tblTempVendorCDR_20' ) start [2025-02-06 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414214', 'tblTempVendorCDR_20' ) end [2025-02-06 09:46:20] Production.INFO: ProcessCDR(1,14414214,1,1,2) [2025-02-06 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414214', 'tblTempUsageDetail_20' ) start [2025-02-06 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414214', 'tblTempUsageDetail_20' ) end [2025-02-06 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:46:25] Production.INFO: ==25913== Releasing lock... [2025-02-06 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:46:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-06 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:47:06 [end_date_ymd] => 2025-02-06 09:47:06 [RateCDR] => 1 ) [2025-02-06 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-06 06:47:06' and `end` < '2025-02-06 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-06 09:47:20] Production.INFO: count ==1792 [2025-02-06 09:47:21] Production.ERROR: pbx CDR StartTime 2025-02-06 06:47:06 - End Time 2025-02-06 09:47:06 [2025-02-06 09:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414219', 'tblTempUsageDetail_20' ) start [2025-02-06 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414219', 'tblTempUsageDetail_20' ) end [2025-02-06 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414219', 'tblTempVendorCDR_20' ) start [2025-02-06 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414219', 'tblTempVendorCDR_20' ) end [2025-02-06 09:47:21] Production.INFO: ProcessCDR(1,14414219,1,1,2) [2025-02-06 09:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414219', 'tblTempUsageDetail_20' ) start [2025-02-06 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414219', 'tblTempUsageDetail_20' ) end [2025-02-06 09:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:47:26] Production.INFO: ==25983== Releasing lock... [2025-02-06 09:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:47:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-06 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:48:05 [end_date_ymd] => 2025-02-06 09:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:48:05' and `end` < '2025-02-06 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-06 09:48:20] Production.INFO: count ==1810 [2025-02-06 09:48:21] Production.ERROR: pbx CDR StartTime 2025-02-06 06:48:05 - End Time 2025-02-06 09:48:05 [2025-02-06 09:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414224', 'tblTempUsageDetail_20' ) start [2025-02-06 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414224', 'tblTempUsageDetail_20' ) end [2025-02-06 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414224', 'tblTempVendorCDR_20' ) start [2025-02-06 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414224', 'tblTempVendorCDR_20' ) end [2025-02-06 09:48:21] Production.INFO: ProcessCDR(1,14414224,1,1,2) [2025-02-06 09:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414224', 'tblTempUsageDetail_20' ) start [2025-02-06 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414224', 'tblTempUsageDetail_20' ) end [2025-02-06 09:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:48:26] Production.INFO: ==26054== Releasing lock... [2025-02-06 09:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:48:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-06 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:49:05 [end_date_ymd] => 2025-02-06 09:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:49:05' and `end` < '2025-02-06 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-06 09:49:26] Production.INFO: count ==1835 [2025-02-06 09:49:27] Production.ERROR: pbx CDR StartTime 2025-02-06 06:49:05 - End Time 2025-02-06 09:49:05 [2025-02-06 09:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414229', 'tblTempUsageDetail_20' ) start [2025-02-06 09:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414229', 'tblTempUsageDetail_20' ) end [2025-02-06 09:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414229', 'tblTempVendorCDR_20' ) start [2025-02-06 09:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414229', 'tblTempVendorCDR_20' ) end [2025-02-06 09:49:27] Production.INFO: ProcessCDR(1,14414229,1,1,2) [2025-02-06 09:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414229', 'tblTempUsageDetail_20' ) start [2025-02-06 09:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414229', 'tblTempUsageDetail_20' ) end [2025-02-06 09:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:49:32] Production.INFO: ==26128== Releasing lock... [2025-02-06 09:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:49:32] Production.INFO: 41.75 MB #Memory Used# [2025-02-06 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:50:06 [end_date_ymd] => 2025-02-06 09:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 06:50:06' and `end` < '2025-02-06 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-06 09:50:28] Production.INFO: count ==1846 [2025-02-06 09:50:28] Production.ERROR: pbx CDR StartTime 2025-02-06 06:50:06 - End Time 2025-02-06 09:50:06 [2025-02-06 09:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414235', 'tblTempUsageDetail_20' ) start [2025-02-06 09:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414235', 'tblTempUsageDetail_20' ) end [2025-02-06 09:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414235', 'tblTempVendorCDR_20' ) start [2025-02-06 09:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414235', 'tblTempVendorCDR_20' ) end [2025-02-06 09:50:28] Production.INFO: ProcessCDR(1,14414235,1,1,2) [2025-02-06 09:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414235', 'tblTempUsageDetail_20' ) start [2025-02-06 09:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414235', 'tblTempUsageDetail_20' ) end [2025-02-06 09:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:50:33] Production.INFO: ==26200== Releasing lock... [2025-02-06 09:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:50:33] Production.INFO: 42 MB #Memory Used# [2025-02-06 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:51:06 [end_date_ymd] => 2025-02-06 09:51:06 [RateCDR] => 1 ) [2025-02-06 09: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-06 06:51:06' and `end` < '2025-02-06 09: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-06 09:51:19] Production.INFO: count ==1913 [2025-02-06 09:51:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:51:06 - End Time 2025-02-06 09:51:06 [2025-02-06 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414240', 'tblTempUsageDetail_20' ) start [2025-02-06 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414240', 'tblTempUsageDetail_20' ) end [2025-02-06 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414240', 'tblTempVendorCDR_20' ) start [2025-02-06 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414240', 'tblTempVendorCDR_20' ) end [2025-02-06 09:51:20] Production.INFO: ProcessCDR(1,14414240,1,1,2) [2025-02-06 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414240', 'tblTempUsageDetail_20' ) start [2025-02-06 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414240', 'tblTempUsageDetail_20' ) end [2025-02-06 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:51:25] Production.INFO: ==26273== Releasing lock... [2025-02-06 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:51:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-06 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:52:05 [end_date_ymd] => 2025-02-06 09:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:52:05' and `end` < '2025-02-06 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-06 09:52:18] Production.INFO: count ==1925 [2025-02-06 09:52:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:52:05 - End Time 2025-02-06 09:52:05 [2025-02-06 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414245', 'tblTempUsageDetail_20' ) start [2025-02-06 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414245', 'tblTempUsageDetail_20' ) end [2025-02-06 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414245', 'tblTempVendorCDR_20' ) start [2025-02-06 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414245', 'tblTempVendorCDR_20' ) end [2025-02-06 09:52:19] Production.INFO: ProcessCDR(1,14414245,1,1,2) [2025-02-06 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414245', 'tblTempUsageDetail_20' ) start [2025-02-06 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414245', 'tblTempUsageDetail_20' ) end [2025-02-06 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:52:24] Production.INFO: ==26343== Releasing lock... [2025-02-06 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:52:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-06 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:53:05 [end_date_ymd] => 2025-02-06 09:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 06:53:05' and `end` < '2025-02-06 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-06 09:53:19] Production.INFO: count ==1933 [2025-02-06 09:53:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:53:05 - End Time 2025-02-06 09:53:05 [2025-02-06 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414250', 'tblTempUsageDetail_20' ) start [2025-02-06 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414250', 'tblTempUsageDetail_20' ) end [2025-02-06 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414250', 'tblTempVendorCDR_20' ) start [2025-02-06 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414250', 'tblTempVendorCDR_20' ) end [2025-02-06 09:53:20] Production.INFO: ProcessCDR(1,14414250,1,1,2) [2025-02-06 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414250', 'tblTempUsageDetail_20' ) start [2025-02-06 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414250', 'tblTempUsageDetail_20' ) end [2025-02-06 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:53:23] Production.INFO: ==26414== Releasing lock... [2025-02-06 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:53:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-06 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:54:05 [end_date_ymd] => 2025-02-06 09:54:05 [RateCDR] => 1 ) [2025-02-06 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:54:05' and `end` < '2025-02-06 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:54:18] Production.INFO: count ==1948 [2025-02-06 09:54:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:54:05 - End Time 2025-02-06 09:54:05 [2025-02-06 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414255', 'tblTempUsageDetail_20' ) start [2025-02-06 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414255', 'tblTempUsageDetail_20' ) end [2025-02-06 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414255', 'tblTempVendorCDR_20' ) start [2025-02-06 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414255', 'tblTempVendorCDR_20' ) end [2025-02-06 09:54:19] Production.INFO: ProcessCDR(1,14414255,1,1,2) [2025-02-06 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414255', 'tblTempUsageDetail_20' ) start [2025-02-06 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414255', 'tblTempUsageDetail_20' ) end [2025-02-06 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:54:24] Production.INFO: ==26486== Releasing lock... [2025-02-06 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:54:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-06 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:55:05 [end_date_ymd] => 2025-02-06 09:55:05 [RateCDR] => 1 ) [2025-02-06 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:55:05' and `end` < '2025-02-06 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:55:19] Production.INFO: count ==1967 [2025-02-06 09:55:20] Production.ERROR: pbx CDR StartTime 2025-02-06 06:55:05 - End Time 2025-02-06 09:55:05 [2025-02-06 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414260', 'tblTempUsageDetail_20' ) start [2025-02-06 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414260', 'tblTempUsageDetail_20' ) end [2025-02-06 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414260', 'tblTempVendorCDR_20' ) start [2025-02-06 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414260', 'tblTempVendorCDR_20' ) end [2025-02-06 09:55:20] Production.INFO: ProcessCDR(1,14414260,1,1,2) [2025-02-06 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414260', 'tblTempUsageDetail_20' ) start [2025-02-06 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414260', 'tblTempUsageDetail_20' ) end [2025-02-06 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:55:25] Production.INFO: ==26565== Releasing lock... [2025-02-06 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:55:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-06 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:56:06 [end_date_ymd] => 2025-02-06 09:56:06 [RateCDR] => 1 ) [2025-02-06 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:56:06' and `end` < '2025-02-06 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:56:25] Production.INFO: count ==1988 [2025-02-06 09:56:26] Production.ERROR: pbx CDR StartTime 2025-02-06 06:56:06 - End Time 2025-02-06 09:56:06 [2025-02-06 09:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414265', 'tblTempUsageDetail_20' ) start [2025-02-06 09:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414265', 'tblTempUsageDetail_20' ) end [2025-02-06 09:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414265', 'tblTempVendorCDR_20' ) start [2025-02-06 09:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414265', 'tblTempVendorCDR_20' ) end [2025-02-06 09:56:26] Production.INFO: ProcessCDR(1,14414265,1,1,2) [2025-02-06 09:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414265', 'tblTempUsageDetail_20' ) start [2025-02-06 09:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414265', 'tblTempUsageDetail_20' ) end [2025-02-06 09:56:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:56:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:56:31] Production.INFO: ==26636== Releasing lock... [2025-02-06 09:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:56:31] Production.INFO: 43 MB #Memory Used# [2025-02-06 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:57:05 [end_date_ymd] => 2025-02-06 09:57:05 [RateCDR] => 1 ) [2025-02-06 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:57:05' and `end` < '2025-02-06 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:57:22] Production.INFO: count ==1988 [2025-02-06 09:57:23] Production.ERROR: pbx CDR StartTime 2025-02-06 06:57:05 - End Time 2025-02-06 09:57:05 [2025-02-06 09:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414270', 'tblTempUsageDetail_20' ) start [2025-02-06 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414270', 'tblTempUsageDetail_20' ) end [2025-02-06 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414270', 'tblTempVendorCDR_20' ) start [2025-02-06 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414270', 'tblTempVendorCDR_20' ) end [2025-02-06 09:57:23] Production.INFO: ProcessCDR(1,14414270,1,1,2) [2025-02-06 09:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414270', 'tblTempUsageDetail_20' ) start [2025-02-06 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414270', 'tblTempUsageDetail_20' ) end [2025-02-06 09:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:57:26] Production.INFO: ==26708== Releasing lock... [2025-02-06 09:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:57:26] Production.INFO: 43 MB #Memory Used# [2025-02-06 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:58:05 [end_date_ymd] => 2025-02-06 09:58:05 [RateCDR] => 1 ) [2025-02-06 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:58:05' and `end` < '2025-02-06 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:58:18] Production.INFO: count ==1991 [2025-02-06 09:58:19] Production.ERROR: pbx CDR StartTime 2025-02-06 06:58:05 - End Time 2025-02-06 09:58:05 [2025-02-06 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414275', 'tblTempUsageDetail_20' ) start [2025-02-06 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414275', 'tblTempUsageDetail_20' ) end [2025-02-06 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414275', 'tblTempVendorCDR_20' ) start [2025-02-06 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414275', 'tblTempVendorCDR_20' ) end [2025-02-06 09:58:19] Production.INFO: ProcessCDR(1,14414275,1,1,2) [2025-02-06 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414275', 'tblTempUsageDetail_20' ) start [2025-02-06 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414275', 'tblTempUsageDetail_20' ) end [2025-02-06 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:58:24] Production.INFO: ==26780== Releasing lock... [2025-02-06 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:58:24] Production.INFO: 43 MB #Memory Used# [2025-02-06 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 06:59:05 [end_date_ymd] => 2025-02-06 09:59:05 [RateCDR] => 1 ) [2025-02-06 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 06:59:05' and `end` < '2025-02-06 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 09:59:21] Production.INFO: count ==1997 [2025-02-06 09:59:21] Production.ERROR: pbx CDR StartTime 2025-02-06 06:59:05 - End Time 2025-02-06 09:59:05 [2025-02-06 09:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414280', 'tblTempUsageDetail_20' ) start [2025-02-06 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414280', 'tblTempUsageDetail_20' ) end [2025-02-06 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414280', 'tblTempVendorCDR_20' ) start [2025-02-06 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414280', 'tblTempVendorCDR_20' ) end [2025-02-06 09:59:21] Production.INFO: ProcessCDR(1,14414280,1,1,2) [2025-02-06 09:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 09:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414280', 'tblTempUsageDetail_20' ) start [2025-02-06 09:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414280', 'tblTempUsageDetail_20' ) end [2025-02-06 09:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 09:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 09:59:27] Production.INFO: ==26853== Releasing lock... [2025-02-06 09:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 09:59:27] Production.INFO: 43.25 MB #Memory Used# [2025-02-06 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:00:07 [end_date_ymd] => 2025-02-06 10:00:07 [RateCDR] => 1 ) [2025-02-06 10: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-06 07:00:07' and `end` < '2025-02-06 10: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-06 10:00:26] Production.INFO: count ==2008 [2025-02-06 10:00:27] Production.ERROR: pbx CDR StartTime 2025-02-06 07:00:07 - End Time 2025-02-06 10:00:07 [2025-02-06 10:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414286', 'tblTempUsageDetail_20' ) start [2025-02-06 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414286', 'tblTempUsageDetail_20' ) end [2025-02-06 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414286', 'tblTempVendorCDR_20' ) start [2025-02-06 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414286', 'tblTempVendorCDR_20' ) end [2025-02-06 10:00:27] Production.INFO: ProcessCDR(1,14414286,1,1,2) [2025-02-06 10:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414286', 'tblTempUsageDetail_20' ) start [2025-02-06 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414286', 'tblTempUsageDetail_20' ) end [2025-02-06 10:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:00:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:00:32] Production.INFO: ==26972== Releasing lock... [2025-02-06 10:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:00:32] Production.INFO: 43 MB #Memory Used# [2025-02-06 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:01:05 [end_date_ymd] => 2025-02-06 10:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:01:05' and `end` < '2025-02-06 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-06 10:01:20] Production.INFO: count ==2100 [2025-02-06 10:01:21] Production.ERROR: pbx CDR StartTime 2025-02-06 07:01:05 - End Time 2025-02-06 10:01:05 [2025-02-06 10:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414291', 'tblTempUsageDetail_20' ) start [2025-02-06 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414291', 'tblTempUsageDetail_20' ) end [2025-02-06 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414291', 'tblTempVendorCDR_20' ) start [2025-02-06 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414291', 'tblTempVendorCDR_20' ) end [2025-02-06 10:01:21] Production.INFO: ProcessCDR(1,14414291,1,1,2) [2025-02-06 10:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414291', 'tblTempUsageDetail_20' ) start [2025-02-06 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414291', 'tblTempUsageDetail_20' ) end [2025-02-06 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:01:26] Production.INFO: ==27061== Releasing lock... [2025-02-06 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:01:26] Production.INFO: 43.75 MB #Memory Used# [2025-02-06 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:02:06 [end_date_ymd] => 2025-02-06 10:02:06 [RateCDR] => 1 ) [2025-02-06 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-06 07:02:06' and `end` < '2025-02-06 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-06 10:02:20] Production.INFO: count ==2106 [2025-02-06 10:02:21] Production.ERROR: pbx CDR StartTime 2025-02-06 07:02:06 - End Time 2025-02-06 10:02:06 [2025-02-06 10:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414296', 'tblTempUsageDetail_20' ) start [2025-02-06 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414296', 'tblTempUsageDetail_20' ) end [2025-02-06 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414296', 'tblTempVendorCDR_20' ) start [2025-02-06 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414296', 'tblTempVendorCDR_20' ) end [2025-02-06 10:02:21] Production.INFO: ProcessCDR(1,14414296,1,1,2) [2025-02-06 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414296', 'tblTempUsageDetail_20' ) start [2025-02-06 10:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414296', 'tblTempUsageDetail_20' ) end [2025-02-06 10:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:02:27] Production.INFO: ==27138== Releasing lock... [2025-02-06 10:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:02:27] Production.INFO: 44 MB #Memory Used# [2025-02-06 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:03:06 [end_date_ymd] => 2025-02-06 10:03:06 [RateCDR] => 1 ) [2025-02-06 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-06 07:03:06' and `end` < '2025-02-06 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-06 10:03:19] Production.INFO: count ==2117 [2025-02-06 10:03:20] Production.ERROR: pbx CDR StartTime 2025-02-06 07:03:06 - End Time 2025-02-06 10:03:06 [2025-02-06 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414301', 'tblTempUsageDetail_20' ) start [2025-02-06 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414301', 'tblTempUsageDetail_20' ) end [2025-02-06 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414301', 'tblTempVendorCDR_20' ) start [2025-02-06 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414301', 'tblTempVendorCDR_20' ) end [2025-02-06 10:03:20] Production.INFO: ProcessCDR(1,14414301,1,1,2) [2025-02-06 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414301', 'tblTempUsageDetail_20' ) start [2025-02-06 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414301', 'tblTempUsageDetail_20' ) end [2025-02-06 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:03:26] Production.INFO: ==27208== Releasing lock... [2025-02-06 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:03:26] Production.INFO: 44 MB #Memory Used# [2025-02-06 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:04:06 [end_date_ymd] => 2025-02-06 10:04:06 [RateCDR] => 1 ) [2025-02-06 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:04:06' and `end` < '2025-02-06 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:04:21] Production.INFO: count ==2127 [2025-02-06 10:04:22] Production.ERROR: pbx CDR StartTime 2025-02-06 07:04:06 - End Time 2025-02-06 10:04:06 [2025-02-06 10:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414306', 'tblTempUsageDetail_20' ) start [2025-02-06 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414306', 'tblTempUsageDetail_20' ) end [2025-02-06 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414306', 'tblTempVendorCDR_20' ) start [2025-02-06 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414306', 'tblTempVendorCDR_20' ) end [2025-02-06 10:04:22] Production.INFO: ProcessCDR(1,14414306,1,1,2) [2025-02-06 10:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414306', 'tblTempUsageDetail_20' ) start [2025-02-06 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414306', 'tblTempUsageDetail_20' ) end [2025-02-06 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:04:26] Production.INFO: ==27283== Releasing lock... [2025-02-06 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:04:26] Production.INFO: 44.25 MB #Memory Used# [2025-02-06 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:05:06 [end_date_ymd] => 2025-02-06 10:05:06 [RateCDR] => 1 ) [2025-02-06 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-06 07:05:06' and `end` < '2025-02-06 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-06 10:05:26] Production.INFO: count ==2134 [2025-02-06 10:05:27] Production.ERROR: pbx CDR StartTime 2025-02-06 07:05:06 - End Time 2025-02-06 10:05:06 [2025-02-06 10:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414311', 'tblTempUsageDetail_20' ) start [2025-02-06 10:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414311', 'tblTempUsageDetail_20' ) end [2025-02-06 10:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414311', 'tblTempVendorCDR_20' ) start [2025-02-06 10:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414311', 'tblTempVendorCDR_20' ) end [2025-02-06 10:05:27] Production.INFO: ProcessCDR(1,14414311,1,1,2) [2025-02-06 10:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414311', 'tblTempUsageDetail_20' ) start [2025-02-06 10:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414311', 'tblTempUsageDetail_20' ) end [2025-02-06 10:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:05:33] Production.INFO: ==27352== Releasing lock... [2025-02-06 10:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:05:33] Production.INFO: 44 MB #Memory Used# [2025-02-06 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:06:05 [end_date_ymd] => 2025-02-06 10:06:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:06:05' and `end` < '2025-02-06 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-06 10:06:22] Production.INFO: count ==2180 [2025-02-06 10:06:23] Production.ERROR: pbx CDR StartTime 2025-02-06 07:06:05 - End Time 2025-02-06 10:06:05 [2025-02-06 10:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414316', 'tblTempUsageDetail_20' ) start [2025-02-06 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414316', 'tblTempUsageDetail_20' ) end [2025-02-06 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414316', 'tblTempVendorCDR_20' ) start [2025-02-06 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414316', 'tblTempVendorCDR_20' ) end [2025-02-06 10:06:23] Production.INFO: ProcessCDR(1,14414316,1,1,2) [2025-02-06 10:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414316', 'tblTempUsageDetail_20' ) start [2025-02-06 10:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414316', 'tblTempUsageDetail_20' ) end [2025-02-06 10:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:06:28] Production.INFO: ==27423== Releasing lock... [2025-02-06 10:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:06:28] Production.INFO: 45 MB #Memory Used# [2025-02-06 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:07:06 [end_date_ymd] => 2025-02-06 10:07:06 [RateCDR] => 1 ) [2025-02-06 10: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-06 07:07:06' and `end` < '2025-02-06 10: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-06 10:07:20] Production.INFO: count ==2188 [2025-02-06 10:07:21] Production.ERROR: pbx CDR StartTime 2025-02-06 07:07:06 - End Time 2025-02-06 10:07:06 [2025-02-06 10:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414321', 'tblTempUsageDetail_20' ) start [2025-02-06 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414321', 'tblTempUsageDetail_20' ) end [2025-02-06 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414321', 'tblTempVendorCDR_20' ) start [2025-02-06 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414321', 'tblTempVendorCDR_20' ) end [2025-02-06 10:07:21] Production.INFO: ProcessCDR(1,14414321,1,1,2) [2025-02-06 10:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414321', 'tblTempUsageDetail_20' ) start [2025-02-06 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414321', 'tblTempUsageDetail_20' ) end [2025-02-06 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:07:26] Production.INFO: ==27497== Releasing lock... [2025-02-06 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:07:26] Production.INFO: 44.5 MB #Memory Used# [2025-02-06 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:08:05 [end_date_ymd] => 2025-02-06 10:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:08:05' and `end` < '2025-02-06 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-06 10:08:29] Production.INFO: count ==2205 [2025-02-06 10:08:30] Production.ERROR: pbx CDR StartTime 2025-02-06 07:08:05 - End Time 2025-02-06 10:08:05 [2025-02-06 10:08:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414326', 'tblTempUsageDetail_20' ) start [2025-02-06 10:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414326', 'tblTempUsageDetail_20' ) end [2025-02-06 10:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414326', 'tblTempVendorCDR_20' ) start [2025-02-06 10:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414326', 'tblTempVendorCDR_20' ) end [2025-02-06 10:08:30] Production.INFO: ProcessCDR(1,14414326,1,1,2) [2025-02-06 10:08:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:08:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:08:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:08:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414326', 'tblTempUsageDetail_20' ) start [2025-02-06 10:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414326', 'tblTempUsageDetail_20' ) end [2025-02-06 10:08:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:08:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:08:35] Production.INFO: ==27570== Releasing lock... [2025-02-06 10:08:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:08:35] Production.INFO: 44.5 MB #Memory Used# [2025-02-06 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:09:06 [end_date_ymd] => 2025-02-06 10:09:06 [RateCDR] => 1 ) [2025-02-06 10: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-06 07:09:06' and `end` < '2025-02-06 10: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-06 10:09:22] Production.INFO: count ==2211 [2025-02-06 10:09:23] Production.ERROR: pbx CDR StartTime 2025-02-06 07:09:06 - End Time 2025-02-06 10:09:06 [2025-02-06 10:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414331', 'tblTempUsageDetail_20' ) start [2025-02-06 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414331', 'tblTempUsageDetail_20' ) end [2025-02-06 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414331', 'tblTempVendorCDR_20' ) start [2025-02-06 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414331', 'tblTempVendorCDR_20' ) end [2025-02-06 10:09:23] Production.INFO: ProcessCDR(1,14414331,1,1,2) [2025-02-06 10:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414331', 'tblTempUsageDetail_20' ) start [2025-02-06 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414331', 'tblTempUsageDetail_20' ) end [2025-02-06 10:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:09:28] Production.INFO: ==27645== Releasing lock... [2025-02-06 10:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:09:28] Production.INFO: 44.75 MB #Memory Used# [2025-02-06 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:10:06 [end_date_ymd] => 2025-02-06 10:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 07:10:06' and `end` < '2025-02-06 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-06 10:10:26] Production.INFO: count ==2230 [2025-02-06 10:10:27] Production.ERROR: pbx CDR StartTime 2025-02-06 07:10:06 - End Time 2025-02-06 10:10:06 [2025-02-06 10:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414337', 'tblTempUsageDetail_20' ) start [2025-02-06 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414337', 'tblTempUsageDetail_20' ) end [2025-02-06 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414337', 'tblTempVendorCDR_20' ) start [2025-02-06 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414337', 'tblTempVendorCDR_20' ) end [2025-02-06 10:10:27] Production.INFO: ProcessCDR(1,14414337,1,1,2) [2025-02-06 10:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414337', 'tblTempUsageDetail_20' ) start [2025-02-06 10:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414337', 'tblTempUsageDetail_20' ) end [2025-02-06 10:10:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:10:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:10:32] Production.INFO: ==27719== Releasing lock... [2025-02-06 10:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:10:32] Production.INFO: 44.75 MB #Memory Used# [2025-02-06 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:11:05 [end_date_ymd] => 2025-02-06 10:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:11:05' and `end` < '2025-02-06 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-06 10:11:25] Production.INFO: count ==2321 [2025-02-06 10:11:25] Production.ERROR: pbx CDR StartTime 2025-02-06 07:11:05 - End Time 2025-02-06 10:11:05 [2025-02-06 10:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414341', 'tblTempUsageDetail_20' ) start [2025-02-06 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414341', 'tblTempUsageDetail_20' ) end [2025-02-06 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414341', 'tblTempVendorCDR_20' ) start [2025-02-06 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414341', 'tblTempVendorCDR_20' ) end [2025-02-06 10:11:26] Production.INFO: ProcessCDR(1,14414341,1,1,2) [2025-02-06 10:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414341', 'tblTempUsageDetail_20' ) start [2025-02-06 10:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414341', 'tblTempUsageDetail_20' ) end [2025-02-06 10:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:11:29] Production.INFO: ==27794== Releasing lock... [2025-02-06 10:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:11:29] Production.INFO: 45.75 MB #Memory Used# [2025-02-06 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:12:05 [end_date_ymd] => 2025-02-06 10:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:12:05' and `end` < '2025-02-06 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-06 10:12:22] Production.INFO: count ==2339 [2025-02-06 10:12:23] Production.ERROR: pbx CDR StartTime 2025-02-06 07:12:05 - End Time 2025-02-06 10:12:05 [2025-02-06 10:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414347', 'tblTempUsageDetail_20' ) start [2025-02-06 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414347', 'tblTempUsageDetail_20' ) end [2025-02-06 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414347', 'tblTempVendorCDR_20' ) start [2025-02-06 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414347', 'tblTempVendorCDR_20' ) end [2025-02-06 10:12:23] Production.INFO: ProcessCDR(1,14414347,1,1,2) [2025-02-06 10:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414347', 'tblTempUsageDetail_20' ) start [2025-02-06 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414347', 'tblTempUsageDetail_20' ) end [2025-02-06 10:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:12:28] Production.INFO: ==27864== Releasing lock... [2025-02-06 10:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:12:28] Production.INFO: 45.5 MB #Memory Used# [2025-02-06 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:13:05 [end_date_ymd] => 2025-02-06 10:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:13:05' and `end` < '2025-02-06 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-06 10:13:25] Production.INFO: count ==2360 [2025-02-06 10:13:26] Production.ERROR: pbx CDR StartTime 2025-02-06 07:13:05 - End Time 2025-02-06 10:13:05 [2025-02-06 10:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414352', 'tblTempUsageDetail_20' ) start [2025-02-06 10:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414352', 'tblTempUsageDetail_20' ) end [2025-02-06 10:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414352', 'tblTempVendorCDR_20' ) start [2025-02-06 10:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414352', 'tblTempVendorCDR_20' ) end [2025-02-06 10:13:26] Production.INFO: ProcessCDR(1,14414352,1,1,2) [2025-02-06 10:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414352', 'tblTempUsageDetail_20' ) start [2025-02-06 10:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414352', 'tblTempUsageDetail_20' ) end [2025-02-06 10:13:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:13:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:13:31] Production.INFO: ==27933== Releasing lock... [2025-02-06 10:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:13:31] Production.INFO: 45.75 MB #Memory Used# [2025-02-06 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:14:05 [end_date_ymd] => 2025-02-06 10:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:14:05' and `end` < '2025-02-06 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-06 10:14:22] Production.INFO: count ==2371 [2025-02-06 10:14:23] Production.ERROR: pbx CDR StartTime 2025-02-06 07:14:05 - End Time 2025-02-06 10:14:05 [2025-02-06 10:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414357', 'tblTempUsageDetail_20' ) start [2025-02-06 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414357', 'tblTempUsageDetail_20' ) end [2025-02-06 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414357', 'tblTempVendorCDR_20' ) start [2025-02-06 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414357', 'tblTempVendorCDR_20' ) end [2025-02-06 10:14:23] Production.INFO: ProcessCDR(1,14414357,1,1,2) [2025-02-06 10:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414357', 'tblTempUsageDetail_20' ) start [2025-02-06 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414357', 'tblTempUsageDetail_20' ) end [2025-02-06 10:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:14:28] Production.INFO: ==28004== Releasing lock... [2025-02-06 10:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:14:28] Production.INFO: 45.75 MB #Memory Used# [2025-02-06 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:15:05 [end_date_ymd] => 2025-02-06 10:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:15:05' and `end` < '2025-02-06 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-06 10:15:19] Production.INFO: count ==2377 [2025-02-06 10:15:20] Production.ERROR: pbx CDR StartTime 2025-02-06 07:15:05 - End Time 2025-02-06 10:15:05 [2025-02-06 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414362', 'tblTempUsageDetail_20' ) start [2025-02-06 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414362', 'tblTempUsageDetail_20' ) end [2025-02-06 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414362', 'tblTempVendorCDR_20' ) start [2025-02-06 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414362', 'tblTempVendorCDR_20' ) end [2025-02-06 10:15:20] Production.INFO: ProcessCDR(1,14414362,1,1,2) [2025-02-06 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414362', 'tblTempUsageDetail_20' ) start [2025-02-06 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414362', 'tblTempUsageDetail_20' ) end [2025-02-06 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:15:25] Production.INFO: ==28075== Releasing lock... [2025-02-06 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:15:25] Production.INFO: 46 MB #Memory Used# [2025-02-06 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:16:05 [end_date_ymd] => 2025-02-06 10:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:16:05' and `end` < '2025-02-06 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-06 10:16:20] Production.INFO: count ==2383 [2025-02-06 10:16:21] Production.ERROR: pbx CDR StartTime 2025-02-06 07:16:05 - End Time 2025-02-06 10:16:05 [2025-02-06 10:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414367', 'tblTempUsageDetail_20' ) start [2025-02-06 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414367', 'tblTempUsageDetail_20' ) end [2025-02-06 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414367', 'tblTempVendorCDR_20' ) start [2025-02-06 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414367', 'tblTempVendorCDR_20' ) end [2025-02-06 10:16:21] Production.INFO: ProcessCDR(1,14414367,1,1,2) [2025-02-06 10:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414367', 'tblTempUsageDetail_20' ) start [2025-02-06 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414367', 'tblTempUsageDetail_20' ) end [2025-02-06 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:16:25] Production.INFO: ==28185== Releasing lock... [2025-02-06 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:16:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-06 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:17:06 [end_date_ymd] => 2025-02-06 10:17:06 [RateCDR] => 1 ) [2025-02-06 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:17:06' and `end` < '2025-02-06 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:17:21] Production.INFO: count ==2397 [2025-02-06 10:17:22] Production.ERROR: pbx CDR StartTime 2025-02-06 07:17:06 - End Time 2025-02-06 10:17:06 [2025-02-06 10:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414372', 'tblTempUsageDetail_20' ) start [2025-02-06 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414372', 'tblTempUsageDetail_20' ) end [2025-02-06 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414372', 'tblTempVendorCDR_20' ) start [2025-02-06 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414372', 'tblTempVendorCDR_20' ) end [2025-02-06 10:17:22] Production.INFO: ProcessCDR(1,14414372,1,1,2) [2025-02-06 10:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414372', 'tblTempUsageDetail_20' ) start [2025-02-06 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414372', 'tblTempUsageDetail_20' ) end [2025-02-06 10:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:17:27] Production.INFO: ==28255== Releasing lock... [2025-02-06 10:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:17:27] Production.INFO: 46 MB #Memory Used# [2025-02-06 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:18:05 [end_date_ymd] => 2025-02-06 10:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:18:05' and `end` < '2025-02-06 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-06 10:18:22] Production.INFO: count ==2417 [2025-02-06 10:18:23] Production.ERROR: pbx CDR StartTime 2025-02-06 07:18:05 - End Time 2025-02-06 10:18:05 [2025-02-06 10:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414377', 'tblTempUsageDetail_20' ) start [2025-02-06 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414377', 'tblTempUsageDetail_20' ) end [2025-02-06 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414377', 'tblTempVendorCDR_20' ) start [2025-02-06 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414377', 'tblTempVendorCDR_20' ) end [2025-02-06 10:18:23] Production.INFO: ProcessCDR(1,14414377,1,1,2) [2025-02-06 10:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414377', 'tblTempUsageDetail_20' ) start [2025-02-06 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414377', 'tblTempUsageDetail_20' ) end [2025-02-06 10:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:18:28] Production.INFO: ==28330== Releasing lock... [2025-02-06 10:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:18:28] Production.INFO: 46.25 MB #Memory Used# [2025-02-06 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:19:05 [end_date_ymd] => 2025-02-06 10:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:19:05' and `end` < '2025-02-06 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-06 10:19:24] Production.INFO: count ==2436 [2025-02-06 10:19:25] Production.ERROR: pbx CDR StartTime 2025-02-06 07:19:05 - End Time 2025-02-06 10:19:05 [2025-02-06 10:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414382', 'tblTempUsageDetail_20' ) start [2025-02-06 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414382', 'tblTempUsageDetail_20' ) end [2025-02-06 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414382', 'tblTempVendorCDR_20' ) start [2025-02-06 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414382', 'tblTempVendorCDR_20' ) end [2025-02-06 10:19:25] Production.INFO: ProcessCDR(1,14414382,1,1,2) [2025-02-06 10:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414382', 'tblTempUsageDetail_20' ) start [2025-02-06 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414382', 'tblTempUsageDetail_20' ) end [2025-02-06 10:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:19:30] Production.INFO: ==28402== Releasing lock... [2025-02-06 10:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:19:30] Production.INFO: 46.25 MB #Memory Used# [2025-02-06 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:20:07 [end_date_ymd] => 2025-02-06 10:20:07 [RateCDR] => 1 ) [2025-02-06 10:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:20:07' and `end` < '2025-02-06 10:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:20:29] Production.INFO: count ==2452 [2025-02-06 10:20:30] Production.ERROR: pbx CDR StartTime 2025-02-06 07:20:07 - End Time 2025-02-06 10:20:07 [2025-02-06 10:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414388', 'tblTempUsageDetail_20' ) start [2025-02-06 10:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414388', 'tblTempUsageDetail_20' ) end [2025-02-06 10:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414388', 'tblTempVendorCDR_20' ) start [2025-02-06 10:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414388', 'tblTempVendorCDR_20' ) end [2025-02-06 10:20:30] Production.INFO: ProcessCDR(1,14414388,1,1,2) [2025-02-06 10:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414388', 'tblTempUsageDetail_20' ) start [2025-02-06 10:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414388', 'tblTempUsageDetail_20' ) end [2025-02-06 10:20:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:20:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:20:35] Production.INFO: ==28476== Releasing lock... [2025-02-06 10:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:20:35] Production.INFO: 46.5 MB #Memory Used# [2025-02-06 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:21:05 [end_date_ymd] => 2025-02-06 10:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:21:05' and `end` < '2025-02-06 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-06 10:21:24] Production.INFO: count ==2544 [2025-02-06 10:21:25] Production.ERROR: pbx CDR StartTime 2025-02-06 07:21:05 - End Time 2025-02-06 10:21:05 [2025-02-06 10:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414393', 'tblTempUsageDetail_20' ) start [2025-02-06 10:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414393', 'tblTempUsageDetail_20' ) end [2025-02-06 10:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414393', 'tblTempVendorCDR_20' ) start [2025-02-06 10:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414393', 'tblTempVendorCDR_20' ) end [2025-02-06 10:21:25] Production.INFO: ProcessCDR(1,14414393,1,1,2) [2025-02-06 10:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414393', 'tblTempUsageDetail_20' ) start [2025-02-06 10:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414393', 'tblTempUsageDetail_20' ) end [2025-02-06 10:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:21:30] Production.INFO: ==28547== Releasing lock... [2025-02-06 10:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:21:30] Production.INFO: 47.25 MB #Memory Used# [2025-02-06 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:22:06 [end_date_ymd] => 2025-02-06 10:22:06 [RateCDR] => 1 ) [2025-02-06 10:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:22:06' and `end` < '2025-02-06 10:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:22:22] Production.INFO: count ==2556 [2025-02-06 10:22:23] Production.ERROR: pbx CDR StartTime 2025-02-06 07:22:06 - End Time 2025-02-06 10:22:06 [2025-02-06 10:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414398', 'tblTempUsageDetail_20' ) start [2025-02-06 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414398', 'tblTempUsageDetail_20' ) end [2025-02-06 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414398', 'tblTempVendorCDR_20' ) start [2025-02-06 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414398', 'tblTempVendorCDR_20' ) end [2025-02-06 10:22:23] Production.INFO: ProcessCDR(1,14414398,1,1,2) [2025-02-06 10:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414398', 'tblTempUsageDetail_20' ) start [2025-02-06 10:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414398', 'tblTempUsageDetail_20' ) end [2025-02-06 10:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:22:28] Production.INFO: ==28623== Releasing lock... [2025-02-06 10:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:22:28] Production.INFO: 47.5 MB #Memory Used# [2025-02-06 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:23:05 [end_date_ymd] => 2025-02-06 10:23:05 [RateCDR] => 1 ) [2025-02-06 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:23:05' and `end` < '2025-02-06 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:23:20] Production.INFO: count ==2565 [2025-02-06 10:23:21] Production.ERROR: pbx CDR StartTime 2025-02-06 07:23:05 - End Time 2025-02-06 10:23:05 [2025-02-06 10:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414403', 'tblTempUsageDetail_20' ) start [2025-02-06 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414403', 'tblTempUsageDetail_20' ) end [2025-02-06 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414403', 'tblTempVendorCDR_20' ) start [2025-02-06 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414403', 'tblTempVendorCDR_20' ) end [2025-02-06 10:23:21] Production.INFO: ProcessCDR(1,14414403,1,1,2) [2025-02-06 10:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414403', 'tblTempUsageDetail_20' ) start [2025-02-06 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414403', 'tblTempUsageDetail_20' ) end [2025-02-06 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:23:26] Production.INFO: ==28701== Releasing lock... [2025-02-06 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:23:26] Production.INFO: 47.25 MB #Memory Used# [2025-02-06 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:24:06 [end_date_ymd] => 2025-02-06 10:24:06 [RateCDR] => 1 ) [2025-02-06 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:24:06' and `end` < '2025-02-06 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:24:31] Production.INFO: count ==2578 [2025-02-06 10:24:32] Production.ERROR: pbx CDR StartTime 2025-02-06 07:24:06 - End Time 2025-02-06 10:24:06 [2025-02-06 10:24:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414408', 'tblTempUsageDetail_20' ) start [2025-02-06 10:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414408', 'tblTempUsageDetail_20' ) end [2025-02-06 10:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414408', 'tblTempVendorCDR_20' ) start [2025-02-06 10:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414408', 'tblTempVendorCDR_20' ) end [2025-02-06 10:24:32] Production.INFO: ProcessCDR(1,14414408,1,1,2) [2025-02-06 10:24:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:24:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:24:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:24:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414408', 'tblTempUsageDetail_20' ) start [2025-02-06 10:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414408', 'tblTempUsageDetail_20' ) end [2025-02-06 10:24:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:24:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:24:37] Production.INFO: ==28773== Releasing lock... [2025-02-06 10:24:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:24:37] Production.INFO: 47.75 MB #Memory Used# [2025-02-06 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:25:05 [end_date_ymd] => 2025-02-06 10:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:25:05' and `end` < '2025-02-06 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-06 10:25:26] Production.INFO: count ==2595 [2025-02-06 10:25:27] Production.ERROR: pbx CDR StartTime 2025-02-06 07:25:05 - End Time 2025-02-06 10:25:05 [2025-02-06 10:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414413', 'tblTempUsageDetail_20' ) start [2025-02-06 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414413', 'tblTempUsageDetail_20' ) end [2025-02-06 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414413', 'tblTempVendorCDR_20' ) start [2025-02-06 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414413', 'tblTempVendorCDR_20' ) end [2025-02-06 10:25:27] Production.INFO: ProcessCDR(1,14414413,1,1,2) [2025-02-06 10:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414413', 'tblTempUsageDetail_20' ) start [2025-02-06 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414413', 'tblTempUsageDetail_20' ) end [2025-02-06 10:25:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:25:32] Production.INFO: ==28844== Releasing lock... [2025-02-06 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:25:32] Production.INFO: 47.5 MB #Memory Used# [2025-02-06 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:26:05 [end_date_ymd] => 2025-02-06 10:26:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:26:05' and `end` < '2025-02-06 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-06 10:26:25] Production.INFO: count ==2616 [2025-02-06 10:26:26] Production.ERROR: pbx CDR StartTime 2025-02-06 07:26:05 - End Time 2025-02-06 10:26:05 [2025-02-06 10:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414418', 'tblTempUsageDetail_20' ) start [2025-02-06 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414418', 'tblTempUsageDetail_20' ) end [2025-02-06 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414418', 'tblTempVendorCDR_20' ) start [2025-02-06 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414418', 'tblTempVendorCDR_20' ) end [2025-02-06 10:26:26] Production.INFO: ProcessCDR(1,14414418,1,1,2) [2025-02-06 10:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414418', 'tblTempUsageDetail_20' ) start [2025-02-06 10:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414418', 'tblTempUsageDetail_20' ) end [2025-02-06 10:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:26:31] Production.INFO: ==28916== Releasing lock... [2025-02-06 10:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:26:31] Production.INFO: 47.75 MB #Memory Used# [2025-02-06 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:27:05 [end_date_ymd] => 2025-02-06 10:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:27:05' and `end` < '2025-02-06 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-06 10:27:24] Production.INFO: count ==2630 [2025-02-06 10:27:25] Production.ERROR: pbx CDR StartTime 2025-02-06 07:27:05 - End Time 2025-02-06 10:27:05 [2025-02-06 10:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414423', 'tblTempUsageDetail_20' ) start [2025-02-06 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414423', 'tblTempUsageDetail_20' ) end [2025-02-06 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414423', 'tblTempVendorCDR_20' ) start [2025-02-06 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414423', 'tblTempVendorCDR_20' ) end [2025-02-06 10:27:25] Production.INFO: ProcessCDR(1,14414423,1,1,2) [2025-02-06 10:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414423', 'tblTempUsageDetail_20' ) start [2025-02-06 10:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414423', 'tblTempUsageDetail_20' ) end [2025-02-06 10:27:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:27:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:27:30] Production.INFO: ==28986== Releasing lock... [2025-02-06 10:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:27:30] Production.INFO: 47.75 MB #Memory Used# [2025-02-06 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:28:06 [end_date_ymd] => 2025-02-06 10:28:06 [RateCDR] => 1 ) [2025-02-06 10: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-06 07:28:06' and `end` < '2025-02-06 10: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-06 10:28:20] Production.INFO: count ==2664 [2025-02-06 10:28:21] Production.ERROR: pbx CDR StartTime 2025-02-06 07:28:06 - End Time 2025-02-06 10:28:06 [2025-02-06 10:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414428', 'tblTempUsageDetail_20' ) start [2025-02-06 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414428', 'tblTempUsageDetail_20' ) end [2025-02-06 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414428', 'tblTempVendorCDR_20' ) start [2025-02-06 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414428', 'tblTempVendorCDR_20' ) end [2025-02-06 10:28:21] Production.INFO: ProcessCDR(1,14414428,1,1,2) [2025-02-06 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414428', 'tblTempUsageDetail_20' ) start [2025-02-06 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414428', 'tblTempUsageDetail_20' ) end [2025-02-06 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:28:26] Production.INFO: ==29059== Releasing lock... [2025-02-06 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:28:26] Production.INFO: 48 MB #Memory Used# [2025-02-06 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:29:04 [end_date_ymd] => 2025-02-06 10:29:04 [RateCDR] => 1 ) [2025-02-06 10: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-06 07:29:04' and `end` < '2025-02-06 10: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-06 10:29:22] Production.INFO: count ==2743 [2025-02-06 10:29:23] Production.ERROR: pbx CDR StartTime 2025-02-06 07:29:04 - End Time 2025-02-06 10:29:04 [2025-02-06 10:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414433', 'tblTempUsageDetail_20' ) start [2025-02-06 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414433', 'tblTempUsageDetail_20' ) end [2025-02-06 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414433', 'tblTempVendorCDR_20' ) start [2025-02-06 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414433', 'tblTempVendorCDR_20' ) end [2025-02-06 10:29:23] Production.INFO: ProcessCDR(1,14414433,1,1,2) [2025-02-06 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414433', 'tblTempUsageDetail_20' ) start [2025-02-06 10:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414433', 'tblTempUsageDetail_20' ) end [2025-02-06 10:29:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:29:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:29:29] Production.INFO: ==29128== Releasing lock... [2025-02-06 10:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:29:29] Production.INFO: 48.75 MB #Memory Used# [2025-02-06 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:30:06 [end_date_ymd] => 2025-02-06 10:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 07:30:06' and `end` < '2025-02-06 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-06 10:30:19] Production.INFO: count ==2743 [2025-02-06 10:30:20] Production.ERROR: pbx CDR StartTime 2025-02-06 07:30:06 - End Time 2025-02-06 10:30:06 [2025-02-06 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414439', 'tblTempUsageDetail_20' ) start [2025-02-06 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414439', 'tblTempUsageDetail_20' ) end [2025-02-06 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414439', 'tblTempVendorCDR_20' ) start [2025-02-06 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414439', 'tblTempVendorCDR_20' ) end [2025-02-06 10:30:21] Production.INFO: ProcessCDR(1,14414439,1,1,2) [2025-02-06 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414439', 'tblTempUsageDetail_20' ) start [2025-02-06 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414439', 'tblTempUsageDetail_20' ) end [2025-02-06 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:30:25] Production.INFO: ==29201== Releasing lock... [2025-02-06 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:30:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-06 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:31:06 [end_date_ymd] => 2025-02-06 10:31:06 [RateCDR] => 1 ) [2025-02-06 10:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:31:06' and `end` < '2025-02-06 10:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:31:30] Production.INFO: count ==2829 [2025-02-06 10:31:32] Production.ERROR: pbx CDR StartTime 2025-02-06 07:31:06 - End Time 2025-02-06 10:31:06 [2025-02-06 10:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414444', 'tblTempUsageDetail_20' ) start [2025-02-06 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414444', 'tblTempUsageDetail_20' ) end [2025-02-06 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414444', 'tblTempVendorCDR_20' ) start [2025-02-06 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414444', 'tblTempVendorCDR_20' ) end [2025-02-06 10:31:32] Production.INFO: ProcessCDR(1,14414444,1,1,2) [2025-02-06 10:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414444', 'tblTempUsageDetail_20' ) start [2025-02-06 10:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414444', 'tblTempUsageDetail_20' ) end [2025-02-06 10:31:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:31:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:31:37] Production.INFO: ==29314== Releasing lock... [2025-02-06 10:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:31:37] Production.INFO: 49 MB #Memory Used# [2025-02-06 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:32:05 [end_date_ymd] => 2025-02-06 10:32:05 [RateCDR] => 1 ) [2025-02-06 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:32:05' and `end` < '2025-02-06 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:32:26] Production.INFO: count ==2860 [2025-02-06 10:32:27] Production.ERROR: pbx CDR StartTime 2025-02-06 07:32:05 - End Time 2025-02-06 10:32:05 [2025-02-06 10:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414449', 'tblTempUsageDetail_20' ) start [2025-02-06 10:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414449', 'tblTempUsageDetail_20' ) end [2025-02-06 10:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414449', 'tblTempVendorCDR_20' ) start [2025-02-06 10:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414449', 'tblTempVendorCDR_20' ) end [2025-02-06 10:32:27] Production.INFO: ProcessCDR(1,14414449,1,1,2) [2025-02-06 10:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414449', 'tblTempUsageDetail_20' ) start [2025-02-06 10:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414449', 'tblTempUsageDetail_20' ) end [2025-02-06 10:32:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:32:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:32:32] Production.INFO: ==29384== Releasing lock... [2025-02-06 10:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:32:32] Production.INFO: 49.25 MB #Memory Used# [2025-02-06 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:33:06 [end_date_ymd] => 2025-02-06 10:33:06 [RateCDR] => 1 ) [2025-02-06 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-06 07:33:06' and `end` < '2025-02-06 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-06 10:33:28] Production.INFO: count ==2880 [2025-02-06 10:33:30] Production.ERROR: pbx CDR StartTime 2025-02-06 07:33:06 - End Time 2025-02-06 10:33:06 [2025-02-06 10:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414454', 'tblTempUsageDetail_20' ) start [2025-02-06 10:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414454', 'tblTempUsageDetail_20' ) end [2025-02-06 10:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414454', 'tblTempVendorCDR_20' ) start [2025-02-06 10:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414454', 'tblTempVendorCDR_20' ) end [2025-02-06 10:33:30] Production.INFO: ProcessCDR(1,14414454,1,1,2) [2025-02-06 10:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:33:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414454', 'tblTempUsageDetail_20' ) start [2025-02-06 10:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414454', 'tblTempUsageDetail_20' ) end [2025-02-06 10:33:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:33:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:33:35] Production.INFO: ==29456== Releasing lock... [2025-02-06 10:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:33:35] Production.INFO: 49.25 MB #Memory Used# [2025-02-06 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:34:05 [end_date_ymd] => 2025-02-06 10:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:34:05' and `end` < '2025-02-06 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-06 10:34:23] Production.INFO: count ==2898 [2025-02-06 10:34:24] Production.ERROR: pbx CDR StartTime 2025-02-06 07:34:05 - End Time 2025-02-06 10:34:05 [2025-02-06 10:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414459', 'tblTempUsageDetail_20' ) start [2025-02-06 10:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414459', 'tblTempUsageDetail_20' ) end [2025-02-06 10:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414459', 'tblTempVendorCDR_20' ) start [2025-02-06 10:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414459', 'tblTempVendorCDR_20' ) end [2025-02-06 10:34:25] Production.INFO: ProcessCDR(1,14414459,1,1,2) [2025-02-06 10:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414459', 'tblTempUsageDetail_20' ) start [2025-02-06 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414459', 'tblTempUsageDetail_20' ) end [2025-02-06 10:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:34:29] Production.INFO: ==29527== Releasing lock... [2025-02-06 10:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:34:29] Production.INFO: 49.25 MB #Memory Used# [2025-02-06 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:35:06 [end_date_ymd] => 2025-02-06 10:35:06 [RateCDR] => 1 ) [2025-02-06 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-06 07:35:06' and `end` < '2025-02-06 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-06 10:35:26] Production.INFO: count ==2921 [2025-02-06 10:35:27] Production.ERROR: pbx CDR StartTime 2025-02-06 07:35:06 - End Time 2025-02-06 10:35:06 [2025-02-06 10:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414464', 'tblTempUsageDetail_20' ) start [2025-02-06 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414464', 'tblTempUsageDetail_20' ) end [2025-02-06 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414464', 'tblTempVendorCDR_20' ) start [2025-02-06 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414464', 'tblTempVendorCDR_20' ) end [2025-02-06 10:35:27] Production.INFO: ProcessCDR(1,14414464,1,1,2) [2025-02-06 10:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414464', 'tblTempUsageDetail_20' ) start [2025-02-06 10:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414464', 'tblTempUsageDetail_20' ) end [2025-02-06 10:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:35:32] Production.INFO: ==29597== Releasing lock... [2025-02-06 10:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:35:32] Production.INFO: 49.5 MB #Memory Used# [2025-02-06 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:36:05 [end_date_ymd] => 2025-02-06 10:36:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:36:05' and `end` < '2025-02-06 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-06 10:36:20] Production.INFO: count ==2942 [2025-02-06 10:36:21] Production.ERROR: pbx CDR StartTime 2025-02-06 07:36:05 - End Time 2025-02-06 10:36:05 [2025-02-06 10:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414469', 'tblTempUsageDetail_20' ) start [2025-02-06 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414469', 'tblTempUsageDetail_20' ) end [2025-02-06 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414469', 'tblTempVendorCDR_20' ) start [2025-02-06 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414469', 'tblTempVendorCDR_20' ) end [2025-02-06 10:36:21] Production.INFO: ProcessCDR(1,14414469,1,1,2) [2025-02-06 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414469', 'tblTempUsageDetail_20' ) start [2025-02-06 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414469', 'tblTempUsageDetail_20' ) end [2025-02-06 10:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:36:26] Production.INFO: ==29666== Releasing lock... [2025-02-06 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:36:26] Production.INFO: 50.75 MB #Memory Used# [2025-02-06 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:37:05 [end_date_ymd] => 2025-02-06 10:37:05 [RateCDR] => 1 ) [2025-02-06 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:37:05' and `end` < '2025-02-06 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:37:19] Production.INFO: count ==2955 [2025-02-06 10:37:20] Production.ERROR: pbx CDR StartTime 2025-02-06 07:37:05 - End Time 2025-02-06 10:37:05 [2025-02-06 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414474', 'tblTempUsageDetail_20' ) start [2025-02-06 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414474', 'tblTempUsageDetail_20' ) end [2025-02-06 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414474', 'tblTempVendorCDR_20' ) start [2025-02-06 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414474', 'tblTempVendorCDR_20' ) end [2025-02-06 10:37:20] Production.INFO: ProcessCDR(1,14414474,1,1,2) [2025-02-06 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414474', 'tblTempUsageDetail_20' ) start [2025-02-06 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414474', 'tblTempUsageDetail_20' ) end [2025-02-06 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:37:25] Production.INFO: ==29742== Releasing lock... [2025-02-06 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:37:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-06 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:38:05 [end_date_ymd] => 2025-02-06 10:38:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:38:05' and `end` < '2025-02-06 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-06 10:38:21] Production.INFO: count ==2978 [2025-02-06 10:38:22] Production.ERROR: pbx CDR StartTime 2025-02-06 07:38:05 - End Time 2025-02-06 10:38:05 [2025-02-06 10:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414479', 'tblTempUsageDetail_20' ) start [2025-02-06 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414479', 'tblTempUsageDetail_20' ) end [2025-02-06 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414479', 'tblTempVendorCDR_20' ) start [2025-02-06 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414479', 'tblTempVendorCDR_20' ) end [2025-02-06 10:38:22] Production.INFO: ProcessCDR(1,14414479,1,1,2) [2025-02-06 10:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414479', 'tblTempUsageDetail_20' ) start [2025-02-06 10:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414479', 'tblTempUsageDetail_20' ) end [2025-02-06 10:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:38:27] Production.INFO: ==29816== Releasing lock... [2025-02-06 10:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:38:27] Production.INFO: 51 MB #Memory Used# [2025-02-06 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:39:05 [end_date_ymd] => 2025-02-06 10:39:05 [RateCDR] => 1 ) [2025-02-06 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:39:05' and `end` < '2025-02-06 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:39:23] Production.INFO: count ==2992 [2025-02-06 10:39:24] Production.ERROR: pbx CDR StartTime 2025-02-06 07:39:05 - End Time 2025-02-06 10:39:05 [2025-02-06 10:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414484', 'tblTempUsageDetail_20' ) start [2025-02-06 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414484', 'tblTempUsageDetail_20' ) end [2025-02-06 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414484', 'tblTempVendorCDR_20' ) start [2025-02-06 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414484', 'tblTempVendorCDR_20' ) end [2025-02-06 10:39:24] Production.INFO: ProcessCDR(1,14414484,1,1,2) [2025-02-06 10:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414484', 'tblTempUsageDetail_20' ) start [2025-02-06 10:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414484', 'tblTempUsageDetail_20' ) end [2025-02-06 10:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:39:30] Production.INFO: ==29886== Releasing lock... [2025-02-06 10:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:39:30] Production.INFO: 51.25 MB #Memory Used# [2025-02-06 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:40:06 [end_date_ymd] => 2025-02-06 10:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 07:40:06' and `end` < '2025-02-06 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-06 10:40:22] Production.INFO: count ==2995 [2025-02-06 10:40:23] Production.ERROR: pbx CDR StartTime 2025-02-06 07:40:06 - End Time 2025-02-06 10:40:06 [2025-02-06 10:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414490', 'tblTempUsageDetail_20' ) start [2025-02-06 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414490', 'tblTempUsageDetail_20' ) end [2025-02-06 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414490', 'tblTempVendorCDR_20' ) start [2025-02-06 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414490', 'tblTempVendorCDR_20' ) end [2025-02-06 10:40:23] Production.INFO: ProcessCDR(1,14414490,1,1,2) [2025-02-06 10:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414490', 'tblTempUsageDetail_20' ) start [2025-02-06 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414490', 'tblTempUsageDetail_20' ) end [2025-02-06 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:40:27] Production.INFO: ==29959== Releasing lock... [2025-02-06 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:40:27] Production.INFO: 51.25 MB #Memory Used# [2025-02-06 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:41:05 [end_date_ymd] => 2025-02-06 10:41:05 [RateCDR] => 1 ) [2025-02-06 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:41:05' and `end` < '2025-02-06 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:41:29] Production.INFO: count ==3108 [2025-02-06 10:41:30] Production.ERROR: pbx CDR StartTime 2025-02-06 07:41:05 - End Time 2025-02-06 10:41:05 [2025-02-06 10:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414495', 'tblTempUsageDetail_20' ) start [2025-02-06 10:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414495', 'tblTempUsageDetail_20' ) end [2025-02-06 10:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414495', 'tblTempVendorCDR_20' ) start [2025-02-06 10:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414495', 'tblTempVendorCDR_20' ) end [2025-02-06 10:41:31] Production.INFO: ProcessCDR(1,14414495,1,1,2) [2025-02-06 10:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414495', 'tblTempUsageDetail_20' ) start [2025-02-06 10:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414495', 'tblTempUsageDetail_20' ) end [2025-02-06 10:41:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:41:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:41:35] Production.INFO: ==30037== Releasing lock... [2025-02-06 10:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:41:35] Production.INFO: 51.5 MB #Memory Used# [2025-02-06 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:42:05 [end_date_ymd] => 2025-02-06 10:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:42:05' and `end` < '2025-02-06 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-06 10:42:25] Production.INFO: count ==3130 [2025-02-06 10:42:26] Production.ERROR: pbx CDR StartTime 2025-02-06 07:42:05 - End Time 2025-02-06 10:42:05 [2025-02-06 10:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414500', 'tblTempUsageDetail_20' ) start [2025-02-06 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414500', 'tblTempUsageDetail_20' ) end [2025-02-06 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414500', 'tblTempVendorCDR_20' ) start [2025-02-06 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414500', 'tblTempVendorCDR_20' ) end [2025-02-06 10:42:26] Production.INFO: ProcessCDR(1,14414500,1,1,2) [2025-02-06 10:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414500', 'tblTempUsageDetail_20' ) start [2025-02-06 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414500', 'tblTempUsageDetail_20' ) end [2025-02-06 10:42:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:42:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:42:31] Production.INFO: ==30111== Releasing lock... [2025-02-06 10:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:42:31] Production.INFO: 51.75 MB #Memory Used# [2025-02-06 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:43:05 [end_date_ymd] => 2025-02-06 10:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:43:05' and `end` < '2025-02-06 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-06 10:43:23] Production.INFO: count ==3144 [2025-02-06 10:43:24] Production.ERROR: pbx CDR StartTime 2025-02-06 07:43:05 - End Time 2025-02-06 10:43:05 [2025-02-06 10:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414505', 'tblTempUsageDetail_20' ) start [2025-02-06 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414505', 'tblTempUsageDetail_20' ) end [2025-02-06 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414505', 'tblTempVendorCDR_20' ) start [2025-02-06 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414505', 'tblTempVendorCDR_20' ) end [2025-02-06 10:43:25] Production.INFO: ProcessCDR(1,14414505,1,1,2) [2025-02-06 10:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414505', 'tblTempUsageDetail_20' ) start [2025-02-06 10:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414505', 'tblTempUsageDetail_20' ) end [2025-02-06 10:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:43:29] Production.INFO: ==30184== Releasing lock... [2025-02-06 10:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:43:29] Production.INFO: 52.25 MB #Memory Used# [2025-02-06 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:44:05 [end_date_ymd] => 2025-02-06 10:44:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:44:05' and `end` < '2025-02-06 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-06 10:44:31] Production.INFO: count ==3162 [2025-02-06 10:44:32] Production.ERROR: pbx CDR StartTime 2025-02-06 07:44:05 - End Time 2025-02-06 10:44:05 [2025-02-06 10:44:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414510', 'tblTempUsageDetail_20' ) start [2025-02-06 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414510', 'tblTempUsageDetail_20' ) end [2025-02-06 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414510', 'tblTempVendorCDR_20' ) start [2025-02-06 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414510', 'tblTempVendorCDR_20' ) end [2025-02-06 10:44:32] Production.INFO: ProcessCDR(1,14414510,1,1,2) [2025-02-06 10:44:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:44:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:44:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:44:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414510', 'tblTempUsageDetail_20' ) start [2025-02-06 10:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414510', 'tblTempUsageDetail_20' ) end [2025-02-06 10:44:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:44:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:44:37] Production.INFO: ==30254== Releasing lock... [2025-02-06 10:44:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:44:37] Production.INFO: 51.5 MB #Memory Used# [2025-02-06 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:45:05 [end_date_ymd] => 2025-02-06 10:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:45:05' and `end` < '2025-02-06 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-06 10:45:30] Production.INFO: count ==3200 [2025-02-06 10:45:31] Production.ERROR: pbx CDR StartTime 2025-02-06 07:45:05 - End Time 2025-02-06 10:45:05 [2025-02-06 10:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414515', 'tblTempUsageDetail_20' ) start [2025-02-06 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414515', 'tblTempUsageDetail_20' ) end [2025-02-06 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414515', 'tblTempVendorCDR_20' ) start [2025-02-06 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414515', 'tblTempVendorCDR_20' ) end [2025-02-06 10:45:31] Production.INFO: ProcessCDR(1,14414515,1,1,2) [2025-02-06 10:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414515', 'tblTempUsageDetail_20' ) start [2025-02-06 10:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414515', 'tblTempUsageDetail_20' ) end [2025-02-06 10:45:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:45:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:45:37] Production.INFO: ==30328== Releasing lock... [2025-02-06 10:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:45:37] Production.INFO: 52.25 MB #Memory Used# [2025-02-06 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:46:06 [end_date_ymd] => 2025-02-06 10:46:06 [RateCDR] => 1 ) [2025-02-06 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:46:06' and `end` < '2025-02-06 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:46:28] Production.INFO: count ==3218 [2025-02-06 10:46:30] Production.ERROR: pbx CDR StartTime 2025-02-06 07:46:06 - End Time 2025-02-06 10:46:06 [2025-02-06 10:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414520', 'tblTempUsageDetail_20' ) start [2025-02-06 10:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414520', 'tblTempUsageDetail_20' ) end [2025-02-06 10:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414520', 'tblTempVendorCDR_20' ) start [2025-02-06 10:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414520', 'tblTempVendorCDR_20' ) end [2025-02-06 10:46:30] Production.INFO: ProcessCDR(1,14414520,1,1,2) [2025-02-06 10:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414520', 'tblTempUsageDetail_20' ) start [2025-02-06 10:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414520', 'tblTempUsageDetail_20' ) end [2025-02-06 10:46:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:46:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:46:34] Production.INFO: ==30399== Releasing lock... [2025-02-06 10:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:46:34] Production.INFO: 52 MB #Memory Used# [2025-02-06 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:47:05 [end_date_ymd] => 2025-02-06 10:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:47:05' and `end` < '2025-02-06 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-06 10:47:24] Production.INFO: count ==3252 [2025-02-06 10:47:26] Production.ERROR: pbx CDR StartTime 2025-02-06 07:47:05 - End Time 2025-02-06 10:47:05 [2025-02-06 10:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414525', 'tblTempUsageDetail_20' ) start [2025-02-06 10:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414525', 'tblTempUsageDetail_20' ) end [2025-02-06 10:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414525', 'tblTempVendorCDR_20' ) start [2025-02-06 10:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414525', 'tblTempVendorCDR_20' ) end [2025-02-06 10:47:26] Production.INFO: ProcessCDR(1,14414525,1,1,2) [2025-02-06 10:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414525', 'tblTempUsageDetail_20' ) start [2025-02-06 10:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414525', 'tblTempUsageDetail_20' ) end [2025-02-06 10:47:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:47:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:47:31] Production.INFO: ==30510== Releasing lock... [2025-02-06 10:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:47:31] Production.INFO: 52.75 MB #Memory Used# [2025-02-06 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:48:05 [end_date_ymd] => 2025-02-06 10:48:05 [RateCDR] => 1 ) [2025-02-06 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:48:05' and `end` < '2025-02-06 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:48:25] Production.INFO: count ==3296 [2025-02-06 10:48:26] Production.ERROR: pbx CDR StartTime 2025-02-06 07:48:05 - End Time 2025-02-06 10:48:05 [2025-02-06 10:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414530', 'tblTempUsageDetail_20' ) start [2025-02-06 10:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414530', 'tblTempUsageDetail_20' ) end [2025-02-06 10:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414530', 'tblTempVendorCDR_20' ) start [2025-02-06 10:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414530', 'tblTempVendorCDR_20' ) end [2025-02-06 10:48:27] Production.INFO: ProcessCDR(1,14414530,1,1,2) [2025-02-06 10:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414530', 'tblTempUsageDetail_20' ) start [2025-02-06 10:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414530', 'tblTempUsageDetail_20' ) end [2025-02-06 10:48:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:48:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:48:31] Production.INFO: ==30580== Releasing lock... [2025-02-06 10:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:48:31] Production.INFO: 53 MB #Memory Used# [2025-02-06 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:49:05 [end_date_ymd] => 2025-02-06 10:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:49:05' and `end` < '2025-02-06 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-06 10:49:23] Production.INFO: count ==3300 [2025-02-06 10:49:24] Production.ERROR: pbx CDR StartTime 2025-02-06 07:49:05 - End Time 2025-02-06 10:49:05 [2025-02-06 10:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414535', 'tblTempUsageDetail_20' ) start [2025-02-06 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414535', 'tblTempUsageDetail_20' ) end [2025-02-06 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414535', 'tblTempVendorCDR_20' ) start [2025-02-06 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414535', 'tblTempVendorCDR_20' ) end [2025-02-06 10:49:24] Production.INFO: ProcessCDR(1,14414535,1,1,2) [2025-02-06 10:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414535', 'tblTempUsageDetail_20' ) start [2025-02-06 10:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414535', 'tblTempUsageDetail_20' ) end [2025-02-06 10:49:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:49:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:49:28] Production.INFO: ==30650== Releasing lock... [2025-02-06 10:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:49:28] Production.INFO: 52.5 MB #Memory Used# [2025-02-06 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:50:06 [end_date_ymd] => 2025-02-06 10:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 07:50:06' and `end` < '2025-02-06 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-06 10:50:23] Production.INFO: count ==3323 [2025-02-06 10:50:24] Production.ERROR: pbx CDR StartTime 2025-02-06 07:50:06 - End Time 2025-02-06 10:50:06 [2025-02-06 10:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414541', 'tblTempUsageDetail_20' ) start [2025-02-06 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414541', 'tblTempUsageDetail_20' ) end [2025-02-06 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414541', 'tblTempVendorCDR_20' ) start [2025-02-06 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414541', 'tblTempVendorCDR_20' ) end [2025-02-06 10:50:24] Production.INFO: ProcessCDR(1,14414541,1,1,2) [2025-02-06 10:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414541', 'tblTempUsageDetail_20' ) start [2025-02-06 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414541', 'tblTempUsageDetail_20' ) end [2025-02-06 10:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:50:29] Production.INFO: ==30723== Releasing lock... [2025-02-06 10:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:50:29] Production.INFO: 53 MB #Memory Used# [2025-02-06 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:51:05 [end_date_ymd] => 2025-02-06 10:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:51:05' and `end` < '2025-02-06 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-06 10:51:26] Production.INFO: count ==3401 [2025-02-06 10:51:27] Production.ERROR: pbx CDR StartTime 2025-02-06 07:51:05 - End Time 2025-02-06 10:51:05 [2025-02-06 10:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414546', 'tblTempUsageDetail_20' ) start [2025-02-06 10:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414546', 'tblTempUsageDetail_20' ) end [2025-02-06 10:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414546', 'tblTempVendorCDR_20' ) start [2025-02-06 10:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414546', 'tblTempVendorCDR_20' ) end [2025-02-06 10:51:27] Production.INFO: ProcessCDR(1,14414546,1,1,2) [2025-02-06 10:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414546', 'tblTempUsageDetail_20' ) start [2025-02-06 10:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414546', 'tblTempUsageDetail_20' ) end [2025-02-06 10:51:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:51:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:51:32] Production.INFO: ==30795== Releasing lock... [2025-02-06 10:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:51:32] Production.INFO: 54.25 MB #Memory Used# [2025-02-06 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:52:05 [end_date_ymd] => 2025-02-06 10:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:52:05' and `end` < '2025-02-06 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-06 10:52:31] Production.INFO: count ==3419 [2025-02-06 10:52:32] Production.ERROR: pbx CDR StartTime 2025-02-06 07:52:05 - End Time 2025-02-06 10:52:05 [2025-02-06 10:52:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414551', 'tblTempUsageDetail_20' ) start [2025-02-06 10:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414551', 'tblTempUsageDetail_20' ) end [2025-02-06 10:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414551', 'tblTempVendorCDR_20' ) start [2025-02-06 10:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414551', 'tblTempVendorCDR_20' ) end [2025-02-06 10:52:33] Production.INFO: ProcessCDR(1,14414551,1,1,2) [2025-02-06 10:52:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:52:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:52:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:52:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:52:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414551', 'tblTempUsageDetail_20' ) start [2025-02-06 10:52:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414551', 'tblTempUsageDetail_20' ) end [2025-02-06 10:52:38] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:52:38] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:52:38] Production.INFO: ==30872== Releasing lock... [2025-02-06 10:52:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:52:38] Production.INFO: 54.5 MB #Memory Used# [2025-02-06 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:53:06 [end_date_ymd] => 2025-02-06 10:53:06 [RateCDR] => 1 ) [2025-02-06 10: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-06 07:53:06' and `end` < '2025-02-06 10: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-06 10:53:29] Production.INFO: count ==3421 [2025-02-06 10:53:31] Production.ERROR: pbx CDR StartTime 2025-02-06 07:53:06 - End Time 2025-02-06 10:53:06 [2025-02-06 10:53:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414556', 'tblTempUsageDetail_20' ) start [2025-02-06 10:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414556', 'tblTempUsageDetail_20' ) end [2025-02-06 10:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414556', 'tblTempVendorCDR_20' ) start [2025-02-06 10:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414556', 'tblTempVendorCDR_20' ) end [2025-02-06 10:53:31] Production.INFO: ProcessCDR(1,14414556,1,1,2) [2025-02-06 10:53:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:53:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:53:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414556', 'tblTempUsageDetail_20' ) start [2025-02-06 10:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414556', 'tblTempUsageDetail_20' ) end [2025-02-06 10:53:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:53:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:53:36] Production.INFO: ==30943== Releasing lock... [2025-02-06 10:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:53:36] Production.INFO: 54.25 MB #Memory Used# [2025-02-06 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:54:05 [end_date_ymd] => 2025-02-06 10:54:05 [RateCDR] => 1 ) [2025-02-06 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 07:54:05' and `end` < '2025-02-06 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 10:54:26] Production.INFO: count ==3427 [2025-02-06 10:54:27] Production.ERROR: pbx CDR StartTime 2025-02-06 07:54:05 - End Time 2025-02-06 10:54:05 [2025-02-06 10:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414561', 'tblTempUsageDetail_20' ) start [2025-02-06 10:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414561', 'tblTempUsageDetail_20' ) end [2025-02-06 10:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414561', 'tblTempVendorCDR_20' ) start [2025-02-06 10:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414561', 'tblTempVendorCDR_20' ) end [2025-02-06 10:54:27] Production.INFO: ProcessCDR(1,14414561,1,1,2) [2025-02-06 10:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414561', 'tblTempUsageDetail_20' ) start [2025-02-06 10:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414561', 'tblTempUsageDetail_20' ) end [2025-02-06 10:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:54:33] Production.INFO: ==31013== Releasing lock... [2025-02-06 10:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:54:33] Production.INFO: 53.75 MB #Memory Used# [2025-02-06 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:55:05 [end_date_ymd] => 2025-02-06 10:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:55:05' and `end` < '2025-02-06 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-06 10:55:29] Production.INFO: count ==3451 [2025-02-06 10:55:30] Production.ERROR: pbx CDR StartTime 2025-02-06 07:55:05 - End Time 2025-02-06 10:55:05 [2025-02-06 10:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414566', 'tblTempUsageDetail_20' ) start [2025-02-06 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414566', 'tblTempUsageDetail_20' ) end [2025-02-06 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414566', 'tblTempVendorCDR_20' ) start [2025-02-06 10:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414566', 'tblTempVendorCDR_20' ) end [2025-02-06 10:55:30] Production.INFO: ProcessCDR(1,14414566,1,1,2) [2025-02-06 10:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414566', 'tblTempUsageDetail_20' ) start [2025-02-06 10:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414566', 'tblTempUsageDetail_20' ) end [2025-02-06 10:55:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:55:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:55:35] Production.INFO: ==31084== Releasing lock... [2025-02-06 10:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:55:35] Production.INFO: 54.25 MB #Memory Used# [2025-02-06 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:56:05 [end_date_ymd] => 2025-02-06 10:56:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:56:05' and `end` < '2025-02-06 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-06 10:56:33] Production.INFO: count ==3461 [2025-02-06 10:56:34] Production.ERROR: pbx CDR StartTime 2025-02-06 07:56:05 - End Time 2025-02-06 10:56:05 [2025-02-06 10:56:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414571', 'tblTempUsageDetail_20' ) start [2025-02-06 10:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414571', 'tblTempUsageDetail_20' ) end [2025-02-06 10:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414571', 'tblTempVendorCDR_20' ) start [2025-02-06 10:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414571', 'tblTempVendorCDR_20' ) end [2025-02-06 10:56:34] Production.INFO: ProcessCDR(1,14414571,1,1,2) [2025-02-06 10:56:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:56:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:56:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:56:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:56:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414571', 'tblTempUsageDetail_20' ) start [2025-02-06 10:56:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414571', 'tblTempUsageDetail_20' ) end [2025-02-06 10:56:40] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:56:40] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:56:40] Production.INFO: ==31159== Releasing lock... [2025-02-06 10:56:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:56:40] Production.INFO: 54.25 MB #Memory Used# [2025-02-06 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:57:06 [end_date_ymd] => 2025-02-06 10:57:06 [RateCDR] => 1 ) [2025-02-06 10: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-06 07:57:06' and `end` < '2025-02-06 10: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-06 10:57:25] Production.INFO: count ==3478 [2025-02-06 10:57:27] Production.ERROR: pbx CDR StartTime 2025-02-06 07:57:06 - End Time 2025-02-06 10:57:06 [2025-02-06 10:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414576', 'tblTempUsageDetail_20' ) start [2025-02-06 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414576', 'tblTempUsageDetail_20' ) end [2025-02-06 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414576', 'tblTempVendorCDR_20' ) start [2025-02-06 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414576', 'tblTempVendorCDR_20' ) end [2025-02-06 10:57:27] Production.INFO: ProcessCDR(1,14414576,1,1,2) [2025-02-06 10:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414576', 'tblTempUsageDetail_20' ) start [2025-02-06 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414576', 'tblTempUsageDetail_20' ) end [2025-02-06 10:57:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:57:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:57:32] Production.INFO: ==31230== Releasing lock... [2025-02-06 10:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:57:32] Production.INFO: 55.75 MB #Memory Used# [2025-02-06 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:58:06 [end_date_ymd] => 2025-02-06 10:58:06 [RateCDR] => 1 ) [2025-02-06 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-06 07:58:06' and `end` < '2025-02-06 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-06 10:58:25] Production.INFO: count ==3514 [2025-02-06 10:58:27] Production.ERROR: pbx CDR StartTime 2025-02-06 07:58:06 - End Time 2025-02-06 10:58:06 [2025-02-06 10:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414581', 'tblTempUsageDetail_20' ) start [2025-02-06 10:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414581', 'tblTempUsageDetail_20' ) end [2025-02-06 10:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414581', 'tblTempVendorCDR_20' ) start [2025-02-06 10:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414581', 'tblTempVendorCDR_20' ) end [2025-02-06 10:58:27] Production.INFO: ProcessCDR(1,14414581,1,1,2) [2025-02-06 10:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414581', 'tblTempUsageDetail_20' ) start [2025-02-06 10:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414581', 'tblTempUsageDetail_20' ) end [2025-02-06 10:58:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:58:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:58:32] Production.INFO: ==31301== Releasing lock... [2025-02-06 10:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:58:32] Production.INFO: 54.75 MB #Memory Used# [2025-02-06 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 07:59:05 [end_date_ymd] => 2025-02-06 10:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 07:59:05' and `end` < '2025-02-06 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-06 10:59:24] Production.INFO: count ==3526 [2025-02-06 10:59:25] Production.ERROR: pbx CDR StartTime 2025-02-06 07:59:05 - End Time 2025-02-06 10:59:05 [2025-02-06 10:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414586', 'tblTempUsageDetail_20' ) start [2025-02-06 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414586', 'tblTempUsageDetail_20' ) end [2025-02-06 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414586', 'tblTempVendorCDR_20' ) start [2025-02-06 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414586', 'tblTempVendorCDR_20' ) end [2025-02-06 10:59:25] Production.INFO: ProcessCDR(1,14414586,1,1,2) [2025-02-06 10:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 10:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 10:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414586', 'tblTempUsageDetail_20' ) start [2025-02-06 10:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414586', 'tblTempUsageDetail_20' ) end [2025-02-06 10:59:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 10:59:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 10:59:30] Production.INFO: ==31370== Releasing lock... [2025-02-06 10:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 10:59:30] Production.INFO: 55 MB #Memory Used# [2025-02-06 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:00:06 [end_date_ymd] => 2025-02-06 11:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 08:00:06' and `end` < '2025-02-06 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-06 11:00:22] Production.INFO: count ==3537 [2025-02-06 11:00:24] Production.ERROR: pbx CDR StartTime 2025-02-06 08:00:06 - End Time 2025-02-06 11:00:06 [2025-02-06 11:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414591', 'tblTempUsageDetail_20' ) start [2025-02-06 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414591', 'tblTempUsageDetail_20' ) end [2025-02-06 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414591', 'tblTempVendorCDR_20' ) start [2025-02-06 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414591', 'tblTempVendorCDR_20' ) end [2025-02-06 11:00:24] Production.INFO: ProcessCDR(1,14414591,1,1,2) [2025-02-06 11:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414591', 'tblTempUsageDetail_20' ) start [2025-02-06 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414591', 'tblTempUsageDetail_20' ) end [2025-02-06 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:00:29] Production.INFO: ==31449== Releasing lock... [2025-02-06 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:00:29] Production.INFO: 54.5 MB #Memory Used# [2025-02-06 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:01:05 [end_date_ymd] => 2025-02-06 11:01:05 [RateCDR] => 1 ) [2025-02-06 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:01:05' and `end` < '2025-02-06 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:01:19] Production.INFO: count ==3629 [2025-02-06 11:01:21] Production.ERROR: pbx CDR StartTime 2025-02-06 08:01:05 - End Time 2025-02-06 11:01:05 [2025-02-06 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414597', 'tblTempUsageDetail_20' ) start [2025-02-06 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414597', 'tblTempUsageDetail_20' ) end [2025-02-06 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414597', 'tblTempVendorCDR_20' ) start [2025-02-06 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414597', 'tblTempVendorCDR_20' ) end [2025-02-06 11:01:21] Production.INFO: ProcessCDR(1,14414597,1,1,2) [2025-02-06 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414597', 'tblTempUsageDetail_20' ) start [2025-02-06 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414597', 'tblTempUsageDetail_20' ) end [2025-02-06 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:01:26] Production.INFO: ==31534== Releasing lock... [2025-02-06 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:01:26] Production.INFO: 55.25 MB #Memory Used# [2025-02-06 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:02:05 [end_date_ymd] => 2025-02-06 11:02:05 [RateCDR] => 1 ) [2025-02-06 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:02:05' and `end` < '2025-02-06 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:02:32] Production.INFO: count ==3655 [2025-02-06 11:02:34] Production.ERROR: pbx CDR StartTime 2025-02-06 08:02:05 - End Time 2025-02-06 11:02:05 [2025-02-06 11:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414602', 'tblTempUsageDetail_20' ) start [2025-02-06 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414602', 'tblTempUsageDetail_20' ) end [2025-02-06 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414602', 'tblTempVendorCDR_20' ) start [2025-02-06 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414602', 'tblTempVendorCDR_20' ) end [2025-02-06 11:02:34] Production.INFO: ProcessCDR(1,14414602,1,1,2) [2025-02-06 11:02:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:02:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:02:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414602', 'tblTempUsageDetail_20' ) start [2025-02-06 11:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414602', 'tblTempUsageDetail_20' ) end [2025-02-06 11:02:39] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:02:39] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:02:39] Production.INFO: ==31722== Releasing lock... [2025-02-06 11:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:02:39] Production.INFO: 55.75 MB #Memory Used# [2025-02-06 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:03:06 [end_date_ymd] => 2025-02-06 11:03:06 [RateCDR] => 1 ) [2025-02-06 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:03:06' and `end` < '2025-02-06 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:03:24] Production.INFO: count ==3672 [2025-02-06 11:03:26] Production.ERROR: pbx CDR StartTime 2025-02-06 08:03:06 - End Time 2025-02-06 11:03:06 [2025-02-06 11:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414607', 'tblTempUsageDetail_20' ) start [2025-02-06 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414607', 'tblTempUsageDetail_20' ) end [2025-02-06 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414607', 'tblTempVendorCDR_20' ) start [2025-02-06 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414607', 'tblTempVendorCDR_20' ) end [2025-02-06 11:03:26] Production.INFO: ProcessCDR(1,14414607,1,1,2) [2025-02-06 11:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414607', 'tblTempUsageDetail_20' ) start [2025-02-06 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414607', 'tblTempUsageDetail_20' ) end [2025-02-06 11:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:03:31] Production.INFO: ==31793== Releasing lock... [2025-02-06 11:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:03:31] Production.INFO: 56 MB #Memory Used# [2025-02-06 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:04:05 [end_date_ymd] => 2025-02-06 11:04:05 [RateCDR] => 1 ) [2025-02-06 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:04:05' and `end` < '2025-02-06 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-06 11:04:24] Production.INFO: count ==3687 [2025-02-06 11:04:26] Production.ERROR: pbx CDR StartTime 2025-02-06 08:04:05 - End Time 2025-02-06 11:04:05 [2025-02-06 11:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414612', 'tblTempUsageDetail_20' ) start [2025-02-06 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414612', 'tblTempUsageDetail_20' ) end [2025-02-06 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414612', 'tblTempVendorCDR_20' ) start [2025-02-06 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414612', 'tblTempVendorCDR_20' ) end [2025-02-06 11:04:26] Production.INFO: ProcessCDR(1,14414612,1,1,2) [2025-02-06 11:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414612', 'tblTempUsageDetail_20' ) start [2025-02-06 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414612', 'tblTempUsageDetail_20' ) end [2025-02-06 11:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:04:30] Production.INFO: ==31864== Releasing lock... [2025-02-06 11:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:04:30] Production.INFO: 56 MB #Memory Used# [2025-02-06 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:05:05 [end_date_ymd] => 2025-02-06 11:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:05:05' and `end` < '2025-02-06 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-06 11:05:26] Production.INFO: count ==3660 [2025-02-06 11:05:28] Production.ERROR: pbx CDR StartTime 2025-02-06 08:05:05 - End Time 2025-02-06 11:05:05 [2025-02-06 11:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414617', 'tblTempUsageDetail_20' ) start [2025-02-06 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414617', 'tblTempUsageDetail_20' ) end [2025-02-06 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414617', 'tblTempVendorCDR_20' ) start [2025-02-06 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414617', 'tblTempVendorCDR_20' ) end [2025-02-06 11:05:28] Production.INFO: ProcessCDR(1,14414617,1,1,2) [2025-02-06 11:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414617', 'tblTempUsageDetail_20' ) start [2025-02-06 11:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414617', 'tblTempUsageDetail_20' ) end [2025-02-06 11:05:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:05:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:05:34] Production.INFO: ==32016== Releasing lock... [2025-02-06 11:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:05:34] Production.INFO: 55.5 MB #Memory Used# [2025-02-06 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:06:05 [end_date_ymd] => 2025-02-06 11:06:05 [RateCDR] => 1 ) [2025-02-06 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:06:05' and `end` < '2025-02-06 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:06:28] Production.INFO: count ==3669 [2025-02-06 11:06:30] Production.ERROR: pbx CDR StartTime 2025-02-06 08:06:05 - End Time 2025-02-06 11:06:05 [2025-02-06 11:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414622', 'tblTempUsageDetail_20' ) start [2025-02-06 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414622', 'tblTempUsageDetail_20' ) end [2025-02-06 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414622', 'tblTempVendorCDR_20' ) start [2025-02-06 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414622', 'tblTempVendorCDR_20' ) end [2025-02-06 11:06:30] Production.INFO: ProcessCDR(1,14414622,1,1,2) [2025-02-06 11:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414622', 'tblTempUsageDetail_20' ) start [2025-02-06 11:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414622', 'tblTempUsageDetail_20' ) end [2025-02-06 11:06:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:06:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:06:35] Production.INFO: ==32100== Releasing lock... [2025-02-06 11:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:06:35] Production.INFO: 55.75 MB #Memory Used# [2025-02-06 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:07:06 [end_date_ymd] => 2025-02-06 11:07:06 [RateCDR] => 1 ) [2025-02-06 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:07:06' and `end` < '2025-02-06 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:07:24] Production.INFO: count ==3704 [2025-02-06 11:07:25] Production.ERROR: pbx CDR StartTime 2025-02-06 08:07:06 - End Time 2025-02-06 11:07:06 [2025-02-06 11:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414627', 'tblTempUsageDetail_20' ) start [2025-02-06 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414627', 'tblTempUsageDetail_20' ) end [2025-02-06 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414627', 'tblTempVendorCDR_20' ) start [2025-02-06 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414627', 'tblTempVendorCDR_20' ) end [2025-02-06 11:07:26] Production.INFO: ProcessCDR(1,14414627,1,1,2) [2025-02-06 11:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414627', 'tblTempUsageDetail_20' ) start [2025-02-06 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414627', 'tblTempUsageDetail_20' ) end [2025-02-06 11:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:07:29] Production.INFO: ==32175== Releasing lock... [2025-02-06 11:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:07:29] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:08:06 [end_date_ymd] => 2025-02-06 11:08:06 [RateCDR] => 1 ) [2025-02-06 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-06 08:08:06' and `end` < '2025-02-06 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-06 11:08:29] Production.INFO: count ==3719 [2025-02-06 11:08:31] Production.ERROR: pbx CDR StartTime 2025-02-06 08:08:06 - End Time 2025-02-06 11:08:06 [2025-02-06 11:08:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414632', 'tblTempUsageDetail_20' ) start [2025-02-06 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414632', 'tblTempUsageDetail_20' ) end [2025-02-06 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414632', 'tblTempVendorCDR_20' ) start [2025-02-06 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414632', 'tblTempVendorCDR_20' ) end [2025-02-06 11:08:31] Production.INFO: ProcessCDR(1,14414632,1,1,2) [2025-02-06 11:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:08:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:08:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:08:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414632', 'tblTempUsageDetail_20' ) start [2025-02-06 11:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414632', 'tblTempUsageDetail_20' ) end [2025-02-06 11:08:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:08:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:08:37] Production.INFO: ==32285== Releasing lock... [2025-02-06 11:08:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:08:37] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:09:06 [end_date_ymd] => 2025-02-06 11:09:06 [RateCDR] => 1 ) [2025-02-06 11:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:09:06' and `end` < '2025-02-06 11:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:09:24] Production.INFO: count ==3748 [2025-02-06 11:09:25] Production.ERROR: pbx CDR StartTime 2025-02-06 08:09:06 - End Time 2025-02-06 11:09:06 [2025-02-06 11:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414637', 'tblTempUsageDetail_20' ) start [2025-02-06 11:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414637', 'tblTempUsageDetail_20' ) end [2025-02-06 11:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414637', 'tblTempVendorCDR_20' ) start [2025-02-06 11:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414637', 'tblTempVendorCDR_20' ) end [2025-02-06 11:09:25] Production.INFO: ProcessCDR(1,14414637,1,1,2) [2025-02-06 11:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414637', 'tblTempUsageDetail_20' ) start [2025-02-06 11:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414637', 'tblTempUsageDetail_20' ) end [2025-02-06 11:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:09:30] Production.INFO: ==32443== Releasing lock... [2025-02-06 11:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:09:30] Production.INFO: 56 MB #Memory Used# [2025-02-06 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:10:06 [end_date_ymd] => 2025-02-06 11:10:06 [RateCDR] => 1 ) [2025-02-06 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:10:06' and `end` < '2025-02-06 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:10:25] Production.INFO: count ==3747 [2025-02-06 11:10:27] Production.ERROR: pbx CDR StartTime 2025-02-06 08:10:06 - End Time 2025-02-06 11:10:06 [2025-02-06 11:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414643', 'tblTempUsageDetail_20' ) start [2025-02-06 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414643', 'tblTempUsageDetail_20' ) end [2025-02-06 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414643', 'tblTempVendorCDR_20' ) start [2025-02-06 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414643', 'tblTempVendorCDR_20' ) end [2025-02-06 11:10:27] Production.INFO: ProcessCDR(1,14414643,1,1,2) [2025-02-06 11:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414643', 'tblTempUsageDetail_20' ) start [2025-02-06 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414643', 'tblTempUsageDetail_20' ) end [2025-02-06 11:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:10:31] Production.INFO: ==32539== Releasing lock... [2025-02-06 11:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:10:31] Production.INFO: 56.5 MB #Memory Used# [2025-02-06 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:11:05 [end_date_ymd] => 2025-02-06 11:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:11:05' and `end` < '2025-02-06 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-06 11:11:23] Production.INFO: count ==3777 [2025-02-06 11:11:24] Production.ERROR: pbx CDR StartTime 2025-02-06 08:11:05 - End Time 2025-02-06 11:11:05 [2025-02-06 11:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414648', 'tblTempUsageDetail_20' ) start [2025-02-06 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414648', 'tblTempUsageDetail_20' ) end [2025-02-06 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414648', 'tblTempVendorCDR_20' ) start [2025-02-06 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414648', 'tblTempVendorCDR_20' ) end [2025-02-06 11:11:25] Production.INFO: ProcessCDR(1,14414648,1,1,2) [2025-02-06 11:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414648', 'tblTempUsageDetail_20' ) start [2025-02-06 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414648', 'tblTempUsageDetail_20' ) end [2025-02-06 11:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:11:29] Production.INFO: ==32644== Releasing lock... [2025-02-06 11:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:11:29] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:12:05 [end_date_ymd] => 2025-02-06 11:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:12:05' and `end` < '2025-02-06 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-06 11:12:20] Production.INFO: count ==3770 [2025-02-06 11:12:21] Production.ERROR: pbx CDR StartTime 2025-02-06 08:12:05 - End Time 2025-02-06 11:12:05 [2025-02-06 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414653', 'tblTempUsageDetail_20' ) start [2025-02-06 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414653', 'tblTempUsageDetail_20' ) end [2025-02-06 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414653', 'tblTempVendorCDR_20' ) start [2025-02-06 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414653', 'tblTempVendorCDR_20' ) end [2025-02-06 11:12:22] Production.INFO: ProcessCDR(1,14414653,1,1,2) [2025-02-06 11:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414653', 'tblTempUsageDetail_20' ) start [2025-02-06 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414653', 'tblTempUsageDetail_20' ) end [2025-02-06 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:12:25] Production.INFO: ==373== Releasing lock... [2025-02-06 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:12:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-06 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:13:06 [end_date_ymd] => 2025-02-06 11:13:06 [RateCDR] => 1 ) [2025-02-06 11: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-06 08:13:06' and `end` < '2025-02-06 11: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-06 11:13:20] Production.INFO: count ==3772 [2025-02-06 11:13:21] Production.ERROR: pbx CDR StartTime 2025-02-06 08:13:06 - End Time 2025-02-06 11:13:06 [2025-02-06 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414658', 'tblTempUsageDetail_20' ) start [2025-02-06 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414658', 'tblTempUsageDetail_20' ) end [2025-02-06 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414658', 'tblTempVendorCDR_20' ) start [2025-02-06 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414658', 'tblTempVendorCDR_20' ) end [2025-02-06 11:13:21] Production.INFO: ProcessCDR(1,14414658,1,1,2) [2025-02-06 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414658', 'tblTempUsageDetail_20' ) start [2025-02-06 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414658', 'tblTempUsageDetail_20' ) end [2025-02-06 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:13:26] Production.INFO: ==472== Releasing lock... [2025-02-06 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:13:26] Production.INFO: 56.5 MB #Memory Used# [2025-02-06 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:14:05 [end_date_ymd] => 2025-02-06 11:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:14:05' and `end` < '2025-02-06 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-06 11:14:18] Production.INFO: count ==3773 [2025-02-06 11:14:20] Production.ERROR: pbx CDR StartTime 2025-02-06 08:14:05 - End Time 2025-02-06 11:14:05 [2025-02-06 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414663', 'tblTempUsageDetail_20' ) start [2025-02-06 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414663', 'tblTempUsageDetail_20' ) end [2025-02-06 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414663', 'tblTempVendorCDR_20' ) start [2025-02-06 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414663', 'tblTempVendorCDR_20' ) end [2025-02-06 11:14:20] Production.INFO: ProcessCDR(1,14414663,1,1,2) [2025-02-06 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414663', 'tblTempUsageDetail_20' ) start [2025-02-06 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414663', 'tblTempUsageDetail_20' ) end [2025-02-06 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:14:25] Production.INFO: ==573== Releasing lock... [2025-02-06 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:14:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-06 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:15:05 [end_date_ymd] => 2025-02-06 11:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:15:05' and `end` < '2025-02-06 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-06 11:15:21] Production.INFO: count ==3781 [2025-02-06 11:15:22] Production.ERROR: pbx CDR StartTime 2025-02-06 08:15:05 - End Time 2025-02-06 11:15:05 [2025-02-06 11:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414668', 'tblTempUsageDetail_20' ) start [2025-02-06 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414668', 'tblTempUsageDetail_20' ) end [2025-02-06 11:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414668', 'tblTempVendorCDR_20' ) start [2025-02-06 11:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414668', 'tblTempVendorCDR_20' ) end [2025-02-06 11:15:23] Production.INFO: ProcessCDR(1,14414668,1,1,2) [2025-02-06 11:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414668', 'tblTempUsageDetail_20' ) start [2025-02-06 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414668', 'tblTempUsageDetail_20' ) end [2025-02-06 11:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:15:27] Production.INFO: ==749== Releasing lock... [2025-02-06 11:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:15:27] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:16:05 [end_date_ymd] => 2025-02-06 11:16:05 [RateCDR] => 1 ) [2025-02-06 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:16:05' and `end` < '2025-02-06 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:16:18] Production.INFO: count ==3788 [2025-02-06 11:16:20] Production.ERROR: pbx CDR StartTime 2025-02-06 08:16:05 - End Time 2025-02-06 11:16:05 [2025-02-06 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414673', 'tblTempUsageDetail_20' ) start [2025-02-06 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414673', 'tblTempUsageDetail_20' ) end [2025-02-06 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414673', 'tblTempVendorCDR_20' ) start [2025-02-06 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414673', 'tblTempVendorCDR_20' ) end [2025-02-06 11:16:20] Production.INFO: ProcessCDR(1,14414673,1,1,2) [2025-02-06 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414673', 'tblTempUsageDetail_20' ) start [2025-02-06 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414673', 'tblTempUsageDetail_20' ) end [2025-02-06 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:16:25] Production.INFO: ==892== Releasing lock... [2025-02-06 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:16:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:17:05 [end_date_ymd] => 2025-02-06 11:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:17:05' and `end` < '2025-02-06 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-06 11:17:23] Production.INFO: count ==3795 [2025-02-06 11:17:24] Production.ERROR: pbx CDR StartTime 2025-02-06 08:17:05 - End Time 2025-02-06 11:17:05 [2025-02-06 11:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414678', 'tblTempUsageDetail_20' ) start [2025-02-06 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414678', 'tblTempUsageDetail_20' ) end [2025-02-06 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414678', 'tblTempVendorCDR_20' ) start [2025-02-06 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414678', 'tblTempVendorCDR_20' ) end [2025-02-06 11:17:24] Production.INFO: ProcessCDR(1,14414678,1,1,2) [2025-02-06 11:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414678', 'tblTempUsageDetail_20' ) start [2025-02-06 11:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414678', 'tblTempUsageDetail_20' ) end [2025-02-06 11:17:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:17:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:17:29] Production.INFO: ==989== Releasing lock... [2025-02-06 11:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:17:29] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:18:06 [end_date_ymd] => 2025-02-06 11:18:06 [RateCDR] => 1 ) [2025-02-06 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:18:06' and `end` < '2025-02-06 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:18:26] Production.INFO: count ==3809 [2025-02-06 11:18:27] Production.ERROR: pbx CDR StartTime 2025-02-06 08:18:06 - End Time 2025-02-06 11:18:06 [2025-02-06 11:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414683', 'tblTempUsageDetail_20' ) start [2025-02-06 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414683', 'tblTempUsageDetail_20' ) end [2025-02-06 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414683', 'tblTempVendorCDR_20' ) start [2025-02-06 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414683', 'tblTempVendorCDR_20' ) end [2025-02-06 11:18:27] Production.INFO: ProcessCDR(1,14414683,1,1,2) [2025-02-06 11:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414683', 'tblTempUsageDetail_20' ) start [2025-02-06 11:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414683', 'tblTempUsageDetail_20' ) end [2025-02-06 11:18:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:18:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:18:32] Production.INFO: ==1128== Releasing lock... [2025-02-06 11:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:18:32] Production.INFO: 56.5 MB #Memory Used# [2025-02-06 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:19:06 [end_date_ymd] => 2025-02-06 11:19:06 [RateCDR] => 1 ) [2025-02-06 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:19:06' and `end` < '2025-02-06 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:19:26] Production.INFO: count ==3818 [2025-02-06 11:19:27] Production.ERROR: pbx CDR StartTime 2025-02-06 08:19:06 - End Time 2025-02-06 11:19:06 [2025-02-06 11:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414688', 'tblTempUsageDetail_20' ) start [2025-02-06 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414688', 'tblTempUsageDetail_20' ) end [2025-02-06 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414688', 'tblTempVendorCDR_20' ) start [2025-02-06 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414688', 'tblTempVendorCDR_20' ) end [2025-02-06 11:19:27] Production.INFO: ProcessCDR(1,14414688,1,1,2) [2025-02-06 11:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414688', 'tblTempUsageDetail_20' ) start [2025-02-06 11:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414688', 'tblTempUsageDetail_20' ) end [2025-02-06 11:19:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:19:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:19:32] Production.INFO: ==1239== Releasing lock... [2025-02-06 11:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:19:32] Production.INFO: 56.5 MB #Memory Used# [2025-02-06 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:20:07 [end_date_ymd] => 2025-02-06 11:20:07 [RateCDR] => 1 ) [2025-02-06 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-06 08:20:07' and `end` < '2025-02-06 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-06 11:20:23] Production.INFO: count ==3833 [2025-02-06 11:20:25] Production.ERROR: pbx CDR StartTime 2025-02-06 08:20:07 - End Time 2025-02-06 11:20:07 [2025-02-06 11:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414694', 'tblTempUsageDetail_20' ) start [2025-02-06 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414694', 'tblTempUsageDetail_20' ) end [2025-02-06 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414694', 'tblTempVendorCDR_20' ) start [2025-02-06 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414694', 'tblTempVendorCDR_20' ) end [2025-02-06 11:20:25] Production.INFO: ProcessCDR(1,14414694,1,1,2) [2025-02-06 11:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414694', 'tblTempUsageDetail_20' ) start [2025-02-06 11:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414694', 'tblTempUsageDetail_20' ) end [2025-02-06 11:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:20:30] Production.INFO: ==1358== Releasing lock... [2025-02-06 11:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:20:30] Production.INFO: 56.75 MB #Memory Used# [2025-02-06 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:21:05 [end_date_ymd] => 2025-02-06 11:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:21:05' and `end` < '2025-02-06 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-06 11:21:30] Production.INFO: count ==3906 [2025-02-06 11:21:31] Production.ERROR: pbx CDR StartTime 2025-02-06 08:21:05 - End Time 2025-02-06 11:21:05 [2025-02-06 11:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414699', 'tblTempUsageDetail_20' ) start [2025-02-06 11:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414699', 'tblTempUsageDetail_20' ) end [2025-02-06 11:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414699', 'tblTempVendorCDR_20' ) start [2025-02-06 11:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414699', 'tblTempVendorCDR_20' ) end [2025-02-06 11:21:32] Production.INFO: ProcessCDR(1,14414699,1,1,2) [2025-02-06 11:21:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:21:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:21:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:21:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414699', 'tblTempUsageDetail_20' ) start [2025-02-06 11:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414699', 'tblTempUsageDetail_20' ) end [2025-02-06 11:21:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:21:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:21:37] Production.INFO: ==1463== Releasing lock... [2025-02-06 11:21:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:21:37] Production.INFO: 57.5 MB #Memory Used# [2025-02-06 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:22:06 [end_date_ymd] => 2025-02-06 11:22:06 [RateCDR] => 1 ) [2025-02-06 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-06 08:22:06' and `end` < '2025-02-06 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-06 11:22:26] Production.INFO: count ==3933 [2025-02-06 11:22:28] Production.ERROR: pbx CDR StartTime 2025-02-06 08:22:06 - End Time 2025-02-06 11:22:06 [2025-02-06 11:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414704', 'tblTempUsageDetail_20' ) start [2025-02-06 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414704', 'tblTempUsageDetail_20' ) end [2025-02-06 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414704', 'tblTempVendorCDR_20' ) start [2025-02-06 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414704', 'tblTempVendorCDR_20' ) end [2025-02-06 11:22:28] Production.INFO: ProcessCDR(1,14414704,1,1,2) [2025-02-06 11:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414704', 'tblTempUsageDetail_20' ) start [2025-02-06 11:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414704', 'tblTempUsageDetail_20' ) end [2025-02-06 11:22:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:22:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:22:33] Production.INFO: ==1602== Releasing lock... [2025-02-06 11:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:22:33] Production.INFO: 57.75 MB #Memory Used# [2025-02-06 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:23:05 [end_date_ymd] => 2025-02-06 11:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:23:05' and `end` < '2025-02-06 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-06 11:23:31] Production.INFO: count ==3966 [2025-02-06 11:23:32] Production.ERROR: pbx CDR StartTime 2025-02-06 08:23:05 - End Time 2025-02-06 11:23:05 [2025-02-06 11:23:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414709', 'tblTempUsageDetail_20' ) start [2025-02-06 11:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414709', 'tblTempUsageDetail_20' ) end [2025-02-06 11:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414709', 'tblTempVendorCDR_20' ) start [2025-02-06 11:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414709', 'tblTempVendorCDR_20' ) end [2025-02-06 11:23:32] Production.INFO: ProcessCDR(1,14414709,1,1,2) [2025-02-06 11:23:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:23:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:23:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:23:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414709', 'tblTempUsageDetail_20' ) start [2025-02-06 11:23:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414709', 'tblTempUsageDetail_20' ) end [2025-02-06 11:23:38] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:23:38] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:23:38] Production.INFO: ==1707== Releasing lock... [2025-02-06 11:23:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:23:38] Production.INFO: 57.5 MB #Memory Used# [2025-02-06 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:24:06 [end_date_ymd] => 2025-02-06 11:24:06 [RateCDR] => 1 ) [2025-02-06 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-06 08:24:06' and `end` < '2025-02-06 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-06 11:24:35] Production.INFO: count ==3977 [2025-02-06 11:24:37] Production.ERROR: pbx CDR StartTime 2025-02-06 08:24:06 - End Time 2025-02-06 11:24:06 [2025-02-06 11:24:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:24:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414714', 'tblTempUsageDetail_20' ) start [2025-02-06 11:24:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414714', 'tblTempUsageDetail_20' ) end [2025-02-06 11:24:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414714', 'tblTempVendorCDR_20' ) start [2025-02-06 11:24:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414714', 'tblTempVendorCDR_20' ) end [2025-02-06 11:24:37] Production.INFO: ProcessCDR(1,14414714,1,1,2) [2025-02-06 11:24:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:24:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:24:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:24:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:24:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414714', 'tblTempUsageDetail_20' ) start [2025-02-06 11:24:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414714', 'tblTempUsageDetail_20' ) end [2025-02-06 11:24:43] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:24:43] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:24:43] Production.INFO: ==1814== Releasing lock... [2025-02-06 11:24:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:24:43] Production.INFO: 57.75 MB #Memory Used# [2025-02-06 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:25:05 [end_date_ymd] => 2025-02-06 11:25:05 [RateCDR] => 1 ) [2025-02-06 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:25:05' and `end` < '2025-02-06 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:25:25] Production.INFO: count ==4054 [2025-02-06 11:25:27] Production.ERROR: pbx CDR StartTime 2025-02-06 08:25:05 - End Time 2025-02-06 11:25:05 [2025-02-06 11:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414719', 'tblTempUsageDetail_20' ) start [2025-02-06 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414719', 'tblTempUsageDetail_20' ) end [2025-02-06 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414719', 'tblTempVendorCDR_20' ) start [2025-02-06 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414719', 'tblTempVendorCDR_20' ) end [2025-02-06 11:25:27] Production.INFO: ProcessCDR(1,14414719,1,1,2) [2025-02-06 11:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414719', 'tblTempUsageDetail_20' ) start [2025-02-06 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414719', 'tblTempUsageDetail_20' ) end [2025-02-06 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:25:32] Production.INFO: ==1919== Releasing lock... [2025-02-06 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:25:32] Production.INFO: 58.25 MB #Memory Used# [2025-02-06 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:26:06 [end_date_ymd] => 2025-02-06 11:26:06 [RateCDR] => 1 ) [2025-02-06 11: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-06 08:26:06' and `end` < '2025-02-06 11: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-06 11:26:29] Production.INFO: count ==4073 [2025-02-06 11:26:30] Production.ERROR: pbx CDR StartTime 2025-02-06 08:26:06 - End Time 2025-02-06 11:26:06 [2025-02-06 11:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414724', 'tblTempUsageDetail_20' ) start [2025-02-06 11:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414724', 'tblTempUsageDetail_20' ) end [2025-02-06 11:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414724', 'tblTempVendorCDR_20' ) start [2025-02-06 11:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414724', 'tblTempVendorCDR_20' ) end [2025-02-06 11:26:31] Production.INFO: ProcessCDR(1,14414724,1,1,2) [2025-02-06 11:26:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414724', 'tblTempUsageDetail_20' ) start [2025-02-06 11:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414724', 'tblTempUsageDetail_20' ) end [2025-02-06 11:26:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:26:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:26:35] Production.INFO: ==2022== Releasing lock... [2025-02-06 11:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:26:35] Production.INFO: 58.5 MB #Memory Used# [2025-02-06 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:27:05 [end_date_ymd] => 2025-02-06 11:27:05 [RateCDR] => 1 ) [2025-02-06 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:27:05' and `end` < '2025-02-06 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:27:26] Production.INFO: count ==4094 [2025-02-06 11:27:28] Production.ERROR: pbx CDR StartTime 2025-02-06 08:27:05 - End Time 2025-02-06 11:27:05 [2025-02-06 11:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414729', 'tblTempUsageDetail_20' ) start [2025-02-06 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414729', 'tblTempUsageDetail_20' ) end [2025-02-06 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414729', 'tblTempVendorCDR_20' ) start [2025-02-06 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414729', 'tblTempVendorCDR_20' ) end [2025-02-06 11:27:28] Production.INFO: ProcessCDR(1,14414729,1,1,2) [2025-02-06 11:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414729', 'tblTempUsageDetail_20' ) start [2025-02-06 11:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414729', 'tblTempUsageDetail_20' ) end [2025-02-06 11:27:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:27:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:27:33] Production.INFO: ==2127== Releasing lock... [2025-02-06 11:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:27:33] Production.INFO: 58.5 MB #Memory Used# [2025-02-06 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:28:06 [end_date_ymd] => 2025-02-06 11:28:06 [RateCDR] => 1 ) [2025-02-06 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:28:06' and `end` < '2025-02-06 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:28:27] Production.INFO: count ==4105 [2025-02-06 11:28:29] Production.ERROR: pbx CDR StartTime 2025-02-06 08:28:06 - End Time 2025-02-06 11:28:06 [2025-02-06 11:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414734', 'tblTempUsageDetail_20' ) start [2025-02-06 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414734', 'tblTempUsageDetail_20' ) end [2025-02-06 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414734', 'tblTempVendorCDR_20' ) start [2025-02-06 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414734', 'tblTempVendorCDR_20' ) end [2025-02-06 11:28:29] Production.INFO: ProcessCDR(1,14414734,1,1,2) [2025-02-06 11:28:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:28:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:28:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:28:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414734', 'tblTempUsageDetail_20' ) start [2025-02-06 11:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414734', 'tblTempUsageDetail_20' ) end [2025-02-06 11:28:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:28:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:28:34] Production.INFO: ==2231== Releasing lock... [2025-02-06 11:28:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:28:34] Production.INFO: 58.75 MB #Memory Used# [2025-02-06 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:29:05 [end_date_ymd] => 2025-02-06 11:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:29:05' and `end` < '2025-02-06 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-06 11:29:28] Production.INFO: count ==4150 [2025-02-06 11:29:30] Production.ERROR: pbx CDR StartTime 2025-02-06 08:29:05 - End Time 2025-02-06 11:29:05 [2025-02-06 11:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414739', 'tblTempUsageDetail_20' ) start [2025-02-06 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414739', 'tblTempUsageDetail_20' ) end [2025-02-06 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414739', 'tblTempVendorCDR_20' ) start [2025-02-06 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414739', 'tblTempVendorCDR_20' ) end [2025-02-06 11:29:30] Production.INFO: ProcessCDR(1,14414739,1,1,2) [2025-02-06 11:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414739', 'tblTempUsageDetail_20' ) start [2025-02-06 11:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414739', 'tblTempUsageDetail_20' ) end [2025-02-06 11:29:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:29:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:29:35] Production.INFO: ==2334== Releasing lock... [2025-02-06 11:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:29:35] Production.INFO: 59 MB #Memory Used# [2025-02-06 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:30:05 [end_date_ymd] => 2025-02-06 11:30:05 [RateCDR] => 1 ) [2025-02-06 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:30:05' and `end` < '2025-02-06 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:30:29] Production.INFO: count ==4159 [2025-02-06 11:30:31] Production.ERROR: pbx CDR StartTime 2025-02-06 08:30:05 - End Time 2025-02-06 11:30:05 [2025-02-06 11:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414745', 'tblTempUsageDetail_20' ) start [2025-02-06 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414745', 'tblTempUsageDetail_20' ) end [2025-02-06 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414745', 'tblTempVendorCDR_20' ) start [2025-02-06 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414745', 'tblTempVendorCDR_20' ) end [2025-02-06 11:30:31] Production.INFO: ProcessCDR(1,14414745,1,1,2) [2025-02-06 11:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414745', 'tblTempUsageDetail_20' ) start [2025-02-06 11:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414745', 'tblTempUsageDetail_20' ) end [2025-02-06 11:30:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:30:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:30:36] Production.INFO: ==2441== Releasing lock... [2025-02-06 11:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:30:36] Production.INFO: 59 MB #Memory Used# [2025-02-06 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:31:05 [end_date_ymd] => 2025-02-06 11:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:31:05' and `end` < '2025-02-06 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-06 11:31:31] Production.INFO: count ==4255 [2025-02-06 11:31:32] Production.ERROR: pbx CDR StartTime 2025-02-06 08:31:05 - End Time 2025-02-06 11:31:05 [2025-02-06 11:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414750', 'tblTempUsageDetail_20' ) start [2025-02-06 11:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414750', 'tblTempUsageDetail_20' ) end [2025-02-06 11:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414750', 'tblTempVendorCDR_20' ) start [2025-02-06 11:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414750', 'tblTempVendorCDR_20' ) end [2025-02-06 11:31:33] Production.INFO: ProcessCDR(1,14414750,1,1,2) [2025-02-06 11:31:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:31:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:31:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414750', 'tblTempUsageDetail_20' ) start [2025-02-06 11:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414750', 'tblTempUsageDetail_20' ) end [2025-02-06 11:31:38] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:31:38] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:31:38] Production.INFO: ==2551== Releasing lock... [2025-02-06 11:31:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:31:38] Production.INFO: 59.75 MB #Memory Used# [2025-02-06 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:32:06 [end_date_ymd] => 2025-02-06 11:32:06 [RateCDR] => 1 ) [2025-02-06 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:32:06' and `end` < '2025-02-06 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:32:27] Production.INFO: count ==4272 [2025-02-06 11:32:29] Production.ERROR: pbx CDR StartTime 2025-02-06 08:32:06 - End Time 2025-02-06 11:32:06 [2025-02-06 11:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414755', 'tblTempUsageDetail_20' ) start [2025-02-06 11:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414755', 'tblTempUsageDetail_20' ) end [2025-02-06 11:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414755', 'tblTempVendorCDR_20' ) start [2025-02-06 11:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414755', 'tblTempVendorCDR_20' ) end [2025-02-06 11:32:29] Production.INFO: ProcessCDR(1,14414755,1,1,2) [2025-02-06 11:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414755', 'tblTempUsageDetail_20' ) start [2025-02-06 11:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414755', 'tblTempUsageDetail_20' ) end [2025-02-06 11:32:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:32:34] Production.INFO: ==2656== Releasing lock... [2025-02-06 11:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:32:34] Production.INFO: 60 MB #Memory Used# [2025-02-06 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:33:06 [end_date_ymd] => 2025-02-06 11:33:06 [RateCDR] => 1 ) [2025-02-06 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-06 08:33:06' and `end` < '2025-02-06 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-06 11:33:24] Production.INFO: count ==4294 [2025-02-06 11:33:26] Production.ERROR: pbx CDR StartTime 2025-02-06 08:33:06 - End Time 2025-02-06 11:33:06 [2025-02-06 11:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414760', 'tblTempUsageDetail_20' ) start [2025-02-06 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414760', 'tblTempUsageDetail_20' ) end [2025-02-06 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414760', 'tblTempVendorCDR_20' ) start [2025-02-06 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414760', 'tblTempVendorCDR_20' ) end [2025-02-06 11:33:26] Production.INFO: ProcessCDR(1,14414760,1,1,2) [2025-02-06 11:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414760', 'tblTempUsageDetail_20' ) start [2025-02-06 11:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414760', 'tblTempUsageDetail_20' ) end [2025-02-06 11:33:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:33:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:33:31] Production.INFO: ==2804== Releasing lock... [2025-02-06 11:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:33:31] Production.INFO: 60 MB #Memory Used# [2025-02-06 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:34:05 [end_date_ymd] => 2025-02-06 11:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:34:05' and `end` < '2025-02-06 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-06 11:34:22] Production.INFO: count ==4302 [2025-02-06 11:34:24] Production.ERROR: pbx CDR StartTime 2025-02-06 08:34:05 - End Time 2025-02-06 11:34:05 [2025-02-06 11:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414765', 'tblTempUsageDetail_20' ) start [2025-02-06 11:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414765', 'tblTempUsageDetail_20' ) end [2025-02-06 11:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414765', 'tblTempVendorCDR_20' ) start [2025-02-06 11:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414765', 'tblTempVendorCDR_20' ) end [2025-02-06 11:34:25] Production.INFO: ProcessCDR(1,14414765,1,1,2) [2025-02-06 11:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414765', 'tblTempUsageDetail_20' ) start [2025-02-06 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414765', 'tblTempUsageDetail_20' ) end [2025-02-06 11:34:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:34:28] Production.INFO: ==2911== Releasing lock... [2025-02-06 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:34:28] Production.INFO: 60.25 MB #Memory Used# [2025-02-06 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:35:06 [end_date_ymd] => 2025-02-06 11:35:06 [RateCDR] => 1 ) [2025-02-06 11: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-06 08:35:06' and `end` < '2025-02-06 11: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-06 11:35:20] Production.INFO: count ==4302 [2025-02-06 11:35:22] Production.ERROR: pbx CDR StartTime 2025-02-06 08:35:06 - End Time 2025-02-06 11:35:06 [2025-02-06 11:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414770', 'tblTempUsageDetail_20' ) start [2025-02-06 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414770', 'tblTempUsageDetail_20' ) end [2025-02-06 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414770', 'tblTempVendorCDR_20' ) start [2025-02-06 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414770', 'tblTempVendorCDR_20' ) end [2025-02-06 11:35:22] Production.INFO: ProcessCDR(1,14414770,1,1,2) [2025-02-06 11:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414770', 'tblTempUsageDetail_20' ) start [2025-02-06 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414770', 'tblTempUsageDetail_20' ) end [2025-02-06 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:35:27] Production.INFO: ==3024== Releasing lock... [2025-02-06 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:35:27] Production.INFO: 60.25 MB #Memory Used# [2025-02-06 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:36:06 [end_date_ymd] => 2025-02-06 11:36:06 [RateCDR] => 1 ) [2025-02-06 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-06 08:36:06' and `end` < '2025-02-06 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-06 11:36:25] Production.INFO: count ==4307 [2025-02-06 11:36:27] Production.ERROR: pbx CDR StartTime 2025-02-06 08:36:06 - End Time 2025-02-06 11:36:06 [2025-02-06 11:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414775', 'tblTempUsageDetail_20' ) start [2025-02-06 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414775', 'tblTempUsageDetail_20' ) end [2025-02-06 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414775', 'tblTempVendorCDR_20' ) start [2025-02-06 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414775', 'tblTempVendorCDR_20' ) end [2025-02-06 11:36:28] Production.INFO: ProcessCDR(1,14414775,1,1,2) [2025-02-06 11:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414775', 'tblTempUsageDetail_20' ) start [2025-02-06 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414775', 'tblTempUsageDetail_20' ) end [2025-02-06 11:36:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:36:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:36:33] Production.INFO: ==3132== Releasing lock... [2025-02-06 11:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:36:33] Production.INFO: 60.25 MB #Memory Used# [2025-02-06 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:37:05 [end_date_ymd] => 2025-02-06 11:37:05 [RateCDR] => 1 ) [2025-02-06 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:37:05' and `end` < '2025-02-06 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:37:25] Production.INFO: count ==4336 [2025-02-06 11:37:27] Production.ERROR: pbx CDR StartTime 2025-02-06 08:37:05 - End Time 2025-02-06 11:37:05 [2025-02-06 11:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414780', 'tblTempUsageDetail_20' ) start [2025-02-06 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414780', 'tblTempUsageDetail_20' ) end [2025-02-06 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414780', 'tblTempVendorCDR_20' ) start [2025-02-06 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414780', 'tblTempVendorCDR_20' ) end [2025-02-06 11:37:27] Production.INFO: ProcessCDR(1,14414780,1,1,2) [2025-02-06 11:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414780', 'tblTempUsageDetail_20' ) start [2025-02-06 11:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414780', 'tblTempUsageDetail_20' ) end [2025-02-06 11:37:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:37:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:37:33] Production.INFO: ==3238== Releasing lock... [2025-02-06 11:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:37:33] Production.INFO: 60.5 MB #Memory Used# [2025-02-06 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:38:06 [end_date_ymd] => 2025-02-06 11:38:06 [RateCDR] => 1 ) [2025-02-06 11:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:38:06' and `end` < '2025-02-06 11:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:38:24] Production.INFO: count ==4354 [2025-02-06 11:38:26] Production.ERROR: pbx CDR StartTime 2025-02-06 08:38:06 - End Time 2025-02-06 11:38:06 [2025-02-06 11:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414785', 'tblTempUsageDetail_20' ) start [2025-02-06 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414785', 'tblTempUsageDetail_20' ) end [2025-02-06 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414785', 'tblTempVendorCDR_20' ) start [2025-02-06 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414785', 'tblTempVendorCDR_20' ) end [2025-02-06 11:38:26] Production.INFO: ProcessCDR(1,14414785,1,1,2) [2025-02-06 11:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414785', 'tblTempUsageDetail_20' ) start [2025-02-06 11:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414785', 'tblTempUsageDetail_20' ) end [2025-02-06 11:38:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:38:31] Production.INFO: ==3346== Releasing lock... [2025-02-06 11:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:38:31] Production.INFO: 60.5 MB #Memory Used# [2025-02-06 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:39:05 [end_date_ymd] => 2025-02-06 11:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:39:05' and `end` < '2025-02-06 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-06 11:39:31] Production.INFO: count ==4359 [2025-02-06 11:39:33] Production.ERROR: pbx CDR StartTime 2025-02-06 08:39:05 - End Time 2025-02-06 11:39:05 [2025-02-06 11:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414790', 'tblTempUsageDetail_20' ) start [2025-02-06 11:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414790', 'tblTempUsageDetail_20' ) end [2025-02-06 11:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414790', 'tblTempVendorCDR_20' ) start [2025-02-06 11:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414790', 'tblTempVendorCDR_20' ) end [2025-02-06 11:39:34] Production.INFO: ProcessCDR(1,14414790,1,1,2) [2025-02-06 11:39:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:39:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:39:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:39:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414790', 'tblTempUsageDetail_20' ) start [2025-02-06 11:39:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414790', 'tblTempUsageDetail_20' ) end [2025-02-06 11:39:39] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:39:39] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:39:39] Production.INFO: ==3459== Releasing lock... [2025-02-06 11:39:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:39:39] Production.INFO: 60.5 MB #Memory Used# [2025-02-06 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:40:06 [end_date_ymd] => 2025-02-06 11:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 08:40:06' and `end` < '2025-02-06 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-06 11:40:26] Production.INFO: count ==4386 [2025-02-06 11:40:28] Production.ERROR: pbx CDR StartTime 2025-02-06 08:40:06 - End Time 2025-02-06 11:40:06 [2025-02-06 11:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414795', 'tblTempUsageDetail_20' ) start [2025-02-06 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414795', 'tblTempUsageDetail_20' ) end [2025-02-06 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414795', 'tblTempVendorCDR_20' ) start [2025-02-06 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414795', 'tblTempVendorCDR_20' ) end [2025-02-06 11:40:28] Production.INFO: ProcessCDR(1,14414795,1,1,2) [2025-02-06 11:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414795', 'tblTempUsageDetail_20' ) start [2025-02-06 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414795', 'tblTempUsageDetail_20' ) end [2025-02-06 11:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:40:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:40:33] Production.INFO: ==3568== Releasing lock... [2025-02-06 11:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:40:33] Production.INFO: 60.75 MB #Memory Used# [2025-02-06 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:41:04 [end_date_ymd] => 2025-02-06 11:41:04 [RateCDR] => 1 ) [2025-02-06 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:41:04' and `end` < '2025-02-06 11:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:41:25] Production.INFO: count ==4440 [2025-02-06 11:41:27] Production.ERROR: pbx CDR StartTime 2025-02-06 08:41:04 - End Time 2025-02-06 11:41:04 [2025-02-06 11:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414801', 'tblTempUsageDetail_20' ) start [2025-02-06 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414801', 'tblTempUsageDetail_20' ) end [2025-02-06 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414801', 'tblTempVendorCDR_20' ) start [2025-02-06 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414801', 'tblTempVendorCDR_20' ) end [2025-02-06 11:41:27] Production.INFO: ProcessCDR(1,14414801,1,1,2) [2025-02-06 11:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414801', 'tblTempUsageDetail_20' ) start [2025-02-06 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414801', 'tblTempUsageDetail_20' ) end [2025-02-06 11:41:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:41:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:41:32] Production.INFO: ==3679== Releasing lock... [2025-02-06 11:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:41:32] Production.INFO: 61.25 MB #Memory Used# [2025-02-06 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:42:06 [end_date_ymd] => 2025-02-06 11:42:06 [RateCDR] => 1 ) [2025-02-06 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:42:06' and `end` < '2025-02-06 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:42:22] Production.INFO: count ==4451 [2025-02-06 11:42:24] Production.ERROR: pbx CDR StartTime 2025-02-06 08:42:06 - End Time 2025-02-06 11:42:06 [2025-02-06 11:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414806', 'tblTempUsageDetail_20' ) start [2025-02-06 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414806', 'tblTempUsageDetail_20' ) end [2025-02-06 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414806', 'tblTempVendorCDR_20' ) start [2025-02-06 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414806', 'tblTempVendorCDR_20' ) end [2025-02-06 11:42:24] Production.INFO: ProcessCDR(1,14414806,1,1,2) [2025-02-06 11:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414806', 'tblTempUsageDetail_20' ) start [2025-02-06 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414806', 'tblTempUsageDetail_20' ) end [2025-02-06 11:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:42:29] Production.INFO: ==3792== Releasing lock... [2025-02-06 11:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:42:29] Production.INFO: 61.25 MB #Memory Used# [2025-02-06 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:43:05 [end_date_ymd] => 2025-02-06 11:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:43:05' and `end` < '2025-02-06 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-06 11:43:20] Production.INFO: count ==4458 [2025-02-06 11:43:22] Production.ERROR: pbx CDR StartTime 2025-02-06 08:43:05 - End Time 2025-02-06 11:43:05 [2025-02-06 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414811', 'tblTempUsageDetail_20' ) start [2025-02-06 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414811', 'tblTempUsageDetail_20' ) end [2025-02-06 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414811', 'tblTempVendorCDR_20' ) start [2025-02-06 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414811', 'tblTempVendorCDR_20' ) end [2025-02-06 11:43:22] Production.INFO: ProcessCDR(1,14414811,1,1,2) [2025-02-06 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414811', 'tblTempUsageDetail_20' ) start [2025-02-06 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414811', 'tblTempUsageDetail_20' ) end [2025-02-06 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:43:27] Production.INFO: ==3902== Releasing lock... [2025-02-06 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:43:27] Production.INFO: 61.25 MB #Memory Used# [2025-02-06 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:44:05 [end_date_ymd] => 2025-02-06 11:44:05 [RateCDR] => 1 ) [2025-02-06 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:44:05' and `end` < '2025-02-06 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:44:23] Production.INFO: count ==4460 [2025-02-06 11:44:25] Production.ERROR: pbx CDR StartTime 2025-02-06 08:44:05 - End Time 2025-02-06 11:44:05 [2025-02-06 11:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414816', 'tblTempUsageDetail_20' ) start [2025-02-06 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414816', 'tblTempUsageDetail_20' ) end [2025-02-06 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414816', 'tblTempVendorCDR_20' ) start [2025-02-06 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414816', 'tblTempVendorCDR_20' ) end [2025-02-06 11:44:25] Production.INFO: ProcessCDR(1,14414816,1,1,2) [2025-02-06 11:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414816', 'tblTempUsageDetail_20' ) start [2025-02-06 11:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414816', 'tblTempUsageDetail_20' ) end [2025-02-06 11:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:44:30] Production.INFO: ==4017== Releasing lock... [2025-02-06 11:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:44:30] Production.INFO: 61.25 MB #Memory Used# [2025-02-06 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:45:05 [end_date_ymd] => 2025-02-06 11:45:05 [RateCDR] => 1 ) [2025-02-06 11: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-06 08:45:05' and `end` < '2025-02-06 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-06 11:45:20] Production.INFO: count ==4470 [2025-02-06 11:45:22] Production.ERROR: pbx CDR StartTime 2025-02-06 08:45:05 - End Time 2025-02-06 11:45:05 [2025-02-06 11:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414821', 'tblTempUsageDetail_20' ) start [2025-02-06 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414821', 'tblTempUsageDetail_20' ) end [2025-02-06 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414821', 'tblTempVendorCDR_20' ) start [2025-02-06 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414821', 'tblTempVendorCDR_20' ) end [2025-02-06 11:45:22] Production.INFO: ProcessCDR(1,14414821,1,1,2) [2025-02-06 11:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414821', 'tblTempUsageDetail_20' ) start [2025-02-06 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414821', 'tblTempUsageDetail_20' ) end [2025-02-06 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:45:27] Production.INFO: ==4123== Releasing lock... [2025-02-06 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:45:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:46:05 [end_date_ymd] => 2025-02-06 11:46:05 [RateCDR] => 1 ) [2025-02-06 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:46:05' and `end` < '2025-02-06 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:46:21] Production.INFO: count ==4475 [2025-02-06 11:46:23] Production.ERROR: pbx CDR StartTime 2025-02-06 08:46:05 - End Time 2025-02-06 11:46:05 [2025-02-06 11:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414826', 'tblTempUsageDetail_20' ) start [2025-02-06 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414826', 'tblTempUsageDetail_20' ) end [2025-02-06 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414826', 'tblTempVendorCDR_20' ) start [2025-02-06 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414826', 'tblTempVendorCDR_20' ) end [2025-02-06 11:46:23] Production.INFO: ProcessCDR(1,14414826,1,1,2) [2025-02-06 11:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414826', 'tblTempUsageDetail_20' ) start [2025-02-06 11:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414826', 'tblTempUsageDetail_20' ) end [2025-02-06 11:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:46:28] Production.INFO: ==4229== Releasing lock... [2025-02-06 11:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:46:28] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:47:05 [end_date_ymd] => 2025-02-06 11:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:47:05' and `end` < '2025-02-06 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-06 11:47:20] Production.INFO: count ==4463 [2025-02-06 11:47:22] Production.ERROR: pbx CDR StartTime 2025-02-06 08:47:05 - End Time 2025-02-06 11:47:05 [2025-02-06 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414831', 'tblTempUsageDetail_20' ) start [2025-02-06 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414831', 'tblTempUsageDetail_20' ) end [2025-02-06 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414831', 'tblTempVendorCDR_20' ) start [2025-02-06 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414831', 'tblTempVendorCDR_20' ) end [2025-02-06 11:47:22] Production.INFO: ProcessCDR(1,14414831,1,1,2) [2025-02-06 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414831', 'tblTempUsageDetail_20' ) start [2025-02-06 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414831', 'tblTempUsageDetail_20' ) end [2025-02-06 11:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:47:27] Production.INFO: ==4338== Releasing lock... [2025-02-06 11:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:47:27] Production.INFO: 61.25 MB #Memory Used# [2025-02-06 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:48:05 [end_date_ymd] => 2025-02-06 11:48:05 [RateCDR] => 1 ) [2025-02-06 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:48:05' and `end` < '2025-02-06 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:48:29] Production.INFO: count ==4457 [2025-02-06 11:48:31] Production.ERROR: pbx CDR StartTime 2025-02-06 08:48:05 - End Time 2025-02-06 11:48:05 [2025-02-06 11:48:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414836', 'tblTempUsageDetail_20' ) start [2025-02-06 11:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414836', 'tblTempUsageDetail_20' ) end [2025-02-06 11:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414836', 'tblTempVendorCDR_20' ) start [2025-02-06 11:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414836', 'tblTempVendorCDR_20' ) end [2025-02-06 11:48:31] Production.INFO: ProcessCDR(1,14414836,1,1,2) [2025-02-06 11:48:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:48:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:48:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:48:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414836', 'tblTempUsageDetail_20' ) start [2025-02-06 11:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414836', 'tblTempUsageDetail_20' ) end [2025-02-06 11:48:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:48:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:48:36] Production.INFO: ==4454== Releasing lock... [2025-02-06 11:48:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:48:36] Production.INFO: 61.25 MB #Memory Used# [2025-02-06 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:49:05 [end_date_ymd] => 2025-02-06 11:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:49:05' and `end` < '2025-02-06 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-06 11:49:26] Production.INFO: count ==4460 [2025-02-06 11:49:27] Production.ERROR: pbx CDR StartTime 2025-02-06 08:49:05 - End Time 2025-02-06 11:49:05 [2025-02-06 11:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414841', 'tblTempUsageDetail_20' ) start [2025-02-06 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414841', 'tblTempUsageDetail_20' ) end [2025-02-06 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414841', 'tblTempVendorCDR_20' ) start [2025-02-06 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414841', 'tblTempVendorCDR_20' ) end [2025-02-06 11:49:28] Production.INFO: ProcessCDR(1,14414841,1,1,2) [2025-02-06 11:49:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414841', 'tblTempUsageDetail_20' ) start [2025-02-06 11:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414841', 'tblTempUsageDetail_20' ) end [2025-02-06 11:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:49:32] Production.INFO: ==4615== Releasing lock... [2025-02-06 11:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:49:32] Production.INFO: 61.25 MB #Memory Used# [2025-02-06 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:50:06 [end_date_ymd] => 2025-02-06 11:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 08:50:06' and `end` < '2025-02-06 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-06 11:50:21] Production.INFO: count ==4455 [2025-02-06 11:50:23] Production.ERROR: pbx CDR StartTime 2025-02-06 08:50:06 - End Time 2025-02-06 11:50:06 [2025-02-06 11:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414847', 'tblTempUsageDetail_20' ) start [2025-02-06 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414847', 'tblTempUsageDetail_20' ) end [2025-02-06 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414847', 'tblTempVendorCDR_20' ) start [2025-02-06 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414847', 'tblTempVendorCDR_20' ) end [2025-02-06 11:50:23] Production.INFO: ProcessCDR(1,14414847,1,1,2) [2025-02-06 11:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414847', 'tblTempUsageDetail_20' ) start [2025-02-06 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414847', 'tblTempUsageDetail_20' ) end [2025-02-06 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:50:28] Production.INFO: ==4725== Releasing lock... [2025-02-06 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:50:28] Production.INFO: 61.25 MB #Memory Used# [2025-02-06 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:51:05 [end_date_ymd] => 2025-02-06 11:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:51:05' and `end` < '2025-02-06 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-06 11:51:24] Production.INFO: count ==4477 [2025-02-06 11:51:26] Production.ERROR: pbx CDR StartTime 2025-02-06 08:51:05 - End Time 2025-02-06 11:51:05 [2025-02-06 11:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414852', 'tblTempUsageDetail_20' ) start [2025-02-06 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414852', 'tblTempUsageDetail_20' ) end [2025-02-06 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414852', 'tblTempVendorCDR_20' ) start [2025-02-06 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414852', 'tblTempVendorCDR_20' ) end [2025-02-06 11:51:26] Production.INFO: ProcessCDR(1,14414852,1,1,2) [2025-02-06 11:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414852', 'tblTempUsageDetail_20' ) start [2025-02-06 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414852', 'tblTempUsageDetail_20' ) end [2025-02-06 11:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:51:30] Production.INFO: ==4834== Releasing lock... [2025-02-06 11:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:51:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:52:05 [end_date_ymd] => 2025-02-06 11:52:05 [RateCDR] => 1 ) [2025-02-06 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:52:05' and `end` < '2025-02-06 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 11:52:25] Production.INFO: count ==4486 [2025-02-06 11:52:27] Production.ERROR: pbx CDR StartTime 2025-02-06 08:52:05 - End Time 2025-02-06 11:52:05 [2025-02-06 11:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414857', 'tblTempUsageDetail_20' ) start [2025-02-06 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414857', 'tblTempUsageDetail_20' ) end [2025-02-06 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414857', 'tblTempVendorCDR_20' ) start [2025-02-06 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414857', 'tblTempVendorCDR_20' ) end [2025-02-06 11:52:27] Production.INFO: ProcessCDR(1,14414857,1,1,2) [2025-02-06 11:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414857', 'tblTempUsageDetail_20' ) start [2025-02-06 11:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414857', 'tblTempUsageDetail_20' ) end [2025-02-06 11:52:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:52:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:52:32] Production.INFO: ==4941== Releasing lock... [2025-02-06 11:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:52:32] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:53:06 [end_date_ymd] => 2025-02-06 11:53:06 [RateCDR] => 1 ) [2025-02-06 11: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-06 08:53:06' and `end` < '2025-02-06 11: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-06 11:53:23] Production.INFO: count ==4489 [2025-02-06 11:53:25] Production.ERROR: pbx CDR StartTime 2025-02-06 08:53:06 - End Time 2025-02-06 11:53:06 [2025-02-06 11:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414862', 'tblTempUsageDetail_20' ) start [2025-02-06 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414862', 'tblTempUsageDetail_20' ) end [2025-02-06 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414862', 'tblTempVendorCDR_20' ) start [2025-02-06 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414862', 'tblTempVendorCDR_20' ) end [2025-02-06 11:53:25] Production.INFO: ProcessCDR(1,14414862,1,1,2) [2025-02-06 11:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414862', 'tblTempUsageDetail_20' ) start [2025-02-06 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414862', 'tblTempUsageDetail_20' ) end [2025-02-06 11:53:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:53:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:53:30] Production.INFO: ==5052== Releasing lock... [2025-02-06 11:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:53:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:54:05 [end_date_ymd] => 2025-02-06 11:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:54:05' and `end` < '2025-02-06 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-06 11:54:21] Production.INFO: count ==4508 [2025-02-06 11:54:23] Production.ERROR: pbx CDR StartTime 2025-02-06 08:54:05 - End Time 2025-02-06 11:54:05 [2025-02-06 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414867', 'tblTempUsageDetail_20' ) start [2025-02-06 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414867', 'tblTempUsageDetail_20' ) end [2025-02-06 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414867', 'tblTempVendorCDR_20' ) start [2025-02-06 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414867', 'tblTempVendorCDR_20' ) end [2025-02-06 11:54:23] Production.INFO: ProcessCDR(1,14414867,1,1,2) [2025-02-06 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414867', 'tblTempUsageDetail_20' ) start [2025-02-06 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414867', 'tblTempUsageDetail_20' ) end [2025-02-06 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:54:28] Production.INFO: ==5164== Releasing lock... [2025-02-06 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:54:28] Production.INFO: 61.75 MB #Memory Used# [2025-02-06 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:55:05 [end_date_ymd] => 2025-02-06 11:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:55:05' and `end` < '2025-02-06 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-06 11:55:20] Production.INFO: count ==4528 [2025-02-06 11:55:22] Production.ERROR: pbx CDR StartTime 2025-02-06 08:55:05 - End Time 2025-02-06 11:55:05 [2025-02-06 11:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414872', 'tblTempUsageDetail_20' ) start [2025-02-06 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414872', 'tblTempUsageDetail_20' ) end [2025-02-06 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414872', 'tblTempVendorCDR_20' ) start [2025-02-06 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414872', 'tblTempVendorCDR_20' ) end [2025-02-06 11:55:22] Production.INFO: ProcessCDR(1,14414872,1,1,2) [2025-02-06 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414872', 'tblTempUsageDetail_20' ) start [2025-02-06 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414872', 'tblTempUsageDetail_20' ) end [2025-02-06 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:55:27] Production.INFO: ==5273== Releasing lock... [2025-02-06 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:55:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-06 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:56:05 [end_date_ymd] => 2025-02-06 11:56:05 [RateCDR] => 1 ) [2025-02-06 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 08:56:05' and `end` < '2025-02-06 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-06 11:56:34] Production.INFO: count ==4511 [2025-02-06 11:56:36] Production.ERROR: pbx CDR StartTime 2025-02-06 08:56:05 - End Time 2025-02-06 11:56:05 [2025-02-06 11:56:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414877', 'tblTempUsageDetail_20' ) start [2025-02-06 11:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414877', 'tblTempUsageDetail_20' ) end [2025-02-06 11:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414877', 'tblTempVendorCDR_20' ) start [2025-02-06 11:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414877', 'tblTempVendorCDR_20' ) end [2025-02-06 11:56:36] Production.INFO: ProcessCDR(1,14414877,1,1,2) [2025-02-06 11:56:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:56:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:56:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:56:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:56:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414877', 'tblTempUsageDetail_20' ) start [2025-02-06 11:56:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414877', 'tblTempUsageDetail_20' ) end [2025-02-06 11:56:41] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:56:41] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:56:41] Production.INFO: ==5383== Releasing lock... [2025-02-06 11:56:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:56:41] Production.INFO: 61.75 MB #Memory Used# [2025-02-06 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:57:05 [end_date_ymd] => 2025-02-06 11:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:57:05' and `end` < '2025-02-06 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-06 11:57:24] Production.INFO: count ==4519 [2025-02-06 11:57:25] Production.ERROR: pbx CDR StartTime 2025-02-06 08:57:05 - End Time 2025-02-06 11:57:05 [2025-02-06 11:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414882', 'tblTempUsageDetail_20' ) start [2025-02-06 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414882', 'tblTempUsageDetail_20' ) end [2025-02-06 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414882', 'tblTempVendorCDR_20' ) start [2025-02-06 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414882', 'tblTempVendorCDR_20' ) end [2025-02-06 11:57:26] Production.INFO: ProcessCDR(1,14414882,1,1,2) [2025-02-06 11:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414882', 'tblTempUsageDetail_20' ) start [2025-02-06 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414882', 'tblTempUsageDetail_20' ) end [2025-02-06 11:57:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:57:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:57:30] Production.INFO: ==5495== Releasing lock... [2025-02-06 11:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:57:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-06 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:58:05 [end_date_ymd] => 2025-02-06 11:58:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:58:05' and `end` < '2025-02-06 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-06 11:58:19] Production.INFO: count ==4523 [2025-02-06 11:58:21] Production.ERROR: pbx CDR StartTime 2025-02-06 08:58:05 - End Time 2025-02-06 11:58:05 [2025-02-06 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414887', 'tblTempUsageDetail_20' ) start [2025-02-06 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414887', 'tblTempUsageDetail_20' ) end [2025-02-06 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414887', 'tblTempVendorCDR_20' ) start [2025-02-06 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414887', 'tblTempVendorCDR_20' ) end [2025-02-06 11:58:21] Production.INFO: ProcessCDR(1,14414887,1,1,2) [2025-02-06 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414887', 'tblTempUsageDetail_20' ) start [2025-02-06 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414887', 'tblTempUsageDetail_20' ) end [2025-02-06 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:58:26] Production.INFO: ==5597== Releasing lock... [2025-02-06 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:58:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-06 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 08:59:05 [end_date_ymd] => 2025-02-06 11:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 08:59:05' and `end` < '2025-02-06 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-06 11:59:19] Production.INFO: count ==4541 [2025-02-06 11:59:21] Production.ERROR: pbx CDR StartTime 2025-02-06 08:59:05 - End Time 2025-02-06 11:59:05 [2025-02-06 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414892', 'tblTempUsageDetail_20' ) start [2025-02-06 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414892', 'tblTempUsageDetail_20' ) end [2025-02-06 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414892', 'tblTempVendorCDR_20' ) start [2025-02-06 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414892', 'tblTempVendorCDR_20' ) end [2025-02-06 11:59:21] Production.INFO: ProcessCDR(1,14414892,1,1,2) [2025-02-06 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414892', 'tblTempUsageDetail_20' ) start [2025-02-06 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414892', 'tblTempUsageDetail_20' ) end [2025-02-06 11:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 11:59:27] Production.INFO: ==5710== Releasing lock... [2025-02-06 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 11:59:27] Production.INFO: 62 MB #Memory Used# [2025-02-06 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:00:07 [end_date_ymd] => 2025-02-06 12:00:07 [RateCDR] => 1 ) [2025-02-06 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-06 09:00:07' and `end` < '2025-02-06 12: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-06 12:00:21] Production.INFO: count ==4553 [2025-02-06 12:00:23] Production.ERROR: pbx CDR StartTime 2025-02-06 09:00:07 - End Time 2025-02-06 12:00:07 [2025-02-06 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414898', 'tblTempUsageDetail_20' ) start [2025-02-06 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414898', 'tblTempUsageDetail_20' ) end [2025-02-06 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414898', 'tblTempVendorCDR_20' ) start [2025-02-06 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414898', 'tblTempVendorCDR_20' ) end [2025-02-06 12:00:23] Production.INFO: ProcessCDR(1,14414898,1,1,2) [2025-02-06 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414898', 'tblTempUsageDetail_20' ) start [2025-02-06 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414898', 'tblTempUsageDetail_20' ) end [2025-02-06 12:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:00:26] Production.INFO: ==5828== Releasing lock... [2025-02-06 12:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:00:26] Production.INFO: 62 MB #Memory Used# [2025-02-06 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:01:05 [end_date_ymd] => 2025-02-06 12:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:01:05' and `end` < '2025-02-06 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-06 12:01:19] Production.INFO: count ==4618 [2025-02-06 12:01:21] Production.ERROR: pbx CDR StartTime 2025-02-06 09:01:05 - End Time 2025-02-06 12:01:05 [2025-02-06 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414903', 'tblTempUsageDetail_20' ) start [2025-02-06 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414903', 'tblTempUsageDetail_20' ) end [2025-02-06 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414903', 'tblTempVendorCDR_20' ) start [2025-02-06 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414903', 'tblTempVendorCDR_20' ) end [2025-02-06 12:01:21] Production.INFO: ProcessCDR(1,14414903,1,1,2) [2025-02-06 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414903', 'tblTempUsageDetail_20' ) start [2025-02-06 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414903', 'tblTempUsageDetail_20' ) end [2025-02-06 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:01:26] Production.INFO: ==5953== Releasing lock... [2025-02-06 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:01:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-06 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:02:06 [end_date_ymd] => 2025-02-06 12:02:06 [RateCDR] => 1 ) [2025-02-06 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-06 09:02:06' and `end` < '2025-02-06 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-06 12:02:20] Production.INFO: count ==4621 [2025-02-06 12:02:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:02:06 - End Time 2025-02-06 12:02:06 [2025-02-06 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414908', 'tblTempUsageDetail_20' ) start [2025-02-06 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414908', 'tblTempUsageDetail_20' ) end [2025-02-06 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414908', 'tblTempVendorCDR_20' ) start [2025-02-06 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414908', 'tblTempVendorCDR_20' ) end [2025-02-06 12:02:22] Production.INFO: ProcessCDR(1,14414908,1,1,2) [2025-02-06 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414908', 'tblTempUsageDetail_20' ) start [2025-02-06 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414908', 'tblTempUsageDetail_20' ) end [2025-02-06 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:02:27] Production.INFO: ==6061== Releasing lock... [2025-02-06 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:02:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-06 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:03:05 [end_date_ymd] => 2025-02-06 12:03:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:03:05' and `end` < '2025-02-06 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-06 12:03:19] Production.INFO: count ==4611 [2025-02-06 12:03:21] Production.ERROR: pbx CDR StartTime 2025-02-06 09:03:05 - End Time 2025-02-06 12:03:05 [2025-02-06 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414913', 'tblTempUsageDetail_20' ) start [2025-02-06 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414913', 'tblTempUsageDetail_20' ) end [2025-02-06 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414913', 'tblTempVendorCDR_20' ) start [2025-02-06 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414913', 'tblTempVendorCDR_20' ) end [2025-02-06 12:03:21] Production.INFO: ProcessCDR(1,14414913,1,1,2) [2025-02-06 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414913', 'tblTempUsageDetail_20' ) start [2025-02-06 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414913', 'tblTempUsageDetail_20' ) end [2025-02-06 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:03:26] Production.INFO: ==6175== Releasing lock... [2025-02-06 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:03:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-06 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:04:06 [end_date_ymd] => 2025-02-06 12:04:06 [RateCDR] => 1 ) [2025-02-06 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:04:06' and `end` < '2025-02-06 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:04:20] Production.INFO: count ==4657 [2025-02-06 12:04:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:04:06 - End Time 2025-02-06 12:04:06 [2025-02-06 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414918', 'tblTempUsageDetail_20' ) start [2025-02-06 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414918', 'tblTempUsageDetail_20' ) end [2025-02-06 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414918', 'tblTempVendorCDR_20' ) start [2025-02-06 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414918', 'tblTempVendorCDR_20' ) end [2025-02-06 12:04:22] Production.INFO: ProcessCDR(1,14414918,1,1,2) [2025-02-06 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414918', 'tblTempUsageDetail_20' ) start [2025-02-06 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414918', 'tblTempUsageDetail_20' ) end [2025-02-06 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:04:27] Production.INFO: ==6325== Releasing lock... [2025-02-06 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:04:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-06 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:05:05 [end_date_ymd] => 2025-02-06 12:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:05:05' and `end` < '2025-02-06 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-06 12:05:20] Production.INFO: count ==4663 [2025-02-06 12:05:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:05:05 - End Time 2025-02-06 12:05:05 [2025-02-06 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414923', 'tblTempUsageDetail_20' ) start [2025-02-06 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414923', 'tblTempUsageDetail_20' ) end [2025-02-06 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414923', 'tblTempVendorCDR_20' ) start [2025-02-06 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414923', 'tblTempVendorCDR_20' ) end [2025-02-06 12:05:22] Production.INFO: ProcessCDR(1,14414923,1,1,2) [2025-02-06 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414923', 'tblTempUsageDetail_20' ) start [2025-02-06 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414923', 'tblTempUsageDetail_20' ) end [2025-02-06 12:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:05:27] Production.INFO: ==6433== Releasing lock... [2025-02-06 12:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:05:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-06 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:06:06 [end_date_ymd] => 2025-02-06 12:06:06 [RateCDR] => 1 ) [2025-02-06 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:06:06' and `end` < '2025-02-06 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:06:20] Production.INFO: count ==4646 [2025-02-06 12:06:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:06:06 - End Time 2025-02-06 12:06:06 [2025-02-06 12:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414928', 'tblTempUsageDetail_20' ) start [2025-02-06 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414928', 'tblTempUsageDetail_20' ) end [2025-02-06 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414928', 'tblTempVendorCDR_20' ) start [2025-02-06 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414928', 'tblTempVendorCDR_20' ) end [2025-02-06 12:06:22] Production.INFO: ProcessCDR(1,14414928,1,1,2) [2025-02-06 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414928', 'tblTempUsageDetail_20' ) start [2025-02-06 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414928', 'tblTempUsageDetail_20' ) end [2025-02-06 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:06:27] Production.INFO: ==6543== Releasing lock... [2025-02-06 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:06:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-06 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:07:05 [end_date_ymd] => 2025-02-06 12:07:05 [RateCDR] => 1 ) [2025-02-06 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:07:05' and `end` < '2025-02-06 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:07:20] Production.INFO: count ==4641 [2025-02-06 12:07:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:07:05 - End Time 2025-02-06 12:07:05 [2025-02-06 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414933', 'tblTempUsageDetail_20' ) start [2025-02-06 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414933', 'tblTempUsageDetail_20' ) end [2025-02-06 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414933', 'tblTempVendorCDR_20' ) start [2025-02-06 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414933', 'tblTempVendorCDR_20' ) end [2025-02-06 12:07:22] Production.INFO: ProcessCDR(1,14414933,1,1,2) [2025-02-06 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414933', 'tblTempUsageDetail_20' ) start [2025-02-06 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414933', 'tblTempUsageDetail_20' ) end [2025-02-06 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:07:27] Production.INFO: ==6651== Releasing lock... [2025-02-06 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:07:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-06 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:08:05 [end_date_ymd] => 2025-02-06 12:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:08:05' and `end` < '2025-02-06 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-06 12:08:20] Production.INFO: count ==4640 [2025-02-06 12:08:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:08:05 - End Time 2025-02-06 12:08:05 [2025-02-06 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414938', 'tblTempUsageDetail_20' ) start [2025-02-06 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414938', 'tblTempUsageDetail_20' ) end [2025-02-06 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414938', 'tblTempVendorCDR_20' ) start [2025-02-06 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414938', 'tblTempVendorCDR_20' ) end [2025-02-06 12:08:22] Production.INFO: ProcessCDR(1,14414938,1,1,2) [2025-02-06 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414938', 'tblTempUsageDetail_20' ) start [2025-02-06 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414938', 'tblTempUsageDetail_20' ) end [2025-02-06 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:08:26] Production.INFO: ==6762== Releasing lock... [2025-02-06 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:08:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-06 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:09:05 [end_date_ymd] => 2025-02-06 12:09:05 [RateCDR] => 1 ) [2025-02-06 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:09:05' and `end` < '2025-02-06 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:09:19] Production.INFO: count ==4637 [2025-02-06 12:09:21] Production.ERROR: pbx CDR StartTime 2025-02-06 09:09:05 - End Time 2025-02-06 12:09:05 [2025-02-06 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414943', 'tblTempUsageDetail_20' ) start [2025-02-06 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414943', 'tblTempUsageDetail_20' ) end [2025-02-06 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414943', 'tblTempVendorCDR_20' ) start [2025-02-06 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414943', 'tblTempVendorCDR_20' ) end [2025-02-06 12:09:21] Production.INFO: ProcessCDR(1,14414943,1,1,2) [2025-02-06 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414943', 'tblTempUsageDetail_20' ) start [2025-02-06 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414943', 'tblTempUsageDetail_20' ) end [2025-02-06 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:09:26] Production.INFO: ==6862== Releasing lock... [2025-02-06 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:09:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-06 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:10:06 [end_date_ymd] => 2025-02-06 12:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 09:10:06' and `end` < '2025-02-06 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-06 12:10:22] Production.INFO: count ==4652 [2025-02-06 12:10:24] Production.ERROR: pbx CDR StartTime 2025-02-06 09:10:06 - End Time 2025-02-06 12:10:06 [2025-02-06 12:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414949', 'tblTempUsageDetail_20' ) start [2025-02-06 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414949', 'tblTempUsageDetail_20' ) end [2025-02-06 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414949', 'tblTempVendorCDR_20' ) start [2025-02-06 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414949', 'tblTempVendorCDR_20' ) end [2025-02-06 12:10:24] Production.INFO: ProcessCDR(1,14414949,1,1,2) [2025-02-06 12:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414949', 'tblTempUsageDetail_20' ) start [2025-02-06 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414949', 'tblTempUsageDetail_20' ) end [2025-02-06 12:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:10:29] Production.INFO: ==6972== Releasing lock... [2025-02-06 12:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:10:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-06 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:11:06 [end_date_ymd] => 2025-02-06 12:11:06 [RateCDR] => 1 ) [2025-02-06 12: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-06 09:11:06' and `end` < '2025-02-06 12: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-06 12:11:25] Production.INFO: count ==4725 [2025-02-06 12:11:27] Production.ERROR: pbx CDR StartTime 2025-02-06 09:11:06 - End Time 2025-02-06 12:11:06 [2025-02-06 12:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414954', 'tblTempUsageDetail_20' ) start [2025-02-06 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414954', 'tblTempUsageDetail_20' ) end [2025-02-06 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414954', 'tblTempVendorCDR_20' ) start [2025-02-06 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414954', 'tblTempVendorCDR_20' ) end [2025-02-06 12:11:27] Production.INFO: ProcessCDR(1,14414954,1,1,2) [2025-02-06 12:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414954', 'tblTempUsageDetail_20' ) start [2025-02-06 12:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414954', 'tblTempUsageDetail_20' ) end [2025-02-06 12:11:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:11:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:11:32] Production.INFO: ==7087== Releasing lock... [2025-02-06 12:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:11:32] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:12:04 [end_date_ymd] => 2025-02-06 12:12:04 [RateCDR] => 1 ) [2025-02-06 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-06 09:12:04' and `end` < '2025-02-06 12:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:12:20] Production.INFO: count ==4709 [2025-02-06 12:12:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:12:04 - End Time 2025-02-06 12:12:04 [2025-02-06 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414959', 'tblTempUsageDetail_20' ) start [2025-02-06 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414959', 'tblTempUsageDetail_20' ) end [2025-02-06 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414959', 'tblTempVendorCDR_20' ) start [2025-02-06 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414959', 'tblTempVendorCDR_20' ) end [2025-02-06 12:12:22] Production.INFO: ProcessCDR(1,14414959,1,1,2) [2025-02-06 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414959', 'tblTempUsageDetail_20' ) start [2025-02-06 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414959', 'tblTempUsageDetail_20' ) end [2025-02-06 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:12:26] Production.INFO: ==7190== Releasing lock... [2025-02-06 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:12:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:13:05 [end_date_ymd] => 2025-02-06 12:13:05 [RateCDR] => 1 ) [2025-02-06 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:13:05' and `end` < '2025-02-06 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:13:21] Production.INFO: count ==4710 [2025-02-06 12:13:23] Production.ERROR: pbx CDR StartTime 2025-02-06 09:13:05 - End Time 2025-02-06 12:13:05 [2025-02-06 12:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414964', 'tblTempUsageDetail_20' ) start [2025-02-06 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414964', 'tblTempUsageDetail_20' ) end [2025-02-06 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414964', 'tblTempVendorCDR_20' ) start [2025-02-06 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414964', 'tblTempVendorCDR_20' ) end [2025-02-06 12:13:23] Production.INFO: ProcessCDR(1,14414964,1,1,2) [2025-02-06 12:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414964', 'tblTempUsageDetail_20' ) start [2025-02-06 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414964', 'tblTempUsageDetail_20' ) end [2025-02-06 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:13:28] Production.INFO: ==7295== Releasing lock... [2025-02-06 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:13:28] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:14:05 [end_date_ymd] => 2025-02-06 12:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:14:05' and `end` < '2025-02-06 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-06 12:14:24] Production.INFO: count ==4730 [2025-02-06 12:14:26] Production.ERROR: pbx CDR StartTime 2025-02-06 09:14:05 - End Time 2025-02-06 12:14:05 [2025-02-06 12:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414969', 'tblTempUsageDetail_20' ) start [2025-02-06 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414969', 'tblTempUsageDetail_20' ) end [2025-02-06 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414969', 'tblTempVendorCDR_20' ) start [2025-02-06 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414969', 'tblTempVendorCDR_20' ) end [2025-02-06 12:14:26] Production.INFO: ProcessCDR(1,14414969,1,1,2) [2025-02-06 12:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414969', 'tblTempUsageDetail_20' ) start [2025-02-06 12:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414969', 'tblTempUsageDetail_20' ) end [2025-02-06 12:14:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:14:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:14:31] Production.INFO: ==7409== Releasing lock... [2025-02-06 12:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:14:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:15:06 [end_date_ymd] => 2025-02-06 12:15:06 [RateCDR] => 1 ) [2025-02-06 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:15:06' and `end` < '2025-02-06 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:15:26] Production.INFO: count ==4734 [2025-02-06 12:15:28] Production.ERROR: pbx CDR StartTime 2025-02-06 09:15:06 - End Time 2025-02-06 12:15:06 [2025-02-06 12:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414974', 'tblTempUsageDetail_20' ) start [2025-02-06 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414974', 'tblTempUsageDetail_20' ) end [2025-02-06 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414974', 'tblTempVendorCDR_20' ) start [2025-02-06 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414974', 'tblTempVendorCDR_20' ) end [2025-02-06 12:15:29] Production.INFO: ProcessCDR(1,14414974,1,1,2) [2025-02-06 12:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414974', 'tblTempUsageDetail_20' ) start [2025-02-06 12:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414974', 'tblTempUsageDetail_20' ) end [2025-02-06 12:15:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:15:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:15:33] Production.INFO: ==7524== Releasing lock... [2025-02-06 12:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:15:33] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:16:05 [end_date_ymd] => 2025-02-06 12:16:05 [RateCDR] => 1 ) [2025-02-06 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:16:05' and `end` < '2025-02-06 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:16:22] Production.INFO: count ==4741 [2025-02-06 12:16:24] Production.ERROR: pbx CDR StartTime 2025-02-06 09:16:05 - End Time 2025-02-06 12:16:05 [2025-02-06 12:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414979', 'tblTempUsageDetail_20' ) start [2025-02-06 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414979', 'tblTempUsageDetail_20' ) end [2025-02-06 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414979', 'tblTempVendorCDR_20' ) start [2025-02-06 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414979', 'tblTempVendorCDR_20' ) end [2025-02-06 12:16:24] Production.INFO: ProcessCDR(1,14414979,1,1,2) [2025-02-06 12:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414979', 'tblTempUsageDetail_20' ) start [2025-02-06 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414979', 'tblTempUsageDetail_20' ) end [2025-02-06 12:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:16:29] Production.INFO: ==7640== Releasing lock... [2025-02-06 12:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:16:29] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:17:05 [end_date_ymd] => 2025-02-06 12:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:17:05' and `end` < '2025-02-06 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-06 12:17:20] Production.INFO: count ==4741 [2025-02-06 12:17:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:17:05 - End Time 2025-02-06 12:17:05 [2025-02-06 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414984', 'tblTempUsageDetail_20' ) start [2025-02-06 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414984', 'tblTempUsageDetail_20' ) end [2025-02-06 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414984', 'tblTempVendorCDR_20' ) start [2025-02-06 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414984', 'tblTempVendorCDR_20' ) end [2025-02-06 12:17:23] Production.INFO: ProcessCDR(1,14414984,1,1,2) [2025-02-06 12:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414984', 'tblTempUsageDetail_20' ) start [2025-02-06 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414984', 'tblTempUsageDetail_20' ) end [2025-02-06 12:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:17:28] Production.INFO: ==7755== Releasing lock... [2025-02-06 12:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:17:28] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:18:05 [end_date_ymd] => 2025-02-06 12:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:18:05' and `end` < '2025-02-06 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-06 12:18:21] Production.INFO: count ==4742 [2025-02-06 12:18:23] Production.ERROR: pbx CDR StartTime 2025-02-06 09:18:05 - End Time 2025-02-06 12:18:05 [2025-02-06 12:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414989', 'tblTempUsageDetail_20' ) start [2025-02-06 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414989', 'tblTempUsageDetail_20' ) end [2025-02-06 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414989', 'tblTempVendorCDR_20' ) start [2025-02-06 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414989', 'tblTempVendorCDR_20' ) end [2025-02-06 12:18:23] Production.INFO: ProcessCDR(1,14414989,1,1,2) [2025-02-06 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414989', 'tblTempUsageDetail_20' ) start [2025-02-06 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414989', 'tblTempUsageDetail_20' ) end [2025-02-06 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:18:28] Production.INFO: ==7878== Releasing lock... [2025-02-06 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:18:28] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:19:06 [end_date_ymd] => 2025-02-06 12:19:06 [RateCDR] => 1 ) [2025-02-06 12:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:19:06' and `end` < '2025-02-06 12:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:19:25] Production.INFO: count ==4745 [2025-02-06 12:19:27] Production.ERROR: pbx CDR StartTime 2025-02-06 09:19:06 - End Time 2025-02-06 12:19:06 [2025-02-06 12:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414994', 'tblTempUsageDetail_20' ) start [2025-02-06 12:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414994', 'tblTempUsageDetail_20' ) end [2025-02-06 12:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414994', 'tblTempVendorCDR_20' ) start [2025-02-06 12:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414994', 'tblTempVendorCDR_20' ) end [2025-02-06 12:19:28] Production.INFO: ProcessCDR(1,14414994,1,1,2) [2025-02-06 12:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414994', 'tblTempUsageDetail_20' ) start [2025-02-06 12:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414994', 'tblTempUsageDetail_20' ) end [2025-02-06 12:19:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:19:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:19:33] Production.INFO: ==8029== Releasing lock... [2025-02-06 12:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:19:33] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:20:06 [end_date_ymd] => 2025-02-06 12:20:06 [RateCDR] => 1 ) [2025-02-06 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:20:06' and `end` < '2025-02-06 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:20:21] Production.INFO: count ==4759 [2025-02-06 12:20:23] Production.ERROR: pbx CDR StartTime 2025-02-06 09:20:06 - End Time 2025-02-06 12:20:06 [2025-02-06 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414999', 'tblTempUsageDetail_20' ) start [2025-02-06 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14414999', 'tblTempUsageDetail_20' ) end [2025-02-06 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414999', 'tblTempVendorCDR_20' ) start [2025-02-06 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14414999', 'tblTempVendorCDR_20' ) end [2025-02-06 12:20:24] Production.INFO: ProcessCDR(1,14414999,1,1,2) [2025-02-06 12:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14414999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14414999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14414999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14414999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414999', 'tblTempUsageDetail_20' ) start [2025-02-06 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14414999', 'tblTempUsageDetail_20' ) end [2025-02-06 12:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:20:29] Production.INFO: ==8145== Releasing lock... [2025-02-06 12:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:20:29] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:21:05 [end_date_ymd] => 2025-02-06 12:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:21:05' and `end` < '2025-02-06 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-06 12:21:32] Production.INFO: count ==4825 [2025-02-06 12:21:34] Production.ERROR: pbx CDR StartTime 2025-02-06 09:21:05 - End Time 2025-02-06 12:21:05 [2025-02-06 12:21:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415005', 'tblTempUsageDetail_20' ) start [2025-02-06 12:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415005', 'tblTempUsageDetail_20' ) end [2025-02-06 12:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415005', 'tblTempVendorCDR_20' ) start [2025-02-06 12:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415005', 'tblTempVendorCDR_20' ) end [2025-02-06 12:21:34] Production.INFO: ProcessCDR(1,14415005,1,1,2) [2025-02-06 12:21:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:21:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:21:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:21:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:21:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415005', 'tblTempUsageDetail_20' ) start [2025-02-06 12:21:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415005', 'tblTempUsageDetail_20' ) end [2025-02-06 12:21:39] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:21:39] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:21:39] Production.INFO: ==8262== Releasing lock... [2025-02-06 12:21:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:21:39] Production.INFO: 64 MB #Memory Used# [2025-02-06 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:22:05 [end_date_ymd] => 2025-02-06 12:22:05 [RateCDR] => 1 ) [2025-02-06 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:22:05' and `end` < '2025-02-06 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:22:24] Production.INFO: count ==4822 [2025-02-06 12:22:26] Production.ERROR: pbx CDR StartTime 2025-02-06 09:22:05 - End Time 2025-02-06 12:22:05 [2025-02-06 12:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415010', 'tblTempUsageDetail_20' ) start [2025-02-06 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415010', 'tblTempUsageDetail_20' ) end [2025-02-06 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415010', 'tblTempVendorCDR_20' ) start [2025-02-06 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415010', 'tblTempVendorCDR_20' ) end [2025-02-06 12:22:27] Production.INFO: ProcessCDR(1,14415010,1,1,2) [2025-02-06 12:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415010', 'tblTempUsageDetail_20' ) start [2025-02-06 12:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415010', 'tblTempUsageDetail_20' ) end [2025-02-06 12:22:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:22:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:22:32] Production.INFO: ==8376== Releasing lock... [2025-02-06 12:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:22:32] Production.INFO: 64 MB #Memory Used# [2025-02-06 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:23:05 [end_date_ymd] => 2025-02-06 12:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:23:05' and `end` < '2025-02-06 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-06 12:23:33] Production.INFO: count ==4837 [2025-02-06 12:23:35] Production.ERROR: pbx CDR StartTime 2025-02-06 09:23:05 - End Time 2025-02-06 12:23:05 [2025-02-06 12:23:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415015', 'tblTempUsageDetail_20' ) start [2025-02-06 12:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415015', 'tblTempUsageDetail_20' ) end [2025-02-06 12:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415015', 'tblTempVendorCDR_20' ) start [2025-02-06 12:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415015', 'tblTempVendorCDR_20' ) end [2025-02-06 12:23:35] Production.INFO: ProcessCDR(1,14415015,1,1,2) [2025-02-06 12:23:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:23:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:23:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:23:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:23:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415015', 'tblTempUsageDetail_20' ) start [2025-02-06 12:23:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415015', 'tblTempUsageDetail_20' ) end [2025-02-06 12:23:40] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:23:40] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:23:40] Production.INFO: ==8485== Releasing lock... [2025-02-06 12:23:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:23:40] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:24:05 [end_date_ymd] => 2025-02-06 12:24:05 [RateCDR] => 1 ) [2025-02-06 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:24:05' and `end` < '2025-02-06 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:24:26] Production.INFO: count ==4837 [2025-02-06 12:24:28] Production.ERROR: pbx CDR StartTime 2025-02-06 09:24:05 - End Time 2025-02-06 12:24:05 [2025-02-06 12:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415020', 'tblTempUsageDetail_20' ) start [2025-02-06 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415020', 'tblTempUsageDetail_20' ) end [2025-02-06 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415020', 'tblTempVendorCDR_20' ) start [2025-02-06 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415020', 'tblTempVendorCDR_20' ) end [2025-02-06 12:24:29] Production.INFO: ProcessCDR(1,14415020,1,1,2) [2025-02-06 12:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415020', 'tblTempUsageDetail_20' ) start [2025-02-06 12:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415020', 'tblTempUsageDetail_20' ) end [2025-02-06 12:24:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:24:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:24:33] Production.INFO: ==8598== Releasing lock... [2025-02-06 12:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:24:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:25:05 [end_date_ymd] => 2025-02-06 12:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:25:05' and `end` < '2025-02-06 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-06 12:25:26] Production.INFO: count ==4822 [2025-02-06 12:25:28] Production.ERROR: pbx CDR StartTime 2025-02-06 09:25:05 - End Time 2025-02-06 12:25:05 [2025-02-06 12:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415025', 'tblTempUsageDetail_20' ) start [2025-02-06 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415025', 'tblTempUsageDetail_20' ) end [2025-02-06 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415025', 'tblTempVendorCDR_20' ) start [2025-02-06 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415025', 'tblTempVendorCDR_20' ) end [2025-02-06 12:25:28] Production.INFO: ProcessCDR(1,14415025,1,1,2) [2025-02-06 12:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415025', 'tblTempUsageDetail_20' ) start [2025-02-06 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415025', 'tblTempUsageDetail_20' ) end [2025-02-06 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:25:33] Production.INFO: ==8710== Releasing lock... [2025-02-06 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:25:33] Production.INFO: 64 MB #Memory Used# [2025-02-06 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:26:05 [end_date_ymd] => 2025-02-06 12:26:05 [RateCDR] => 1 ) [2025-02-06 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:26:05' and `end` < '2025-02-06 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:26:27] Production.INFO: count ==4826 [2025-02-06 12:26:29] Production.ERROR: pbx CDR StartTime 2025-02-06 09:26:05 - End Time 2025-02-06 12:26:05 [2025-02-06 12:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415030', 'tblTempUsageDetail_20' ) start [2025-02-06 12:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415030', 'tblTempUsageDetail_20' ) end [2025-02-06 12:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415030', 'tblTempVendorCDR_20' ) start [2025-02-06 12:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415030', 'tblTempVendorCDR_20' ) end [2025-02-06 12:26:29] Production.INFO: ProcessCDR(1,14415030,1,1,2) [2025-02-06 12:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415030', 'tblTempUsageDetail_20' ) start [2025-02-06 12:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415030', 'tblTempUsageDetail_20' ) end [2025-02-06 12:26:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:26:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:26:34] Production.INFO: ==8819== Releasing lock... [2025-02-06 12:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:26:34] Production.INFO: 64 MB #Memory Used# [2025-02-06 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:27:05 [end_date_ymd] => 2025-02-06 12:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:27:05' and `end` < '2025-02-06 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-06 12:27:25] Production.INFO: count ==4818 [2025-02-06 12:27:27] Production.ERROR: pbx CDR StartTime 2025-02-06 09:27:05 - End Time 2025-02-06 12:27:05 [2025-02-06 12:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415035', 'tblTempUsageDetail_20' ) start [2025-02-06 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415035', 'tblTempUsageDetail_20' ) end [2025-02-06 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415035', 'tblTempVendorCDR_20' ) start [2025-02-06 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415035', 'tblTempVendorCDR_20' ) end [2025-02-06 12:27:27] Production.INFO: ProcessCDR(1,14415035,1,1,2) [2025-02-06 12:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415035', 'tblTempUsageDetail_20' ) start [2025-02-06 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415035', 'tblTempUsageDetail_20' ) end [2025-02-06 12:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:27:32] Production.INFO: ==8933== Releasing lock... [2025-02-06 12:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:27:32] Production.INFO: 64 MB #Memory Used# [2025-02-06 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:28:05 [end_date_ymd] => 2025-02-06 12:28:05 [RateCDR] => 1 ) [2025-02-06 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:28:05' and `end` < '2025-02-06 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:28:24] Production.INFO: count ==4820 [2025-02-06 12:28:26] Production.ERROR: pbx CDR StartTime 2025-02-06 09:28:05 - End Time 2025-02-06 12:28:05 [2025-02-06 12:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415040', 'tblTempUsageDetail_20' ) start [2025-02-06 12:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415040', 'tblTempUsageDetail_20' ) end [2025-02-06 12:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415040', 'tblTempVendorCDR_20' ) start [2025-02-06 12:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415040', 'tblTempVendorCDR_20' ) end [2025-02-06 12:28:26] Production.INFO: ProcessCDR(1,14415040,1,1,2) [2025-02-06 12:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415040', 'tblTempUsageDetail_20' ) start [2025-02-06 12:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415040', 'tblTempUsageDetail_20' ) end [2025-02-06 12:28:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:28:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:28:31] Production.INFO: ==9039== Releasing lock... [2025-02-06 12:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:28:31] Production.INFO: 64 MB #Memory Used# [2025-02-06 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:29:05 [end_date_ymd] => 2025-02-06 12:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:29:05' and `end` < '2025-02-06 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-06 12:29:21] Production.INFO: count ==4810 [2025-02-06 12:29:23] Production.ERROR: pbx CDR StartTime 2025-02-06 09:29:05 - End Time 2025-02-06 12:29:05 [2025-02-06 12:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415045', 'tblTempUsageDetail_20' ) start [2025-02-06 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415045', 'tblTempUsageDetail_20' ) end [2025-02-06 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415045', 'tblTempVendorCDR_20' ) start [2025-02-06 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415045', 'tblTempVendorCDR_20' ) end [2025-02-06 12:29:23] Production.INFO: ProcessCDR(1,14415045,1,1,2) [2025-02-06 12:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415045', 'tblTempUsageDetail_20' ) start [2025-02-06 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415045', 'tblTempUsageDetail_20' ) end [2025-02-06 12:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:29:28] Production.INFO: ==9151== Releasing lock... [2025-02-06 12:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:29:28] Production.INFO: 64 MB #Memory Used# [2025-02-06 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:30:06 [end_date_ymd] => 2025-02-06 12:30:06 [RateCDR] => 1 ) [2025-02-06 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:30:06' and `end` < '2025-02-06 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:30:35] Production.INFO: count ==4816 [2025-02-06 12:30:37] Production.ERROR: pbx CDR StartTime 2025-02-06 09:30:06 - End Time 2025-02-06 12:30:06 [2025-02-06 12:30:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415051', 'tblTempUsageDetail_20' ) start [2025-02-06 12:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415051', 'tblTempUsageDetail_20' ) end [2025-02-06 12:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415051', 'tblTempVendorCDR_20' ) start [2025-02-06 12:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415051', 'tblTempVendorCDR_20' ) end [2025-02-06 12:30:37] Production.INFO: ProcessCDR(1,14415051,1,1,2) [2025-02-06 12:30:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:30:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:30:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:30:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:30:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415051', 'tblTempUsageDetail_20' ) start [2025-02-06 12:30:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415051', 'tblTempUsageDetail_20' ) end [2025-02-06 12:30:42] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:30:42] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:30:42] Production.INFO: ==9264== Releasing lock... [2025-02-06 12:30:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:30:42] Production.INFO: 64 MB #Memory Used# [2025-02-06 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:31:05 [end_date_ymd] => 2025-02-06 12:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:31:05' and `end` < '2025-02-06 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-06 12:31:25] Production.INFO: count ==4879 [2025-02-06 12:31:27] Production.ERROR: pbx CDR StartTime 2025-02-06 09:31:05 - End Time 2025-02-06 12:31:05 [2025-02-06 12:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415056', 'tblTempUsageDetail_20' ) start [2025-02-06 12:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415056', 'tblTempUsageDetail_20' ) end [2025-02-06 12:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415056', 'tblTempVendorCDR_20' ) start [2025-02-06 12:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415056', 'tblTempVendorCDR_20' ) end [2025-02-06 12:31:27] Production.INFO: ProcessCDR(1,14415056,1,1,2) [2025-02-06 12:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415056', 'tblTempUsageDetail_20' ) start [2025-02-06 12:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415056', 'tblTempUsageDetail_20' ) end [2025-02-06 12:31:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:31:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:31:32] Production.INFO: ==9371== Releasing lock... [2025-02-06 12:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:31:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:32:06 [end_date_ymd] => 2025-02-06 12:32:06 [RateCDR] => 1 ) [2025-02-06 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-06 09:32:06' and `end` < '2025-02-06 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-06 12:32:27] Production.INFO: count ==4867 [2025-02-06 12:32:29] Production.ERROR: pbx CDR StartTime 2025-02-06 09:32:06 - End Time 2025-02-06 12:32:06 [2025-02-06 12:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415061', 'tblTempUsageDetail_20' ) start [2025-02-06 12:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415061', 'tblTempUsageDetail_20' ) end [2025-02-06 12:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415061', 'tblTempVendorCDR_20' ) start [2025-02-06 12:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415061', 'tblTempVendorCDR_20' ) end [2025-02-06 12:32:30] Production.INFO: ProcessCDR(1,14415061,1,1,2) [2025-02-06 12:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415061', 'tblTempUsageDetail_20' ) start [2025-02-06 12:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415061', 'tblTempUsageDetail_20' ) end [2025-02-06 12:32:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:32:35] Production.INFO: ==9484== Releasing lock... [2025-02-06 12:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:32:35] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:33:05 [end_date_ymd] => 2025-02-06 12:33:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:33:05' and `end` < '2025-02-06 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-06 12:33:26] Production.INFO: count ==4873 [2025-02-06 12:33:28] Production.ERROR: pbx CDR StartTime 2025-02-06 09:33:05 - End Time 2025-02-06 12:33:05 [2025-02-06 12:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415066', 'tblTempUsageDetail_20' ) start [2025-02-06 12:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415066', 'tblTempUsageDetail_20' ) end [2025-02-06 12:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415066', 'tblTempVendorCDR_20' ) start [2025-02-06 12:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415066', 'tblTempVendorCDR_20' ) end [2025-02-06 12:33:29] Production.INFO: ProcessCDR(1,14415066,1,1,2) [2025-02-06 12:33:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415066', 'tblTempUsageDetail_20' ) start [2025-02-06 12:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415066', 'tblTempUsageDetail_20' ) end [2025-02-06 12:33:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:33:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:33:33] Production.INFO: ==9591== Releasing lock... [2025-02-06 12:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:33:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:34:06 [end_date_ymd] => 2025-02-06 12:34:06 [RateCDR] => 1 ) [2025-02-06 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-06 09:34:06' and `end` < '2025-02-06 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-06 12:34:25] Production.INFO: count ==4874 [2025-02-06 12:34:27] Production.ERROR: pbx CDR StartTime 2025-02-06 09:34:06 - End Time 2025-02-06 12:34:06 [2025-02-06 12:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415071', 'tblTempUsageDetail_20' ) start [2025-02-06 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415071', 'tblTempUsageDetail_20' ) end [2025-02-06 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415071', 'tblTempVendorCDR_20' ) start [2025-02-06 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415071', 'tblTempVendorCDR_20' ) end [2025-02-06 12:34:27] Production.INFO: ProcessCDR(1,14415071,1,1,2) [2025-02-06 12:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415071', 'tblTempUsageDetail_20' ) start [2025-02-06 12:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415071', 'tblTempUsageDetail_20' ) end [2025-02-06 12:34:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:34:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:34:32] Production.INFO: ==9705== Releasing lock... [2025-02-06 12:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:34:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:35:05 [end_date_ymd] => 2025-02-06 12:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:35:05' and `end` < '2025-02-06 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-06 12:35:26] Production.INFO: count ==4879 [2025-02-06 12:35:28] Production.ERROR: pbx CDR StartTime 2025-02-06 09:35:05 - End Time 2025-02-06 12:35:05 [2025-02-06 12:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415076', 'tblTempUsageDetail_20' ) start [2025-02-06 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415076', 'tblTempUsageDetail_20' ) end [2025-02-06 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415076', 'tblTempVendorCDR_20' ) start [2025-02-06 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415076', 'tblTempVendorCDR_20' ) end [2025-02-06 12:35:28] Production.INFO: ProcessCDR(1,14415076,1,1,2) [2025-02-06 12:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415076', 'tblTempUsageDetail_20' ) start [2025-02-06 12:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415076', 'tblTempUsageDetail_20' ) end [2025-02-06 12:35:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:35:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:35:33] Production.INFO: ==9855== Releasing lock... [2025-02-06 12:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:35:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:36:05 [end_date_ymd] => 2025-02-06 12:36:05 [RateCDR] => 1 ) [2025-02-06 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:36:05' and `end` < '2025-02-06 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:36:21] Production.INFO: count ==4873 [2025-02-06 12:36:23] Production.ERROR: pbx CDR StartTime 2025-02-06 09:36:05 - End Time 2025-02-06 12:36:05 [2025-02-06 12:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415081', 'tblTempUsageDetail_20' ) start [2025-02-06 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415081', 'tblTempUsageDetail_20' ) end [2025-02-06 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415081', 'tblTempVendorCDR_20' ) start [2025-02-06 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415081', 'tblTempVendorCDR_20' ) end [2025-02-06 12:36:23] Production.INFO: ProcessCDR(1,14415081,1,1,2) [2025-02-06 12:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415081', 'tblTempUsageDetail_20' ) start [2025-02-06 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415081', 'tblTempUsageDetail_20' ) end [2025-02-06 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:36:27] Production.INFO: ==9960== Releasing lock... [2025-02-06 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:36:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:37:05 [end_date_ymd] => 2025-02-06 12:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:37:05' and `end` < '2025-02-06 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-06 12:37:20] Production.INFO: count ==4876 [2025-02-06 12:37:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:37:05 - End Time 2025-02-06 12:37:05 [2025-02-06 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415086', 'tblTempUsageDetail_20' ) start [2025-02-06 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415086', 'tblTempUsageDetail_20' ) end [2025-02-06 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415086', 'tblTempVendorCDR_20' ) start [2025-02-06 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415086', 'tblTempVendorCDR_20' ) end [2025-02-06 12:37:23] Production.INFO: ProcessCDR(1,14415086,1,1,2) [2025-02-06 12:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415086', 'tblTempUsageDetail_20' ) start [2025-02-06 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415086', 'tblTempUsageDetail_20' ) end [2025-02-06 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:37:27] Production.INFO: ==10074== Releasing lock... [2025-02-06 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:37:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:38:05 [end_date_ymd] => 2025-02-06 12:38:05 [RateCDR] => 1 ) [2025-02-06 12: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-06 09:38:05' and `end` < '2025-02-06 12: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-06 12:38:22] Production.INFO: count ==4868 [2025-02-06 12:38:24] Production.ERROR: pbx CDR StartTime 2025-02-06 09:38:05 - End Time 2025-02-06 12:38:05 [2025-02-06 12:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415091', 'tblTempUsageDetail_20' ) start [2025-02-06 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415091', 'tblTempUsageDetail_20' ) end [2025-02-06 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415091', 'tblTempVendorCDR_20' ) start [2025-02-06 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415091', 'tblTempVendorCDR_20' ) end [2025-02-06 12:38:24] Production.INFO: ProcessCDR(1,14415091,1,1,2) [2025-02-06 12:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415091', 'tblTempUsageDetail_20' ) start [2025-02-06 12:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415091', 'tblTempUsageDetail_20' ) end [2025-02-06 12:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:38:29] Production.INFO: ==10187== Releasing lock... [2025-02-06 12:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:38:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:39:05 [end_date_ymd] => 2025-02-06 12:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:39:05' and `end` < '2025-02-06 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-06 12:39:22] Production.INFO: count ==4883 [2025-02-06 12:39:24] Production.ERROR: pbx CDR StartTime 2025-02-06 09:39:05 - End Time 2025-02-06 12:39:05 [2025-02-06 12:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415096', 'tblTempUsageDetail_20' ) start [2025-02-06 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415096', 'tblTempUsageDetail_20' ) end [2025-02-06 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415096', 'tblTempVendorCDR_20' ) start [2025-02-06 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415096', 'tblTempVendorCDR_20' ) end [2025-02-06 12:39:24] Production.INFO: ProcessCDR(1,14415096,1,1,2) [2025-02-06 12:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415096', 'tblTempUsageDetail_20' ) start [2025-02-06 12:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415096', 'tblTempUsageDetail_20' ) end [2025-02-06 12:39:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:39:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:39:29] Production.INFO: ==10303== Releasing lock... [2025-02-06 12:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:39:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:40:06 [end_date_ymd] => 2025-02-06 12:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 09:40:06' and `end` < '2025-02-06 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-06 12:40:28] Production.INFO: count ==4887 [2025-02-06 12:40:30] Production.ERROR: pbx CDR StartTime 2025-02-06 09:40:06 - End Time 2025-02-06 12:40:06 [2025-02-06 12:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415101', 'tblTempUsageDetail_20' ) start [2025-02-06 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415101', 'tblTempUsageDetail_20' ) end [2025-02-06 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415101', 'tblTempVendorCDR_20' ) start [2025-02-06 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415101', 'tblTempVendorCDR_20' ) end [2025-02-06 12:40:30] Production.INFO: ProcessCDR(1,14415101,1,1,2) [2025-02-06 12:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415101', 'tblTempUsageDetail_20' ) start [2025-02-06 12:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415101', 'tblTempUsageDetail_20' ) end [2025-02-06 12:40:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:40:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:40:35] Production.INFO: ==10412== Releasing lock... [2025-02-06 12:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:40:35] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:41:05 [end_date_ymd] => 2025-02-06 12:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:41:05' and `end` < '2025-02-06 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-06 12:41:24] Production.INFO: count ==4887 [2025-02-06 12:41:26] Production.ERROR: pbx CDR StartTime 2025-02-06 09:41:05 - End Time 2025-02-06 12:41:05 [2025-02-06 12:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415107', 'tblTempUsageDetail_20' ) start [2025-02-06 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415107', 'tblTempUsageDetail_20' ) end [2025-02-06 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415107', 'tblTempVendorCDR_20' ) start [2025-02-06 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415107', 'tblTempVendorCDR_20' ) end [2025-02-06 12:41:26] Production.INFO: ProcessCDR(1,14415107,1,1,2) [2025-02-06 12:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415107', 'tblTempUsageDetail_20' ) start [2025-02-06 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415107', 'tblTempUsageDetail_20' ) end [2025-02-06 12:41:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:41:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:41:31] Production.INFO: ==10522== Releasing lock... [2025-02-06 12:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:41:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:42:05 [end_date_ymd] => 2025-02-06 12:42:05 [RateCDR] => 1 ) [2025-02-06 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:42:05' and `end` < '2025-02-06 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:42:22] Production.INFO: count ==4886 [2025-02-06 12:42:24] Production.ERROR: pbx CDR StartTime 2025-02-06 09:42:05 - End Time 2025-02-06 12:42:05 [2025-02-06 12:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415112', 'tblTempUsageDetail_20' ) start [2025-02-06 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415112', 'tblTempUsageDetail_20' ) end [2025-02-06 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415112', 'tblTempVendorCDR_20' ) start [2025-02-06 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415112', 'tblTempVendorCDR_20' ) end [2025-02-06 12:42:24] Production.INFO: ProcessCDR(1,14415112,1,1,2) [2025-02-06 12:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415112', 'tblTempUsageDetail_20' ) start [2025-02-06 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415112', 'tblTempUsageDetail_20' ) end [2025-02-06 12:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:42:29] Production.INFO: ==10628== Releasing lock... [2025-02-06 12:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:42:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:43:05 [end_date_ymd] => 2025-02-06 12:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:43:05' and `end` < '2025-02-06 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-06 12:43:25] Production.INFO: count ==4895 [2025-02-06 12:43:28] Production.ERROR: pbx CDR StartTime 2025-02-06 09:43:05 - End Time 2025-02-06 12:43:05 [2025-02-06 12:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415117', 'tblTempUsageDetail_20' ) start [2025-02-06 12:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415117', 'tblTempUsageDetail_20' ) end [2025-02-06 12:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415117', 'tblTempVendorCDR_20' ) start [2025-02-06 12:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415117', 'tblTempVendorCDR_20' ) end [2025-02-06 12:43:28] Production.INFO: ProcessCDR(1,14415117,1,1,2) [2025-02-06 12:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415117', 'tblTempUsageDetail_20' ) start [2025-02-06 12:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415117', 'tblTempUsageDetail_20' ) end [2025-02-06 12:43:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:43:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:43:32] Production.INFO: ==10739== Releasing lock... [2025-02-06 12:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:43:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:44:04 [end_date_ymd] => 2025-02-06 12:44:04 [RateCDR] => 1 ) [2025-02-06 12:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:44:04' and `end` < '2025-02-06 12:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:44:26] Production.INFO: count ==4896 [2025-02-06 12:44:28] Production.ERROR: pbx CDR StartTime 2025-02-06 09:44:04 - End Time 2025-02-06 12:44:04 [2025-02-06 12:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415122', 'tblTempUsageDetail_20' ) start [2025-02-06 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415122', 'tblTempUsageDetail_20' ) end [2025-02-06 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415122', 'tblTempVendorCDR_20' ) start [2025-02-06 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415122', 'tblTempVendorCDR_20' ) end [2025-02-06 12:44:28] Production.INFO: ProcessCDR(1,14415122,1,1,2) [2025-02-06 12:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415122', 'tblTempUsageDetail_20' ) start [2025-02-06 12:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415122', 'tblTempUsageDetail_20' ) end [2025-02-06 12:44:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:44:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:44:33] Production.INFO: ==10844== Releasing lock... [2025-02-06 12:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:44:33] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:45:06 [end_date_ymd] => 2025-02-06 12:45:06 [RateCDR] => 1 ) [2025-02-06 12: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-06 09:45:06' and `end` < '2025-02-06 12: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-06 12:45:27] Production.INFO: count ==4914 [2025-02-06 12:45:29] Production.ERROR: pbx CDR StartTime 2025-02-06 09:45:06 - End Time 2025-02-06 12:45:06 [2025-02-06 12:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415127', 'tblTempUsageDetail_20' ) start [2025-02-06 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415127', 'tblTempUsageDetail_20' ) end [2025-02-06 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415127', 'tblTempVendorCDR_20' ) start [2025-02-06 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415127', 'tblTempVendorCDR_20' ) end [2025-02-06 12:45:29] Production.INFO: ProcessCDR(1,14415127,1,1,2) [2025-02-06 12:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415127', 'tblTempUsageDetail_20' ) start [2025-02-06 12:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415127', 'tblTempUsageDetail_20' ) end [2025-02-06 12:45:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:45:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:45:35] Production.INFO: ==10956== Releasing lock... [2025-02-06 12:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:45:35] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:46:04 [end_date_ymd] => 2025-02-06 12:46:04 [RateCDR] => 1 ) [2025-02-06 12: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-06 09:46:04' and `end` < '2025-02-06 12: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-06 12:46:20] Production.INFO: count ==4902 [2025-02-06 12:46:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:46:04 - End Time 2025-02-06 12:46:04 [2025-02-06 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415132', 'tblTempUsageDetail_20' ) start [2025-02-06 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415132', 'tblTempUsageDetail_20' ) end [2025-02-06 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415132', 'tblTempVendorCDR_20' ) start [2025-02-06 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415132', 'tblTempVendorCDR_20' ) end [2025-02-06 12:46:22] Production.INFO: ProcessCDR(1,14415132,1,1,2) [2025-02-06 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415132', 'tblTempUsageDetail_20' ) start [2025-02-06 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415132', 'tblTempUsageDetail_20' ) end [2025-02-06 12:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:46:25] Production.INFO: ==11065== Releasing lock... [2025-02-06 12:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:46:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:47:05 [end_date_ymd] => 2025-02-06 12:47:05 [RateCDR] => 1 ) [2025-02-06 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:47:05' and `end` < '2025-02-06 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-06 12:47:20] Production.INFO: count ==4903 [2025-02-06 12:47:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:47:05 - End Time 2025-02-06 12:47:05 [2025-02-06 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415137', 'tblTempUsageDetail_20' ) start [2025-02-06 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415137', 'tblTempUsageDetail_20' ) end [2025-02-06 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415137', 'tblTempVendorCDR_20' ) start [2025-02-06 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415137', 'tblTempVendorCDR_20' ) end [2025-02-06 12:47:22] Production.INFO: ProcessCDR(1,14415137,1,1,2) [2025-02-06 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415137', 'tblTempUsageDetail_20' ) start [2025-02-06 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415137', 'tblTempUsageDetail_20' ) end [2025-02-06 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:47:26] Production.INFO: ==11170== Releasing lock... [2025-02-06 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:47:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:48:05 [end_date_ymd] => 2025-02-06 12:48:05 [RateCDR] => 1 ) [2025-02-06 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:48:05' and `end` < '2025-02-06 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-06 12:48:19] Production.INFO: count ==4895 [2025-02-06 12:48:21] Production.ERROR: pbx CDR StartTime 2025-02-06 09:48:05 - End Time 2025-02-06 12:48:05 [2025-02-06 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415142', 'tblTempUsageDetail_20' ) start [2025-02-06 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415142', 'tblTempUsageDetail_20' ) end [2025-02-06 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415142', 'tblTempVendorCDR_20' ) start [2025-02-06 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415142', 'tblTempVendorCDR_20' ) end [2025-02-06 12:48:21] Production.INFO: ProcessCDR(1,14415142,1,1,2) [2025-02-06 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415142', 'tblTempUsageDetail_20' ) start [2025-02-06 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415142', 'tblTempUsageDetail_20' ) end [2025-02-06 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:48:26] Production.INFO: ==11277== Releasing lock... [2025-02-06 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:48:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:49:05 [end_date_ymd] => 2025-02-06 12:49:05 [RateCDR] => 1 ) [2025-02-06 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:49:05' and `end` < '2025-02-06 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:49:23] Production.INFO: count ==4918 [2025-02-06 12:49:25] Production.ERROR: pbx CDR StartTime 2025-02-06 09:49:05 - End Time 2025-02-06 12:49:05 [2025-02-06 12:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415147', 'tblTempUsageDetail_20' ) start [2025-02-06 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415147', 'tblTempUsageDetail_20' ) end [2025-02-06 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415147', 'tblTempVendorCDR_20' ) start [2025-02-06 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415147', 'tblTempVendorCDR_20' ) end [2025-02-06 12:49:25] Production.INFO: ProcessCDR(1,14415147,1,1,2) [2025-02-06 12:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415147', 'tblTempUsageDetail_20' ) start [2025-02-06 12:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415147', 'tblTempUsageDetail_20' ) end [2025-02-06 12:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:49:30] Production.INFO: ==11383== Releasing lock... [2025-02-06 12:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:49:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:50:05 [end_date_ymd] => 2025-02-06 12:50:05 [RateCDR] => 1 ) [2025-02-06 12: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-06 09:50:05' and `end` < '2025-02-06 12: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-06 12:50:19] Production.INFO: count ==4926 [2025-02-06 12:50:21] Production.ERROR: pbx CDR StartTime 2025-02-06 09:50:05 - End Time 2025-02-06 12:50:05 [2025-02-06 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415153', 'tblTempUsageDetail_20' ) start [2025-02-06 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415153', 'tblTempUsageDetail_20' ) end [2025-02-06 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415153', 'tblTempVendorCDR_20' ) start [2025-02-06 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415153', 'tblTempVendorCDR_20' ) end [2025-02-06 12:50:22] Production.INFO: ProcessCDR(1,14415153,1,1,2) [2025-02-06 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415153', 'tblTempUsageDetail_20' ) start [2025-02-06 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415153', 'tblTempUsageDetail_20' ) end [2025-02-06 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:50:26] Production.INFO: ==11531== Releasing lock... [2025-02-06 12:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:50:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:51:05 [end_date_ymd] => 2025-02-06 12:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:51:05' and `end` < '2025-02-06 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-06 12:51:19] Production.INFO: count ==4931 [2025-02-06 12:51:22] Production.ERROR: pbx CDR StartTime 2025-02-06 09:51:05 - End Time 2025-02-06 12:51:05 [2025-02-06 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415158', 'tblTempUsageDetail_20' ) start [2025-02-06 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415158', 'tblTempUsageDetail_20' ) end [2025-02-06 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415158', 'tblTempVendorCDR_20' ) start [2025-02-06 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415158', 'tblTempVendorCDR_20' ) end [2025-02-06 12:51:22] Production.INFO: ProcessCDR(1,14415158,1,1,2) [2025-02-06 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415158', 'tblTempUsageDetail_20' ) start [2025-02-06 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415158', 'tblTempUsageDetail_20' ) end [2025-02-06 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:51:26] Production.INFO: ==11642== Releasing lock... [2025-02-06 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:51:26] Production.INFO: 65 MB #Memory Used# [2025-02-06 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:52:05 [end_date_ymd] => 2025-02-06 12:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:52:05' and `end` < '2025-02-06 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-06 12:52:19] Production.INFO: count ==4946 [2025-02-06 12:52:21] Production.ERROR: pbx CDR StartTime 2025-02-06 09:52:05 - End Time 2025-02-06 12:52:05 [2025-02-06 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415163', 'tblTempUsageDetail_20' ) start [2025-02-06 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415163', 'tblTempUsageDetail_20' ) end [2025-02-06 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415163', 'tblTempVendorCDR_20' ) start [2025-02-06 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415163', 'tblTempVendorCDR_20' ) end [2025-02-06 12:52:22] Production.INFO: ProcessCDR(1,14415163,1,1,2) [2025-02-06 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415163', 'tblTempUsageDetail_20' ) start [2025-02-06 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415163', 'tblTempUsageDetail_20' ) end [2025-02-06 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:52:26] Production.INFO: ==11752== Releasing lock... [2025-02-06 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:52:26] Production.INFO: 65 MB #Memory Used# [2025-02-06 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:53:05 [end_date_ymd] => 2025-02-06 12:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:53:05' and `end` < '2025-02-06 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-06 12:53:23] Production.INFO: count ==4946 [2025-02-06 12:53:25] Production.ERROR: pbx CDR StartTime 2025-02-06 09:53:05 - End Time 2025-02-06 12:53:05 [2025-02-06 12:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415168', 'tblTempUsageDetail_20' ) start [2025-02-06 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415168', 'tblTempUsageDetail_20' ) end [2025-02-06 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415168', 'tblTempVendorCDR_20' ) start [2025-02-06 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415168', 'tblTempVendorCDR_20' ) end [2025-02-06 12:53:25] Production.INFO: ProcessCDR(1,14415168,1,1,2) [2025-02-06 12:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415168', 'tblTempUsageDetail_20' ) start [2025-02-06 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415168', 'tblTempUsageDetail_20' ) end [2025-02-06 12:53:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:53:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:53:30] Production.INFO: ==11855== Releasing lock... [2025-02-06 12:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:53:30] Production.INFO: 65 MB #Memory Used# [2025-02-06 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:54:05 [end_date_ymd] => 2025-02-06 12:54:05 [RateCDR] => 1 ) [2025-02-06 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:54:05' and `end` < '2025-02-06 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:54:25] Production.INFO: count ==4921 [2025-02-06 12:54:27] Production.ERROR: pbx CDR StartTime 2025-02-06 09:54:05 - End Time 2025-02-06 12:54:05 [2025-02-06 12:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415173', 'tblTempUsageDetail_20' ) start [2025-02-06 12:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415173', 'tblTempUsageDetail_20' ) end [2025-02-06 12:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415173', 'tblTempVendorCDR_20' ) start [2025-02-06 12:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415173', 'tblTempVendorCDR_20' ) end [2025-02-06 12:54:27] Production.INFO: ProcessCDR(1,14415173,1,1,2) [2025-02-06 12:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415173', 'tblTempUsageDetail_20' ) start [2025-02-06 12:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415173', 'tblTempUsageDetail_20' ) end [2025-02-06 12:54:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:54:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:54:32] Production.INFO: ==11980== Releasing lock... [2025-02-06 12:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:54:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:55:05 [end_date_ymd] => 2025-02-06 12:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:55:05' and `end` < '2025-02-06 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-06 12:55:21] Production.INFO: count ==4913 [2025-02-06 12:55:23] Production.ERROR: pbx CDR StartTime 2025-02-06 09:55:05 - End Time 2025-02-06 12:55:05 [2025-02-06 12:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415178', 'tblTempUsageDetail_20' ) start [2025-02-06 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415178', 'tblTempUsageDetail_20' ) end [2025-02-06 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415178', 'tblTempVendorCDR_20' ) start [2025-02-06 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415178', 'tblTempVendorCDR_20' ) end [2025-02-06 12:55:23] Production.INFO: ProcessCDR(1,14415178,1,1,2) [2025-02-06 12:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415178', 'tblTempUsageDetail_20' ) start [2025-02-06 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415178', 'tblTempUsageDetail_20' ) end [2025-02-06 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:55:27] Production.INFO: ==12085== Releasing lock... [2025-02-06 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:55:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:56:06 [end_date_ymd] => 2025-02-06 12:56:06 [RateCDR] => 1 ) [2025-02-06 12: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-06 09:56:06' and `end` < '2025-02-06 12: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-06 12:56:22] Production.INFO: count ==4911 [2025-02-06 12:56:24] Production.ERROR: pbx CDR StartTime 2025-02-06 09:56:06 - End Time 2025-02-06 12:56:06 [2025-02-06 12:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415183', 'tblTempUsageDetail_20' ) start [2025-02-06 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415183', 'tblTempUsageDetail_20' ) end [2025-02-06 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415183', 'tblTempVendorCDR_20' ) start [2025-02-06 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415183', 'tblTempVendorCDR_20' ) end [2025-02-06 12:56:24] Production.INFO: ProcessCDR(1,14415183,1,1,2) [2025-02-06 12:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415183', 'tblTempUsageDetail_20' ) start [2025-02-06 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415183', 'tblTempUsageDetail_20' ) end [2025-02-06 12:56:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:56:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:56:29] Production.INFO: ==12187== Releasing lock... [2025-02-06 12:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:56:29] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:57:05 [end_date_ymd] => 2025-02-06 12:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:57:05' and `end` < '2025-02-06 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-06 12:57:22] Production.INFO: count ==4914 [2025-02-06 12:57:24] Production.ERROR: pbx CDR StartTime 2025-02-06 09:57:05 - End Time 2025-02-06 12:57:05 [2025-02-06 12:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415188', 'tblTempUsageDetail_20' ) start [2025-02-06 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415188', 'tblTempUsageDetail_20' ) end [2025-02-06 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415188', 'tblTempVendorCDR_20' ) start [2025-02-06 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415188', 'tblTempVendorCDR_20' ) end [2025-02-06 12:57:25] Production.INFO: ProcessCDR(1,14415188,1,1,2) [2025-02-06 12:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415188', 'tblTempUsageDetail_20' ) start [2025-02-06 12:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415188', 'tblTempUsageDetail_20' ) end [2025-02-06 12:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:57:29] Production.INFO: ==12297== Releasing lock... [2025-02-06 12:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:57:29] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:58:05 [end_date_ymd] => 2025-02-06 12:58:05 [RateCDR] => 1 ) [2025-02-06 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 09:58:05' and `end` < '2025-02-06 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 12:58:22] Production.INFO: count ==4920 [2025-02-06 12:58:24] Production.ERROR: pbx CDR StartTime 2025-02-06 09:58:05 - End Time 2025-02-06 12:58:05 [2025-02-06 12:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415193', 'tblTempUsageDetail_20' ) start [2025-02-06 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415193', 'tblTempUsageDetail_20' ) end [2025-02-06 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415193', 'tblTempVendorCDR_20' ) start [2025-02-06 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415193', 'tblTempVendorCDR_20' ) end [2025-02-06 12:58:25] Production.INFO: ProcessCDR(1,14415193,1,1,2) [2025-02-06 12:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415193', 'tblTempUsageDetail_20' ) start [2025-02-06 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415193', 'tblTempUsageDetail_20' ) end [2025-02-06 12:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:58:29] Production.INFO: ==12398== Releasing lock... [2025-02-06 12:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:58:29] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 09:59:05 [end_date_ymd] => 2025-02-06 12:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 09:59:05' and `end` < '2025-02-06 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-06 12:59:19] Production.INFO: count ==4922 [2025-02-06 12:59:21] Production.ERROR: pbx CDR StartTime 2025-02-06 09:59:05 - End Time 2025-02-06 12:59:05 [2025-02-06 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415198', 'tblTempUsageDetail_20' ) start [2025-02-06 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415198', 'tblTempUsageDetail_20' ) end [2025-02-06 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415198', 'tblTempVendorCDR_20' ) start [2025-02-06 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415198', 'tblTempVendorCDR_20' ) end [2025-02-06 12:59:21] Production.INFO: ProcessCDR(1,14415198,1,1,2) [2025-02-06 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415198', 'tblTempUsageDetail_20' ) start [2025-02-06 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415198', 'tblTempUsageDetail_20' ) end [2025-02-06 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 12:59:26] Production.INFO: ==12502== Releasing lock... [2025-02-06 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 12:59:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:00:06 [end_date_ymd] => 2025-02-06 13:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 10:00:06' and `end` < '2025-02-06 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-06 13:00:25] Production.INFO: count ==4920 [2025-02-06 13:00:27] Production.ERROR: pbx CDR StartTime 2025-02-06 10:00:06 - End Time 2025-02-06 13:00:06 [2025-02-06 13:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415204', 'tblTempUsageDetail_20' ) start [2025-02-06 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415204', 'tblTempUsageDetail_20' ) end [2025-02-06 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415204', 'tblTempVendorCDR_20' ) start [2025-02-06 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415204', 'tblTempVendorCDR_20' ) end [2025-02-06 13:00:27] Production.INFO: ProcessCDR(1,14415204,1,1,2) [2025-02-06 13:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415204', 'tblTempUsageDetail_20' ) start [2025-02-06 13:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415204', 'tblTempUsageDetail_20' ) end [2025-02-06 13:00:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:00:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:00:31] Production.INFO: ==12612== Releasing lock... [2025-02-06 13:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:00:31] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:01:05 [end_date_ymd] => 2025-02-06 13:01:05 [RateCDR] => 1 ) [2025-02-06 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:01:05' and `end` < '2025-02-06 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:01:22] Production.INFO: count ==4962 [2025-02-06 13:01:24] Production.ERROR: pbx CDR StartTime 2025-02-06 10:01:05 - End Time 2025-02-06 13:01:05 [2025-02-06 13:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415209', 'tblTempUsageDetail_20' ) start [2025-02-06 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415209', 'tblTempUsageDetail_20' ) end [2025-02-06 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415209', 'tblTempVendorCDR_20' ) start [2025-02-06 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415209', 'tblTempVendorCDR_20' ) end [2025-02-06 13:01:24] Production.INFO: ProcessCDR(1,14415209,1,1,2) [2025-02-06 13:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415209', 'tblTempUsageDetail_20' ) start [2025-02-06 13:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415209', 'tblTempUsageDetail_20' ) end [2025-02-06 13:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:01:30] Production.INFO: ==12726== Releasing lock... [2025-02-06 13:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:01:30] Production.INFO: 65.25 MB #Memory Used# [2025-02-06 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:02:06 [end_date_ymd] => 2025-02-06 13:02:06 [RateCDR] => 1 ) [2025-02-06 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:02:06' and `end` < '2025-02-06 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:02:29] Production.INFO: count ==5003 [2025-02-06 13:02:31] Production.ERROR: pbx CDR StartTime 2025-02-06 10:02:06 - End Time 2025-02-06 13:02:06 [2025-02-06 13:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415214', 'tblTempUsageDetail_20' ) start [2025-02-06 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415214', 'tblTempUsageDetail_20' ) end [2025-02-06 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415214', 'tblTempVendorCDR_20' ) start [2025-02-06 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415214', 'tblTempVendorCDR_20' ) end [2025-02-06 13:02:31] Production.INFO: ProcessCDR(1,14415214,1,1,2) [2025-02-06 13:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415214', 'tblTempUsageDetail_20' ) start [2025-02-06 13:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415214', 'tblTempUsageDetail_20' ) end [2025-02-06 13:02:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:02:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:02:36] Production.INFO: ==12828== Releasing lock... [2025-02-06 13:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:02:36] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:03:04 [end_date_ymd] => 2025-02-06 13:03:04 [RateCDR] => 1 ) [2025-02-06 13:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:03:04' and `end` < '2025-02-06 13:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:03:24] Production.INFO: count ==4997 [2025-02-06 13:03:26] Production.ERROR: pbx CDR StartTime 2025-02-06 10:03:04 - End Time 2025-02-06 13:03:04 [2025-02-06 13:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415219', 'tblTempUsageDetail_20' ) start [2025-02-06 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415219', 'tblTempUsageDetail_20' ) end [2025-02-06 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415219', 'tblTempVendorCDR_20' ) start [2025-02-06 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415219', 'tblTempVendorCDR_20' ) end [2025-02-06 13:03:26] Production.INFO: ProcessCDR(1,14415219,1,1,2) [2025-02-06 13:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415219', 'tblTempUsageDetail_20' ) start [2025-02-06 13:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415219', 'tblTempUsageDetail_20' ) end [2025-02-06 13:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:03:31] Production.INFO: ==12931== Releasing lock... [2025-02-06 13:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:03:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:04:05 [end_date_ymd] => 2025-02-06 13:04:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:04:05' and `end` < '2025-02-06 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-06 13:04:19] Production.INFO: count ==4977 [2025-02-06 13:04:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:04:05 - End Time 2025-02-06 13:04:05 [2025-02-06 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415224', 'tblTempUsageDetail_20' ) start [2025-02-06 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415224', 'tblTempUsageDetail_20' ) end [2025-02-06 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415224', 'tblTempVendorCDR_20' ) start [2025-02-06 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415224', 'tblTempVendorCDR_20' ) end [2025-02-06 13:04:22] Production.INFO: ProcessCDR(1,14415224,1,1,2) [2025-02-06 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415224', 'tblTempUsageDetail_20' ) start [2025-02-06 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415224', 'tblTempUsageDetail_20' ) end [2025-02-06 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:04:26] Production.INFO: ==13035== Releasing lock... [2025-02-06 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:04:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-06 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:05:04 [end_date_ymd] => 2025-02-06 13:05:04 [RateCDR] => 1 ) [2025-02-06 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:05:04' and `end` < '2025-02-06 13: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-06 13:05:30] Production.INFO: count ==4974 [2025-02-06 13:05:32] Production.ERROR: pbx CDR StartTime 2025-02-06 10:05:04 - End Time 2025-02-06 13:05:04 [2025-02-06 13:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415229', 'tblTempUsageDetail_20' ) start [2025-02-06 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415229', 'tblTempUsageDetail_20' ) end [2025-02-06 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415229', 'tblTempVendorCDR_20' ) start [2025-02-06 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415229', 'tblTempVendorCDR_20' ) end [2025-02-06 13:05:32] Production.INFO: ProcessCDR(1,14415229,1,1,2) [2025-02-06 13:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415229', 'tblTempUsageDetail_20' ) start [2025-02-06 13:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415229', 'tblTempUsageDetail_20' ) end [2025-02-06 13:05:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:05:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:05:37] Production.INFO: ==13134== Releasing lock... [2025-02-06 13:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:05:37] Production.INFO: 65.25 MB #Memory Used# [2025-02-06 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:06:05 [end_date_ymd] => 2025-02-06 13:06:05 [RateCDR] => 1 ) [2025-02-06 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:06:05' and `end` < '2025-02-06 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:06:27] Production.INFO: count ==4954 [2025-02-06 13:06:29] Production.ERROR: pbx CDR StartTime 2025-02-06 10:06:05 - End Time 2025-02-06 13:06:05 [2025-02-06 13:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415234', 'tblTempUsageDetail_20' ) start [2025-02-06 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415234', 'tblTempUsageDetail_20' ) end [2025-02-06 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415234', 'tblTempVendorCDR_20' ) start [2025-02-06 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415234', 'tblTempVendorCDR_20' ) end [2025-02-06 13:06:29] Production.INFO: ProcessCDR(1,14415234,1,1,2) [2025-02-06 13:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415234', 'tblTempUsageDetail_20' ) start [2025-02-06 13:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415234', 'tblTempUsageDetail_20' ) end [2025-02-06 13:06:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:06:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:06:34] Production.INFO: ==13278== Releasing lock... [2025-02-06 13:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:06:34] Production.INFO: 65 MB #Memory Used# [2025-02-06 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:07:05 [end_date_ymd] => 2025-02-06 13:07:05 [RateCDR] => 1 ) [2025-02-06 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:07:05' and `end` < '2025-02-06 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:07:27] Production.INFO: count ==4971 [2025-02-06 13:07:29] Production.ERROR: pbx CDR StartTime 2025-02-06 10:07:05 - End Time 2025-02-06 13:07:05 [2025-02-06 13:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415239', 'tblTempUsageDetail_20' ) start [2025-02-06 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415239', 'tblTempUsageDetail_20' ) end [2025-02-06 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415239', 'tblTempVendorCDR_20' ) start [2025-02-06 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415239', 'tblTempVendorCDR_20' ) end [2025-02-06 13:07:29] Production.INFO: ProcessCDR(1,14415239,1,1,2) [2025-02-06 13:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415239', 'tblTempUsageDetail_20' ) start [2025-02-06 13:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415239', 'tblTempUsageDetail_20' ) end [2025-02-06 13:07:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:07:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:07:34] Production.INFO: ==13380== Releasing lock... [2025-02-06 13:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:07:34] Production.INFO: 65.25 MB #Memory Used# [2025-02-06 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:08:05 [end_date_ymd] => 2025-02-06 13:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:08:05' and `end` < '2025-02-06 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-06 13:08:26] Production.INFO: count ==4993 [2025-02-06 13:08:28] Production.ERROR: pbx CDR StartTime 2025-02-06 10:08:05 - End Time 2025-02-06 13:08:05 [2025-02-06 13:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415244', 'tblTempUsageDetail_20' ) start [2025-02-06 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415244', 'tblTempUsageDetail_20' ) end [2025-02-06 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415244', 'tblTempVendorCDR_20' ) start [2025-02-06 13:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415244', 'tblTempVendorCDR_20' ) end [2025-02-06 13:08:28] Production.INFO: ProcessCDR(1,14415244,1,1,2) [2025-02-06 13:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415244', 'tblTempUsageDetail_20' ) start [2025-02-06 13:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415244', 'tblTempUsageDetail_20' ) end [2025-02-06 13:08:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:08:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:08:33] Production.INFO: ==13486== Releasing lock... [2025-02-06 13:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:08:33] Production.INFO: 65.25 MB #Memory Used# [2025-02-06 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:09:06 [end_date_ymd] => 2025-02-06 13:09:06 [RateCDR] => 1 ) [2025-02-06 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-06 10:09:06' and `end` < '2025-02-06 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-06 13:09:23] Production.INFO: count ==5018 [2025-02-06 13:09:25] Production.ERROR: pbx CDR StartTime 2025-02-06 10:09:06 - End Time 2025-02-06 13:09:06 [2025-02-06 13:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415249', 'tblTempUsageDetail_20' ) start [2025-02-06 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415249', 'tblTempUsageDetail_20' ) end [2025-02-06 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415249', 'tblTempVendorCDR_20' ) start [2025-02-06 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415249', 'tblTempVendorCDR_20' ) end [2025-02-06 13:09:25] Production.INFO: ProcessCDR(1,14415249,1,1,2) [2025-02-06 13:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415249', 'tblTempUsageDetail_20' ) start [2025-02-06 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415249', 'tblTempUsageDetail_20' ) end [2025-02-06 13:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:09:30] Production.INFO: ==13586== Releasing lock... [2025-02-06 13:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:09:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:10:06 [end_date_ymd] => 2025-02-06 13:10:06 [RateCDR] => 1 ) [2025-02-06 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:10:06' and `end` < '2025-02-06 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:10:23] Production.INFO: count ==5018 [2025-02-06 13:10:25] Production.ERROR: pbx CDR StartTime 2025-02-06 10:10:06 - End Time 2025-02-06 13:10:06 [2025-02-06 13:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415255', 'tblTempUsageDetail_20' ) start [2025-02-06 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415255', 'tblTempUsageDetail_20' ) end [2025-02-06 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415255', 'tblTempVendorCDR_20' ) start [2025-02-06 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415255', 'tblTempVendorCDR_20' ) end [2025-02-06 13:10:25] Production.INFO: ProcessCDR(1,14415255,1,1,2) [2025-02-06 13:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415255', 'tblTempUsageDetail_20' ) start [2025-02-06 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415255', 'tblTempUsageDetail_20' ) end [2025-02-06 13:10:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:10:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:10:30] Production.INFO: ==13684== Releasing lock... [2025-02-06 13:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:10:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:11:06 [end_date_ymd] => 2025-02-06 13:11:06 [RateCDR] => 1 ) [2025-02-06 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-06 10:11:06' and `end` < '2025-02-06 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-06 13:11:35] Production.INFO: count ==5009 [2025-02-06 13:11:37] Production.ERROR: pbx CDR StartTime 2025-02-06 10:11:06 - End Time 2025-02-06 13:11:06 [2025-02-06 13:11:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415260', 'tblTempUsageDetail_20' ) start [2025-02-06 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415260', 'tblTempUsageDetail_20' ) end [2025-02-06 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415260', 'tblTempVendorCDR_20' ) start [2025-02-06 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415260', 'tblTempVendorCDR_20' ) end [2025-02-06 13:11:37] Production.INFO: ProcessCDR(1,14415260,1,1,2) [2025-02-06 13:11:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:11:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:11:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:11:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415260', 'tblTempUsageDetail_20' ) start [2025-02-06 13:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415260', 'tblTempUsageDetail_20' ) end [2025-02-06 13:11:42] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:11:42] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:11:42] Production.INFO: ==13783== Releasing lock... [2025-02-06 13:11:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:11:42] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:12:05 [end_date_ymd] => 2025-02-06 13:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:12:05' and `end` < '2025-02-06 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-06 13:12:27] Production.INFO: count ==5010 [2025-02-06 13:12:29] Production.ERROR: pbx CDR StartTime 2025-02-06 10:12:05 - End Time 2025-02-06 13:12:05 [2025-02-06 13:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415265', 'tblTempUsageDetail_20' ) start [2025-02-06 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415265', 'tblTempUsageDetail_20' ) end [2025-02-06 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415265', 'tblTempVendorCDR_20' ) start [2025-02-06 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415265', 'tblTempVendorCDR_20' ) end [2025-02-06 13:12:29] Production.INFO: ProcessCDR(1,14415265,1,1,2) [2025-02-06 13:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415265', 'tblTempUsageDetail_20' ) start [2025-02-06 13:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415265', 'tblTempUsageDetail_20' ) end [2025-02-06 13:12:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:12:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:12:34] Production.INFO: ==13881== Releasing lock... [2025-02-06 13:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:12:34] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:13:05 [end_date_ymd] => 2025-02-06 13:13:05 [RateCDR] => 1 ) [2025-02-06 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:13:05' and `end` < '2025-02-06 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:13:25] Production.INFO: count ==5008 [2025-02-06 13:13:27] Production.ERROR: pbx CDR StartTime 2025-02-06 10:13:05 - End Time 2025-02-06 13:13:05 [2025-02-06 13:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415270', 'tblTempUsageDetail_20' ) start [2025-02-06 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415270', 'tblTempUsageDetail_20' ) end [2025-02-06 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415270', 'tblTempVendorCDR_20' ) start [2025-02-06 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415270', 'tblTempVendorCDR_20' ) end [2025-02-06 13:13:27] Production.INFO: ProcessCDR(1,14415270,1,1,2) [2025-02-06 13:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415270', 'tblTempUsageDetail_20' ) start [2025-02-06 13:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415270', 'tblTempUsageDetail_20' ) end [2025-02-06 13:13:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:13:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:13:32] Production.INFO: ==13981== Releasing lock... [2025-02-06 13:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:13:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:14:05 [end_date_ymd] => 2025-02-06 13:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:14:05' and `end` < '2025-02-06 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-06 13:14:23] Production.INFO: count ==5014 [2025-02-06 13:14:25] Production.ERROR: pbx CDR StartTime 2025-02-06 10:14:05 - End Time 2025-02-06 13:14:05 [2025-02-06 13:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415275', 'tblTempUsageDetail_20' ) start [2025-02-06 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415275', 'tblTempUsageDetail_20' ) end [2025-02-06 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415275', 'tblTempVendorCDR_20' ) start [2025-02-06 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415275', 'tblTempVendorCDR_20' ) end [2025-02-06 13:14:25] Production.INFO: ProcessCDR(1,14415275,1,1,2) [2025-02-06 13:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415275', 'tblTempUsageDetail_20' ) start [2025-02-06 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415275', 'tblTempUsageDetail_20' ) end [2025-02-06 13:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:14:30] Production.INFO: ==14080== Releasing lock... [2025-02-06 13:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:14:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:15:05 [end_date_ymd] => 2025-02-06 13:15:05 [RateCDR] => 1 ) [2025-02-06 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:15:05' and `end` < '2025-02-06 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:15:23] Production.INFO: count ==5030 [2025-02-06 13:15:25] Production.ERROR: pbx CDR StartTime 2025-02-06 10:15:05 - End Time 2025-02-06 13:15:05 [2025-02-06 13:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415280', 'tblTempUsageDetail_20' ) start [2025-02-06 13:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415280', 'tblTempUsageDetail_20' ) end [2025-02-06 13:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415280', 'tblTempVendorCDR_20' ) start [2025-02-06 13:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415280', 'tblTempVendorCDR_20' ) end [2025-02-06 13:15:25] Production.INFO: ProcessCDR(1,14415280,1,1,2) [2025-02-06 13:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415280', 'tblTempUsageDetail_20' ) start [2025-02-06 13:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415280', 'tblTempUsageDetail_20' ) end [2025-02-06 13:15:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:15:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:15:30] Production.INFO: ==14176== Releasing lock... [2025-02-06 13:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:15:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-06 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:16:05 [end_date_ymd] => 2025-02-06 13:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:16:05' and `end` < '2025-02-06 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-06 13:16:24] Production.INFO: count ==5030 [2025-02-06 13:16:26] Production.ERROR: pbx CDR StartTime 2025-02-06 10:16:05 - End Time 2025-02-06 13:16:05 [2025-02-06 13:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415285', 'tblTempUsageDetail_20' ) start [2025-02-06 13:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415285', 'tblTempUsageDetail_20' ) end [2025-02-06 13:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415285', 'tblTempVendorCDR_20' ) start [2025-02-06 13:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415285', 'tblTempVendorCDR_20' ) end [2025-02-06 13:16:27] Production.INFO: ProcessCDR(1,14415285,1,1,2) [2025-02-06 13:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415285', 'tblTempUsageDetail_20' ) start [2025-02-06 13:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415285', 'tblTempUsageDetail_20' ) end [2025-02-06 13:16:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:16:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:16:31] Production.INFO: ==14279== Releasing lock... [2025-02-06 13:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:16:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-06 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:17:05 [end_date_ymd] => 2025-02-06 13:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:17:05' and `end` < '2025-02-06 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-06 13:17:26] Production.INFO: count ==5038 [2025-02-06 13:17:29] Production.ERROR: pbx CDR StartTime 2025-02-06 10:17:05 - End Time 2025-02-06 13:17:05 [2025-02-06 13:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415290', 'tblTempUsageDetail_20' ) start [2025-02-06 13:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415290', 'tblTempUsageDetail_20' ) end [2025-02-06 13:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415290', 'tblTempVendorCDR_20' ) start [2025-02-06 13:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415290', 'tblTempVendorCDR_20' ) end [2025-02-06 13:17:29] Production.INFO: ProcessCDR(1,14415290,1,1,2) [2025-02-06 13:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415290', 'tblTempUsageDetail_20' ) start [2025-02-06 13:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415290', 'tblTempUsageDetail_20' ) end [2025-02-06 13:17:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:17:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:17:34] Production.INFO: ==14382== Releasing lock... [2025-02-06 13:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:17:34] Production.INFO: 65.75 MB #Memory Used# [2025-02-06 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:18:05 [end_date_ymd] => 2025-02-06 13:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:18:05' and `end` < '2025-02-06 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-06 13:18:25] Production.INFO: count ==5073 [2025-02-06 13:18:27] Production.ERROR: pbx CDR StartTime 2025-02-06 10:18:05 - End Time 2025-02-06 13:18:05 [2025-02-06 13:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415295', 'tblTempUsageDetail_20' ) start [2025-02-06 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415295', 'tblTempUsageDetail_20' ) end [2025-02-06 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415295', 'tblTempVendorCDR_20' ) start [2025-02-06 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415295', 'tblTempVendorCDR_20' ) end [2025-02-06 13:18:27] Production.INFO: ProcessCDR(1,14415295,1,1,2) [2025-02-06 13:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415295', 'tblTempUsageDetail_20' ) start [2025-02-06 13:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415295', 'tblTempUsageDetail_20' ) end [2025-02-06 13:18:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:18:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:18:33] Production.INFO: ==14481== Releasing lock... [2025-02-06 13:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:18:33] Production.INFO: 66 MB #Memory Used# [2025-02-06 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:19:05 [end_date_ymd] => 2025-02-06 13:19:05 [RateCDR] => 1 ) [2025-02-06 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:19:05' and `end` < '2025-02-06 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:19:24] Production.INFO: count ==5059 [2025-02-06 13:19:26] Production.ERROR: pbx CDR StartTime 2025-02-06 10:19:05 - End Time 2025-02-06 13:19:05 [2025-02-06 13:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415300', 'tblTempUsageDetail_20' ) start [2025-02-06 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415300', 'tblTempUsageDetail_20' ) end [2025-02-06 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415300', 'tblTempVendorCDR_20' ) start [2025-02-06 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415300', 'tblTempVendorCDR_20' ) end [2025-02-06 13:19:26] Production.INFO: ProcessCDR(1,14415300,1,1,2) [2025-02-06 13:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415300', 'tblTempUsageDetail_20' ) start [2025-02-06 13:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415300', 'tblTempUsageDetail_20' ) end [2025-02-06 13:19:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:19:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:19:31] Production.INFO: ==14580== Releasing lock... [2025-02-06 13:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:19:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-06 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:20:06 [end_date_ymd] => 2025-02-06 13:20:06 [RateCDR] => 1 ) [2025-02-06 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-06 10:20:06' and `end` < '2025-02-06 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-06 13:20:25] Production.INFO: count ==5063 [2025-02-06 13:20:27] Production.ERROR: pbx CDR StartTime 2025-02-06 10:20:06 - End Time 2025-02-06 13:20:06 [2025-02-06 13:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415305', 'tblTempUsageDetail_20' ) start [2025-02-06 13:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415305', 'tblTempUsageDetail_20' ) end [2025-02-06 13:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415305', 'tblTempVendorCDR_20' ) start [2025-02-06 13:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415305', 'tblTempVendorCDR_20' ) end [2025-02-06 13:20:27] Production.INFO: ProcessCDR(1,14415305,1,1,2) [2025-02-06 13:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415305', 'tblTempUsageDetail_20' ) start [2025-02-06 13:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415305', 'tblTempUsageDetail_20' ) end [2025-02-06 13:20:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:20:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:20:32] Production.INFO: ==14684== Releasing lock... [2025-02-06 13:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:20:32] Production.INFO: 66 MB #Memory Used# [2025-02-06 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:21:05 [end_date_ymd] => 2025-02-06 13:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:21:05' and `end` < '2025-02-06 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-06 13:21:20] Production.INFO: count ==5030 [2025-02-06 13:21:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:21:05 - End Time 2025-02-06 13:21:05 [2025-02-06 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415311', 'tblTempUsageDetail_20' ) start [2025-02-06 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415311', 'tblTempUsageDetail_20' ) end [2025-02-06 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415311', 'tblTempVendorCDR_20' ) start [2025-02-06 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415311', 'tblTempVendorCDR_20' ) end [2025-02-06 13:21:23] Production.INFO: ProcessCDR(1,14415311,1,1,2) [2025-02-06 13:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415311', 'tblTempUsageDetail_20' ) start [2025-02-06 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415311', 'tblTempUsageDetail_20' ) end [2025-02-06 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:21:28] Production.INFO: ==14825== Releasing lock... [2025-02-06 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:21:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-06 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:22:05 [end_date_ymd] => 2025-02-06 13:22:05 [RateCDR] => 1 ) [2025-02-06 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:22:05' and `end` < '2025-02-06 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-06 13:22:19] Production.INFO: count ==5028 [2025-02-06 13:22:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:22:05 - End Time 2025-02-06 13:22:05 [2025-02-06 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415316', 'tblTempUsageDetail_20' ) start [2025-02-06 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415316', 'tblTempUsageDetail_20' ) end [2025-02-06 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415316', 'tblTempVendorCDR_20' ) start [2025-02-06 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415316', 'tblTempVendorCDR_20' ) end [2025-02-06 13:22:22] Production.INFO: ProcessCDR(1,14415316,1,1,2) [2025-02-06 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415316', 'tblTempUsageDetail_20' ) start [2025-02-06 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415316', 'tblTempUsageDetail_20' ) end [2025-02-06 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:22:27] Production.INFO: ==14926== Releasing lock... [2025-02-06 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:22:27] Production.INFO: 66 MB #Memory Used# [2025-02-06 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:23:05 [end_date_ymd] => 2025-02-06 13:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:23:05' and `end` < '2025-02-06 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-06 13:23:19] Production.INFO: count ==5016 [2025-02-06 13:23:21] Production.ERROR: pbx CDR StartTime 2025-02-06 10:23:05 - End Time 2025-02-06 13:23:05 [2025-02-06 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415321', 'tblTempUsageDetail_20' ) start [2025-02-06 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415321', 'tblTempUsageDetail_20' ) end [2025-02-06 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415321', 'tblTempVendorCDR_20' ) start [2025-02-06 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415321', 'tblTempVendorCDR_20' ) end [2025-02-06 13:23:21] Production.INFO: ProcessCDR(1,14415321,1,1,2) [2025-02-06 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415321', 'tblTempUsageDetail_20' ) start [2025-02-06 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415321', 'tblTempUsageDetail_20' ) end [2025-02-06 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:23:26] Production.INFO: ==15030== Releasing lock... [2025-02-06 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:23:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:24:06 [end_date_ymd] => 2025-02-06 13:24:06 [RateCDR] => 1 ) [2025-02-06 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-06 10:24:06' and `end` < '2025-02-06 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-06 13:24:20] Production.INFO: count ==5001 [2025-02-06 13:24:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:24:06 - End Time 2025-02-06 13:24:06 [2025-02-06 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415326', 'tblTempUsageDetail_20' ) start [2025-02-06 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415326', 'tblTempUsageDetail_20' ) end [2025-02-06 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415326', 'tblTempVendorCDR_20' ) start [2025-02-06 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415326', 'tblTempVendorCDR_20' ) end [2025-02-06 13:24:22] Production.INFO: ProcessCDR(1,14415326,1,1,2) [2025-02-06 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415326', 'tblTempUsageDetail_20' ) start [2025-02-06 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415326', 'tblTempUsageDetail_20' ) end [2025-02-06 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:24:27] Production.INFO: ==15133== Releasing lock... [2025-02-06 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:24:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:25:05 [end_date_ymd] => 2025-02-06 13:25:05 [RateCDR] => 1 ) [2025-02-06 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:25:05' and `end` < '2025-02-06 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:25:29] Production.INFO: count ==4986 [2025-02-06 13:25:31] Production.ERROR: pbx CDR StartTime 2025-02-06 10:25:05 - End Time 2025-02-06 13:25:05 [2025-02-06 13:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415331', 'tblTempUsageDetail_20' ) start [2025-02-06 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415331', 'tblTempUsageDetail_20' ) end [2025-02-06 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415331', 'tblTempVendorCDR_20' ) start [2025-02-06 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415331', 'tblTempVendorCDR_20' ) end [2025-02-06 13:25:31] Production.INFO: ProcessCDR(1,14415331,1,1,2) [2025-02-06 13:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415331', 'tblTempUsageDetail_20' ) start [2025-02-06 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415331', 'tblTempUsageDetail_20' ) end [2025-02-06 13:25:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:25:36] Production.INFO: ==15231== Releasing lock... [2025-02-06 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:25:36] Production.INFO: 65.25 MB #Memory Used# [2025-02-06 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:26:05 [end_date_ymd] => 2025-02-06 13:26:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:26:05' and `end` < '2025-02-06 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-06 13:26:24] Production.INFO: count ==4975 [2025-02-06 13:26:26] Production.ERROR: pbx CDR StartTime 2025-02-06 10:26:05 - End Time 2025-02-06 13:26:05 [2025-02-06 13:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415336', 'tblTempUsageDetail_20' ) start [2025-02-06 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415336', 'tblTempUsageDetail_20' ) end [2025-02-06 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415336', 'tblTempVendorCDR_20' ) start [2025-02-06 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415336', 'tblTempVendorCDR_20' ) end [2025-02-06 13:26:26] Production.INFO: ProcessCDR(1,14415336,1,1,2) [2025-02-06 13:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415336', 'tblTempUsageDetail_20' ) start [2025-02-06 13:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415336', 'tblTempUsageDetail_20' ) end [2025-02-06 13:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:26:31] Production.INFO: ==15332== Releasing lock... [2025-02-06 13:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:26:31] Production.INFO: 65.25 MB #Memory Used# [2025-02-06 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:27:05 [end_date_ymd] => 2025-02-06 13:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:27:05' and `end` < '2025-02-06 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-06 13:27:23] Production.INFO: count ==4956 [2025-02-06 13:27:25] Production.ERROR: pbx CDR StartTime 2025-02-06 10:27:05 - End Time 2025-02-06 13:27:05 [2025-02-06 13:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415341', 'tblTempUsageDetail_20' ) start [2025-02-06 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415341', 'tblTempUsageDetail_20' ) end [2025-02-06 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415341', 'tblTempVendorCDR_20' ) start [2025-02-06 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415341', 'tblTempVendorCDR_20' ) end [2025-02-06 13:27:25] Production.INFO: ProcessCDR(1,14415341,1,1,2) [2025-02-06 13:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415341', 'tblTempUsageDetail_20' ) start [2025-02-06 13:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415341', 'tblTempUsageDetail_20' ) end [2025-02-06 13:27:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:27:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:27:30] Production.INFO: ==15430== Releasing lock... [2025-02-06 13:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:27:30] Production.INFO: 65 MB #Memory Used# [2025-02-06 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:28:05 [end_date_ymd] => 2025-02-06 13:28:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:28:05' and `end` < '2025-02-06 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-06 13:28:22] Production.INFO: count ==4942 [2025-02-06 13:28:24] Production.ERROR: pbx CDR StartTime 2025-02-06 10:28:05 - End Time 2025-02-06 13:28:05 [2025-02-06 13:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415346', 'tblTempUsageDetail_20' ) start [2025-02-06 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415346', 'tblTempUsageDetail_20' ) end [2025-02-06 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415346', 'tblTempVendorCDR_20' ) start [2025-02-06 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415346', 'tblTempVendorCDR_20' ) end [2025-02-06 13:28:24] Production.INFO: ProcessCDR(1,14415346,1,1,2) [2025-02-06 13:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415346', 'tblTempUsageDetail_20' ) start [2025-02-06 13:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415346', 'tblTempUsageDetail_20' ) end [2025-02-06 13:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:28:29] Production.INFO: ==15530== Releasing lock... [2025-02-06 13:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:28:29] Production.INFO: 65 MB #Memory Used# [2025-02-06 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:29:06 [end_date_ymd] => 2025-02-06 13:29:06 [RateCDR] => 1 ) [2025-02-06 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-06 10:29:06' and `end` < '2025-02-06 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-06 13:29:24] Production.INFO: count ==4936 [2025-02-06 13:29:27] Production.ERROR: pbx CDR StartTime 2025-02-06 10:29:06 - End Time 2025-02-06 13:29:06 [2025-02-06 13:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415351', 'tblTempUsageDetail_20' ) start [2025-02-06 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415351', 'tblTempUsageDetail_20' ) end [2025-02-06 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415351', 'tblTempVendorCDR_20' ) start [2025-02-06 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415351', 'tblTempVendorCDR_20' ) end [2025-02-06 13:29:27] Production.INFO: ProcessCDR(1,14415351,1,1,2) [2025-02-06 13:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415351', 'tblTempUsageDetail_20' ) start [2025-02-06 13:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415351', 'tblTempUsageDetail_20' ) end [2025-02-06 13:29:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:29:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:29:31] Production.INFO: ==15628== Releasing lock... [2025-02-06 13:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:29:31] Production.INFO: 65 MB #Memory Used# [2025-02-06 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:30:05 [end_date_ymd] => 2025-02-06 13:30:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:30:05' and `end` < '2025-02-06 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-06 13:30:24] Production.INFO: count ==4937 [2025-02-06 13:30:26] Production.ERROR: pbx CDR StartTime 2025-02-06 10:30:05 - End Time 2025-02-06 13:30:05 [2025-02-06 13:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415356', 'tblTempUsageDetail_20' ) start [2025-02-06 13:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415356', 'tblTempUsageDetail_20' ) end [2025-02-06 13:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415356', 'tblTempVendorCDR_20' ) start [2025-02-06 13:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415356', 'tblTempVendorCDR_20' ) end [2025-02-06 13:30:26] Production.INFO: ProcessCDR(1,14415356,1,1,2) [2025-02-06 13:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415356', 'tblTempUsageDetail_20' ) start [2025-02-06 13:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415356', 'tblTempUsageDetail_20' ) end [2025-02-06 13:30:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:30:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:30:31] Production.INFO: ==15734== Releasing lock... [2025-02-06 13:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:30:31] Production.INFO: 65 MB #Memory Used# [2025-02-06 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:31:06 [end_date_ymd] => 2025-02-06 13:31:06 [RateCDR] => 1 ) [2025-02-06 13: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-06 10:31:06' and `end` < '2025-02-06 13: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-06 13:31:21] Production.INFO: count ==4917 [2025-02-06 13:31:23] Production.ERROR: pbx CDR StartTime 2025-02-06 10:31:06 - End Time 2025-02-06 13:31:06 [2025-02-06 13:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415362', 'tblTempUsageDetail_20' ) start [2025-02-06 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415362', 'tblTempUsageDetail_20' ) end [2025-02-06 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415362', 'tblTempVendorCDR_20' ) start [2025-02-06 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415362', 'tblTempVendorCDR_20' ) end [2025-02-06 13:31:23] Production.INFO: ProcessCDR(1,14415362,1,1,2) [2025-02-06 13:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415362', 'tblTempUsageDetail_20' ) start [2025-02-06 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415362', 'tblTempUsageDetail_20' ) end [2025-02-06 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:31:28] Production.INFO: ==15834== Releasing lock... [2025-02-06 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:31:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:32:05 [end_date_ymd] => 2025-02-06 13:32:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:32:05' and `end` < '2025-02-06 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-06 13:32:21] Production.INFO: count ==4892 [2025-02-06 13:32:23] Production.ERROR: pbx CDR StartTime 2025-02-06 10:32:05 - End Time 2025-02-06 13:32:05 [2025-02-06 13:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415367', 'tblTempUsageDetail_20' ) start [2025-02-06 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415367', 'tblTempUsageDetail_20' ) end [2025-02-06 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415367', 'tblTempVendorCDR_20' ) start [2025-02-06 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415367', 'tblTempVendorCDR_20' ) end [2025-02-06 13:32:23] Production.INFO: ProcessCDR(1,14415367,1,1,2) [2025-02-06 13:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415367', 'tblTempUsageDetail_20' ) start [2025-02-06 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415367', 'tblTempUsageDetail_20' ) end [2025-02-06 13:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:32:28] Production.INFO: ==15933== Releasing lock... [2025-02-06 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:32:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:33:06 [end_date_ymd] => 2025-02-06 13:33:06 [RateCDR] => 1 ) [2025-02-06 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-06 10:33:06' and `end` < '2025-02-06 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-06 13:33:20] Production.INFO: count ==4867 [2025-02-06 13:33:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:33:06 - End Time 2025-02-06 13:33:06 [2025-02-06 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415372', 'tblTempUsageDetail_20' ) start [2025-02-06 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415372', 'tblTempUsageDetail_20' ) end [2025-02-06 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415372', 'tblTempVendorCDR_20' ) start [2025-02-06 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415372', 'tblTempVendorCDR_20' ) end [2025-02-06 13:33:22] Production.INFO: ProcessCDR(1,14415372,1,1,2) [2025-02-06 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415372', 'tblTempUsageDetail_20' ) start [2025-02-06 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415372', 'tblTempUsageDetail_20' ) end [2025-02-06 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:33:27] Production.INFO: ==16032== Releasing lock... [2025-02-06 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:33:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:34:05 [end_date_ymd] => 2025-02-06 13:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:34:05' and `end` < '2025-02-06 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-06 13:34:20] Production.INFO: count ==4874 [2025-02-06 13:34:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:34:05 - End Time 2025-02-06 13:34:05 [2025-02-06 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415377', 'tblTempUsageDetail_20' ) start [2025-02-06 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415377', 'tblTempUsageDetail_20' ) end [2025-02-06 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415377', 'tblTempVendorCDR_20' ) start [2025-02-06 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415377', 'tblTempVendorCDR_20' ) end [2025-02-06 13:34:22] Production.INFO: ProcessCDR(1,14415377,1,1,2) [2025-02-06 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415377', 'tblTempUsageDetail_20' ) start [2025-02-06 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415377', 'tblTempUsageDetail_20' ) end [2025-02-06 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:34:27] Production.INFO: ==16129== Releasing lock... [2025-02-06 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:34:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:35:05 [end_date_ymd] => 2025-02-06 13:35:05 [RateCDR] => 1 ) [2025-02-06 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:35:05' and `end` < '2025-02-06 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:35:19] Production.INFO: count ==4871 [2025-02-06 13:35:21] Production.ERROR: pbx CDR StartTime 2025-02-06 10:35:05 - End Time 2025-02-06 13:35:05 [2025-02-06 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415382', 'tblTempUsageDetail_20' ) start [2025-02-06 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415382', 'tblTempUsageDetail_20' ) end [2025-02-06 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415382', 'tblTempVendorCDR_20' ) start [2025-02-06 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415382', 'tblTempVendorCDR_20' ) end [2025-02-06 13:35:22] Production.INFO: ProcessCDR(1,14415382,1,1,2) [2025-02-06 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415382', 'tblTempUsageDetail_20' ) start [2025-02-06 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415382', 'tblTempUsageDetail_20' ) end [2025-02-06 13:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:35:26] Production.INFO: ==16233== Releasing lock... [2025-02-06 13:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:35:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:36:05 [end_date_ymd] => 2025-02-06 13:36:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:36:05' and `end` < '2025-02-06 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-06 13:36:20] Production.INFO: count ==4865 [2025-02-06 13:36:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:36:05 - End Time 2025-02-06 13:36:05 [2025-02-06 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415387', 'tblTempUsageDetail_20' ) start [2025-02-06 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415387', 'tblTempUsageDetail_20' ) end [2025-02-06 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415387', 'tblTempVendorCDR_20' ) start [2025-02-06 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415387', 'tblTempVendorCDR_20' ) end [2025-02-06 13:36:22] Production.INFO: ProcessCDR(1,14415387,1,1,2) [2025-02-06 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415387', 'tblTempUsageDetail_20' ) start [2025-02-06 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415387', 'tblTempUsageDetail_20' ) end [2025-02-06 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:36:27] Production.INFO: ==16336== Releasing lock... [2025-02-06 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:36:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:37:05 [end_date_ymd] => 2025-02-06 13:37:05 [RateCDR] => 1 ) [2025-02-06 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:37:05' and `end` < '2025-02-06 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:37:20] Production.INFO: count ==4849 [2025-02-06 13:37:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:37:05 - End Time 2025-02-06 13:37:05 [2025-02-06 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415392', 'tblTempUsageDetail_20' ) start [2025-02-06 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415392', 'tblTempUsageDetail_20' ) end [2025-02-06 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415392', 'tblTempVendorCDR_20' ) start [2025-02-06 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415392', 'tblTempVendorCDR_20' ) end [2025-02-06 13:37:23] Production.INFO: ProcessCDR(1,14415392,1,1,2) [2025-02-06 13:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415392', 'tblTempUsageDetail_20' ) start [2025-02-06 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415392', 'tblTempUsageDetail_20' ) end [2025-02-06 13:37:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:37:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:37:28] Production.INFO: ==16478== Releasing lock... [2025-02-06 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:37:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:38:05 [end_date_ymd] => 2025-02-06 13:38:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:38:05' and `end` < '2025-02-06 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-06 13:38:21] Production.INFO: count ==4838 [2025-02-06 13:38:23] Production.ERROR: pbx CDR StartTime 2025-02-06 10:38:05 - End Time 2025-02-06 13:38:05 [2025-02-06 13:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415397', 'tblTempUsageDetail_20' ) start [2025-02-06 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415397', 'tblTempUsageDetail_20' ) end [2025-02-06 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415397', 'tblTempVendorCDR_20' ) start [2025-02-06 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415397', 'tblTempVendorCDR_20' ) end [2025-02-06 13:38:23] Production.INFO: ProcessCDR(1,14415397,1,1,2) [2025-02-06 13:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415397', 'tblTempUsageDetail_20' ) start [2025-02-06 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415397', 'tblTempUsageDetail_20' ) end [2025-02-06 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:38:27] Production.INFO: ==16580== Releasing lock... [2025-02-06 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:38:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:39:06 [end_date_ymd] => 2025-02-06 13:39:06 [RateCDR] => 1 ) [2025-02-06 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:39:06' and `end` < '2025-02-06 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:39:20] Production.INFO: count ==4836 [2025-02-06 13:39:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:39:06 - End Time 2025-02-06 13:39:06 [2025-02-06 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415402', 'tblTempUsageDetail_20' ) start [2025-02-06 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415402', 'tblTempUsageDetail_20' ) end [2025-02-06 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415402', 'tblTempVendorCDR_20' ) start [2025-02-06 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415402', 'tblTempVendorCDR_20' ) end [2025-02-06 13:39:22] Production.INFO: ProcessCDR(1,14415402,1,1,2) [2025-02-06 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415402', 'tblTempUsageDetail_20' ) start [2025-02-06 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415402', 'tblTempUsageDetail_20' ) end [2025-02-06 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:39:27] Production.INFO: ==16681== Releasing lock... [2025-02-06 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:39:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:40:06 [end_date_ymd] => 2025-02-06 13:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 10:40:06' and `end` < '2025-02-06 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-06 13:40:22] Production.INFO: count ==4835 [2025-02-06 13:40:24] Production.ERROR: pbx CDR StartTime 2025-02-06 10:40:06 - End Time 2025-02-06 13:40:06 [2025-02-06 13:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415407', 'tblTempUsageDetail_20' ) start [2025-02-06 13:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415407', 'tblTempUsageDetail_20' ) end [2025-02-06 13:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415407', 'tblTempVendorCDR_20' ) start [2025-02-06 13:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415407', 'tblTempVendorCDR_20' ) end [2025-02-06 13:40:25] Production.INFO: ProcessCDR(1,14415407,1,1,2) [2025-02-06 13:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415407', 'tblTempUsageDetail_20' ) start [2025-02-06 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415407', 'tblTempUsageDetail_20' ) end [2025-02-06 13:40:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:40:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:40:29] Production.INFO: ==16781== Releasing lock... [2025-02-06 13:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:40:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:41:05 [end_date_ymd] => 2025-02-06 13:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:41:05' and `end` < '2025-02-06 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-06 13:41:19] Production.INFO: count ==4783 [2025-02-06 13:41:21] Production.ERROR: pbx CDR StartTime 2025-02-06 10:41:05 - End Time 2025-02-06 13:41:05 [2025-02-06 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415413', 'tblTempUsageDetail_20' ) start [2025-02-06 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415413', 'tblTempUsageDetail_20' ) end [2025-02-06 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415413', 'tblTempVendorCDR_20' ) start [2025-02-06 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415413', 'tblTempVendorCDR_20' ) end [2025-02-06 13:41:21] Production.INFO: ProcessCDR(1,14415413,1,1,2) [2025-02-06 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415413', 'tblTempUsageDetail_20' ) start [2025-02-06 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415413', 'tblTempUsageDetail_20' ) end [2025-02-06 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:41:26] Production.INFO: ==16883== Releasing lock... [2025-02-06 13:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:41:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:42:06 [end_date_ymd] => 2025-02-06 13:42:06 [RateCDR] => 1 ) [2025-02-06 13: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-06 10:42:06' and `end` < '2025-02-06 13: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-06 13:42:20] Production.INFO: count ==4743 [2025-02-06 13:42:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:42:06 - End Time 2025-02-06 13:42:06 [2025-02-06 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415418', 'tblTempUsageDetail_20' ) start [2025-02-06 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415418', 'tblTempUsageDetail_20' ) end [2025-02-06 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415418', 'tblTempVendorCDR_20' ) start [2025-02-06 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415418', 'tblTempVendorCDR_20' ) end [2025-02-06 13:42:22] Production.INFO: ProcessCDR(1,14415418,1,1,2) [2025-02-06 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415418', 'tblTempUsageDetail_20' ) start [2025-02-06 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415418', 'tblTempUsageDetail_20' ) end [2025-02-06 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:42:27] Production.INFO: ==16985== Releasing lock... [2025-02-06 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:42:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:43:05 [end_date_ymd] => 2025-02-06 13:43:05 [RateCDR] => 1 ) [2025-02-06 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:43:05' and `end` < '2025-02-06 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:43:19] Production.INFO: count ==4734 [2025-02-06 13:43:21] Production.ERROR: pbx CDR StartTime 2025-02-06 10:43:05 - End Time 2025-02-06 13:43:05 [2025-02-06 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415423', 'tblTempUsageDetail_20' ) start [2025-02-06 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415423', 'tblTempUsageDetail_20' ) end [2025-02-06 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415423', 'tblTempVendorCDR_20' ) start [2025-02-06 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415423', 'tblTempVendorCDR_20' ) end [2025-02-06 13:43:21] Production.INFO: ProcessCDR(1,14415423,1,1,2) [2025-02-06 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415423', 'tblTempUsageDetail_20' ) start [2025-02-06 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415423', 'tblTempUsageDetail_20' ) end [2025-02-06 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:43:26] Production.INFO: ==17084== Releasing lock... [2025-02-06 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:43:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:44:06 [end_date_ymd] => 2025-02-06 13:44:06 [RateCDR] => 1 ) [2025-02-06 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:44:06' and `end` < '2025-02-06 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:44:20] Production.INFO: count ==4735 [2025-02-06 13:44:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:44:06 - End Time 2025-02-06 13:44:06 [2025-02-06 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415428', 'tblTempUsageDetail_20' ) start [2025-02-06 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415428', 'tblTempUsageDetail_20' ) end [2025-02-06 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415428', 'tblTempVendorCDR_20' ) start [2025-02-06 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415428', 'tblTempVendorCDR_20' ) end [2025-02-06 13:44:22] Production.INFO: ProcessCDR(1,14415428,1,1,2) [2025-02-06 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415428', 'tblTempUsageDetail_20' ) start [2025-02-06 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415428', 'tblTempUsageDetail_20' ) end [2025-02-06 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:44:27] Production.INFO: ==17184== Releasing lock... [2025-02-06 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:44:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:45:05 [end_date_ymd] => 2025-02-06 13:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:45:05' and `end` < '2025-02-06 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-06 13:45:19] Production.INFO: count ==4718 [2025-02-06 13:45:21] Production.ERROR: pbx CDR StartTime 2025-02-06 10:45:05 - End Time 2025-02-06 13:45:05 [2025-02-06 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415433', 'tblTempUsageDetail_20' ) start [2025-02-06 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415433', 'tblTempUsageDetail_20' ) end [2025-02-06 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415433', 'tblTempVendorCDR_20' ) start [2025-02-06 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415433', 'tblTempVendorCDR_20' ) end [2025-02-06 13:45:21] Production.INFO: ProcessCDR(1,14415433,1,1,2) [2025-02-06 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415433', 'tblTempUsageDetail_20' ) start [2025-02-06 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415433', 'tblTempUsageDetail_20' ) end [2025-02-06 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:45:26] Production.INFO: ==17286== Releasing lock... [2025-02-06 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:45:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:46:05 [end_date_ymd] => 2025-02-06 13:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:46:05' and `end` < '2025-02-06 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-06 13:46:24] Production.INFO: count ==4730 [2025-02-06 13:46:26] Production.ERROR: pbx CDR StartTime 2025-02-06 10:46:05 - End Time 2025-02-06 13:46:05 [2025-02-06 13:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415438', 'tblTempUsageDetail_20' ) start [2025-02-06 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415438', 'tblTempUsageDetail_20' ) end [2025-02-06 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415438', 'tblTempVendorCDR_20' ) start [2025-02-06 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415438', 'tblTempVendorCDR_20' ) end [2025-02-06 13:46:26] Production.INFO: ProcessCDR(1,14415438,1,1,2) [2025-02-06 13:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415438', 'tblTempUsageDetail_20' ) start [2025-02-06 13:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415438', 'tblTempUsageDetail_20' ) end [2025-02-06 13:46:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:46:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:46:31] Production.INFO: ==17387== Releasing lock... [2025-02-06 13:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:46:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:47:05 [end_date_ymd] => 2025-02-06 13:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:47:05' and `end` < '2025-02-06 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-06 13:47:22] Production.INFO: count ==4708 [2025-02-06 13:47:25] Production.ERROR: pbx CDR StartTime 2025-02-06 10:47:05 - End Time 2025-02-06 13:47:05 [2025-02-06 13:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415443', 'tblTempUsageDetail_20' ) start [2025-02-06 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415443', 'tblTempUsageDetail_20' ) end [2025-02-06 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415443', 'tblTempVendorCDR_20' ) start [2025-02-06 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415443', 'tblTempVendorCDR_20' ) end [2025-02-06 13:47:25] Production.INFO: ProcessCDR(1,14415443,1,1,2) [2025-02-06 13:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415443', 'tblTempUsageDetail_20' ) start [2025-02-06 13:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415443', 'tblTempUsageDetail_20' ) end [2025-02-06 13:47:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:47:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:47:30] Production.INFO: ==17483== Releasing lock... [2025-02-06 13:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:47:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:48:06 [end_date_ymd] => 2025-02-06 13:48:06 [RateCDR] => 1 ) [2025-02-06 13: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-06 10:48:06' and `end` < '2025-02-06 13: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-06 13:48:20] Production.INFO: count ==4685 [2025-02-06 13:48:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:48:06 - End Time 2025-02-06 13:48:06 [2025-02-06 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415448', 'tblTempUsageDetail_20' ) start [2025-02-06 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415448', 'tblTempUsageDetail_20' ) end [2025-02-06 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415448', 'tblTempVendorCDR_20' ) start [2025-02-06 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415448', 'tblTempVendorCDR_20' ) end [2025-02-06 13:48:22] Production.INFO: ProcessCDR(1,14415448,1,1,2) [2025-02-06 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415448', 'tblTempUsageDetail_20' ) start [2025-02-06 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415448', 'tblTempUsageDetail_20' ) end [2025-02-06 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:48:27] Production.INFO: ==17583== Releasing lock... [2025-02-06 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:48:27] Production.INFO: 63 MB #Memory Used# [2025-02-06 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:49:04 [end_date_ymd] => 2025-02-06 13:49:04 [RateCDR] => 1 ) [2025-02-06 13:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:49:04' and `end` < '2025-02-06 13:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:49:20] Production.INFO: count ==4707 [2025-02-06 13:49:22] Production.ERROR: pbx CDR StartTime 2025-02-06 10:49:04 - End Time 2025-02-06 13:49:04 [2025-02-06 13:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415453', 'tblTempUsageDetail_20' ) start [2025-02-06 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415453', 'tblTempUsageDetail_20' ) end [2025-02-06 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415453', 'tblTempVendorCDR_20' ) start [2025-02-06 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415453', 'tblTempVendorCDR_20' ) end [2025-02-06 13:49:22] Production.INFO: ProcessCDR(1,14415453,1,1,2) [2025-02-06 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415453', 'tblTempUsageDetail_20' ) start [2025-02-06 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415453', 'tblTempUsageDetail_20' ) end [2025-02-06 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:49:27] Production.INFO: ==17683== Releasing lock... [2025-02-06 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:49:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:50:06 [end_date_ymd] => 2025-02-06 13:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 10:50:06' and `end` < '2025-02-06 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-06 13:50:23] Production.INFO: count ==4727 [2025-02-06 13:50:24] Production.ERROR: pbx CDR StartTime 2025-02-06 10:50:06 - End Time 2025-02-06 13:50:06 [2025-02-06 13:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415459', 'tblTempUsageDetail_20' ) start [2025-02-06 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415459', 'tblTempUsageDetail_20' ) end [2025-02-06 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415459', 'tblTempVendorCDR_20' ) start [2025-02-06 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415459', 'tblTempVendorCDR_20' ) end [2025-02-06 13:50:25] Production.INFO: ProcessCDR(1,14415459,1,1,2) [2025-02-06 13:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415459', 'tblTempUsageDetail_20' ) start [2025-02-06 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415459', 'tblTempUsageDetail_20' ) end [2025-02-06 13:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:50:30] Production.INFO: ==17795== Releasing lock... [2025-02-06 13:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:50:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:51:04 [end_date_ymd] => 2025-02-06 13:51:04 [RateCDR] => 1 ) [2025-02-06 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-06 10:51:04' and `end` < '2025-02-06 13: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-06 13:51:18] Production.INFO: count ==4737 [2025-02-06 13:51:20] Production.ERROR: pbx CDR StartTime 2025-02-06 10:51:04 - End Time 2025-02-06 13:51:04 [2025-02-06 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415464', 'tblTempUsageDetail_20' ) start [2025-02-06 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415464', 'tblTempUsageDetail_20' ) end [2025-02-06 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415464', 'tblTempVendorCDR_20' ) start [2025-02-06 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415464', 'tblTempVendorCDR_20' ) end [2025-02-06 13:51:21] Production.INFO: ProcessCDR(1,14415464,1,1,2) [2025-02-06 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415464', 'tblTempUsageDetail_20' ) start [2025-02-06 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415464', 'tblTempUsageDetail_20' ) end [2025-02-06 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:51:26] Production.INFO: ==17900== Releasing lock... [2025-02-06 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:51:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:52:05 [end_date_ymd] => 2025-02-06 13:52:05 [RateCDR] => 1 ) [2025-02-06 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:52:05' and `end` < '2025-02-06 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:52:28] Production.INFO: count ==4725 [2025-02-06 13:52:30] Production.ERROR: pbx CDR StartTime 2025-02-06 10:52:05 - End Time 2025-02-06 13:52:05 [2025-02-06 13:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415469', 'tblTempUsageDetail_20' ) start [2025-02-06 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415469', 'tblTempUsageDetail_20' ) end [2025-02-06 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415469', 'tblTempVendorCDR_20' ) start [2025-02-06 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415469', 'tblTempVendorCDR_20' ) end [2025-02-06 13:52:30] Production.INFO: ProcessCDR(1,14415469,1,1,2) [2025-02-06 13:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:52:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415469', 'tblTempUsageDetail_20' ) start [2025-02-06 13:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415469', 'tblTempUsageDetail_20' ) end [2025-02-06 13:52:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:52:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:52:35] Production.INFO: ==18042== Releasing lock... [2025-02-06 13:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:52:35] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:53:06 [end_date_ymd] => 2025-02-06 13:53:06 [RateCDR] => 1 ) [2025-02-06 13:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:53:06' and `end` < '2025-02-06 13:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:53:26] Production.INFO: count ==4746 [2025-02-06 13:53:28] Production.ERROR: pbx CDR StartTime 2025-02-06 10:53:06 - End Time 2025-02-06 13:53:06 [2025-02-06 13:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415474', 'tblTempUsageDetail_20' ) start [2025-02-06 13:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415474', 'tblTempUsageDetail_20' ) end [2025-02-06 13:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415474', 'tblTempVendorCDR_20' ) start [2025-02-06 13:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415474', 'tblTempVendorCDR_20' ) end [2025-02-06 13:53:28] Production.INFO: ProcessCDR(1,14415474,1,1,2) [2025-02-06 13:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415474', 'tblTempUsageDetail_20' ) start [2025-02-06 13:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415474', 'tblTempUsageDetail_20' ) end [2025-02-06 13:53:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:53:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:53:34] Production.INFO: ==18152== Releasing lock... [2025-02-06 13:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:53:34] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:54:05 [end_date_ymd] => 2025-02-06 13:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 10:54:05' and `end` < '2025-02-06 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-06 13:54:23] Production.INFO: count ==4761 [2025-02-06 13:54:25] Production.ERROR: pbx CDR StartTime 2025-02-06 10:54:05 - End Time 2025-02-06 13:54:05 [2025-02-06 13:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415479', 'tblTempUsageDetail_20' ) start [2025-02-06 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415479', 'tblTempUsageDetail_20' ) end [2025-02-06 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415479', 'tblTempVendorCDR_20' ) start [2025-02-06 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415479', 'tblTempVendorCDR_20' ) end [2025-02-06 13:54:25] Production.INFO: ProcessCDR(1,14415479,1,1,2) [2025-02-06 13:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415479', 'tblTempUsageDetail_20' ) start [2025-02-06 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415479', 'tblTempUsageDetail_20' ) end [2025-02-06 13:54:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:54:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:54:30] Production.INFO: ==18261== Releasing lock... [2025-02-06 13:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:54:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:55:06 [end_date_ymd] => 2025-02-06 13:55:06 [RateCDR] => 1 ) [2025-02-06 13: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-06 10:55:06' and `end` < '2025-02-06 13: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-06 13:55:26] Production.INFO: count ==4781 [2025-02-06 13:55:28] Production.ERROR: pbx CDR StartTime 2025-02-06 10:55:06 - End Time 2025-02-06 13:55:06 [2025-02-06 13:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415484', 'tblTempUsageDetail_20' ) start [2025-02-06 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415484', 'tblTempUsageDetail_20' ) end [2025-02-06 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415484', 'tblTempVendorCDR_20' ) start [2025-02-06 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415484', 'tblTempVendorCDR_20' ) end [2025-02-06 13:55:29] Production.INFO: ProcessCDR(1,14415484,1,1,2) [2025-02-06 13:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415484', 'tblTempUsageDetail_20' ) start [2025-02-06 13:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415484', 'tblTempUsageDetail_20' ) end [2025-02-06 13:55:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:55:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:55:34] Production.INFO: ==18375== Releasing lock... [2025-02-06 13:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:55:34] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:56:05 [end_date_ymd] => 2025-02-06 13:56:05 [RateCDR] => 1 ) [2025-02-06 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:56:05' and `end` < '2025-02-06 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:56:24] Production.INFO: count ==4823 [2025-02-06 13:56:27] Production.ERROR: pbx CDR StartTime 2025-02-06 10:56:05 - End Time 2025-02-06 13:56:05 [2025-02-06 13:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415489', 'tblTempUsageDetail_20' ) start [2025-02-06 13:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415489', 'tblTempUsageDetail_20' ) end [2025-02-06 13:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415489', 'tblTempVendorCDR_20' ) start [2025-02-06 13:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415489', 'tblTempVendorCDR_20' ) end [2025-02-06 13:56:27] Production.INFO: ProcessCDR(1,14415489,1,1,2) [2025-02-06 13:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415489', 'tblTempUsageDetail_20' ) start [2025-02-06 13:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415489', 'tblTempUsageDetail_20' ) end [2025-02-06 13:56:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:56:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:56:32] Production.INFO: ==18478== Releasing lock... [2025-02-06 13:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:56:32] Production.INFO: 64 MB #Memory Used# [2025-02-06 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:57:06 [end_date_ymd] => 2025-02-06 13:57:06 [RateCDR] => 1 ) [2025-02-06 13: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-06 10:57:06' and `end` < '2025-02-06 13: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-06 13:57:27] Production.INFO: count ==4824 [2025-02-06 13:57:29] Production.ERROR: pbx CDR StartTime 2025-02-06 10:57:06 - End Time 2025-02-06 13:57:06 [2025-02-06 13:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415494', 'tblTempUsageDetail_20' ) start [2025-02-06 13:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415494', 'tblTempUsageDetail_20' ) end [2025-02-06 13:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415494', 'tblTempVendorCDR_20' ) start [2025-02-06 13:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415494', 'tblTempVendorCDR_20' ) end [2025-02-06 13:57:29] Production.INFO: ProcessCDR(1,14415494,1,1,2) [2025-02-06 13:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415494', 'tblTempUsageDetail_20' ) start [2025-02-06 13:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415494', 'tblTempUsageDetail_20' ) end [2025-02-06 13:57:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:57:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:57:35] Production.INFO: ==18579== Releasing lock... [2025-02-06 13:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:57:35] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:58:05 [end_date_ymd] => 2025-02-06 13:58:05 [RateCDR] => 1 ) [2025-02-06 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 10:58:05' and `end` < '2025-02-06 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 13:58:26] Production.INFO: count ==4827 [2025-02-06 13:58:28] Production.ERROR: pbx CDR StartTime 2025-02-06 10:58:05 - End Time 2025-02-06 13:58:05 [2025-02-06 13:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415499', 'tblTempUsageDetail_20' ) start [2025-02-06 13:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415499', 'tblTempUsageDetail_20' ) end [2025-02-06 13:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415499', 'tblTempVendorCDR_20' ) start [2025-02-06 13:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415499', 'tblTempVendorCDR_20' ) end [2025-02-06 13:58:28] Production.INFO: ProcessCDR(1,14415499,1,1,2) [2025-02-06 13:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415499', 'tblTempUsageDetail_20' ) start [2025-02-06 13:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415499', 'tblTempUsageDetail_20' ) end [2025-02-06 13:58:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:58:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:58:33] Production.INFO: ==18677== Releasing lock... [2025-02-06 13:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:58:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 10:59:06 [end_date_ymd] => 2025-02-06 13:59:06 [RateCDR] => 1 ) [2025-02-06 13: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-06 10:59:06' and `end` < '2025-02-06 13: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-06 13:59:25] Production.INFO: count ==4904 [2025-02-06 13:59:27] Production.ERROR: pbx CDR StartTime 2025-02-06 10:59:06 - End Time 2025-02-06 13:59:06 [2025-02-06 13:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 13:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415504', 'tblTempUsageDetail_20' ) start [2025-02-06 13:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415504', 'tblTempUsageDetail_20' ) end [2025-02-06 13:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415504', 'tblTempVendorCDR_20' ) start [2025-02-06 13:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415504', 'tblTempVendorCDR_20' ) end [2025-02-06 13:59:28] Production.INFO: ProcessCDR(1,14415504,1,1,2) [2025-02-06 13:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 13:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 13:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415504', 'tblTempUsageDetail_20' ) start [2025-02-06 13:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415504', 'tblTempUsageDetail_20' ) end [2025-02-06 13:59:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 13:59:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 13:59:32] Production.INFO: ==18779== Releasing lock... [2025-02-06 13:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 13:59:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:00:06 [end_date_ymd] => 2025-02-06 14:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:00:06' and `end` < '2025-02-06 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-06 14:00:23] Production.INFO: count ==4890 [2025-02-06 14:00:25] Production.ERROR: pbx CDR StartTime 2025-02-06 11:00:06 - End Time 2025-02-06 14:00:06 [2025-02-06 14:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415510', 'tblTempUsageDetail_20' ) start [2025-02-06 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415510', 'tblTempUsageDetail_20' ) end [2025-02-06 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415510', 'tblTempVendorCDR_20' ) start [2025-02-06 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415510', 'tblTempVendorCDR_20' ) end [2025-02-06 14:00:25] Production.INFO: ProcessCDR(1,14415510,1,1,2) [2025-02-06 14:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415510', 'tblTempUsageDetail_20' ) start [2025-02-06 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415510', 'tblTempUsageDetail_20' ) end [2025-02-06 14:00:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:00:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:00:30] Production.INFO: ==18881== Releasing lock... [2025-02-06 14:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:00:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:01:05 [end_date_ymd] => 2025-02-06 14:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:01:05' and `end` < '2025-02-06 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-06 14:01:21] Production.INFO: count ==4897 [2025-02-06 14:01:23] Production.ERROR: pbx CDR StartTime 2025-02-06 11:01:05 - End Time 2025-02-06 14:01:05 [2025-02-06 14:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415515', 'tblTempUsageDetail_20' ) start [2025-02-06 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415515', 'tblTempUsageDetail_20' ) end [2025-02-06 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415515', 'tblTempVendorCDR_20' ) start [2025-02-06 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415515', 'tblTempVendorCDR_20' ) end [2025-02-06 14:01:23] Production.INFO: ProcessCDR(1,14415515,1,1,2) [2025-02-06 14:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415515', 'tblTempUsageDetail_20' ) start [2025-02-06 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415515', 'tblTempUsageDetail_20' ) end [2025-02-06 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:01:27] Production.INFO: ==18998== Releasing lock... [2025-02-06 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:01:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:02:05 [end_date_ymd] => 2025-02-06 14:02:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:02:05' and `end` < '2025-02-06 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-06 14:02:20] Production.INFO: count ==4904 [2025-02-06 14:02:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:02:05 - End Time 2025-02-06 14:02:05 [2025-02-06 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415520', 'tblTempUsageDetail_20' ) start [2025-02-06 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415520', 'tblTempUsageDetail_20' ) end [2025-02-06 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415520', 'tblTempVendorCDR_20' ) start [2025-02-06 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415520', 'tblTempVendorCDR_20' ) end [2025-02-06 14:02:22] Production.INFO: ProcessCDR(1,14415520,1,1,2) [2025-02-06 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415520', 'tblTempUsageDetail_20' ) start [2025-02-06 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415520', 'tblTempUsageDetail_20' ) end [2025-02-06 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:02:27] Production.INFO: ==19102== Releasing lock... [2025-02-06 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:02:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:03:05 [end_date_ymd] => 2025-02-06 14:03:05 [RateCDR] => 1 ) [2025-02-06 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:03:05' and `end` < '2025-02-06 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:03:23] Production.INFO: count ==4901 [2025-02-06 14:03:25] Production.ERROR: pbx CDR StartTime 2025-02-06 11:03:05 - End Time 2025-02-06 14:03:05 [2025-02-06 14:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415525', 'tblTempUsageDetail_20' ) start [2025-02-06 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415525', 'tblTempUsageDetail_20' ) end [2025-02-06 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415525', 'tblTempVendorCDR_20' ) start [2025-02-06 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415525', 'tblTempVendorCDR_20' ) end [2025-02-06 14:03:25] Production.INFO: ProcessCDR(1,14415525,1,1,2) [2025-02-06 14:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415525', 'tblTempUsageDetail_20' ) start [2025-02-06 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415525', 'tblTempUsageDetail_20' ) end [2025-02-06 14:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:03:30] Production.INFO: ==19203== Releasing lock... [2025-02-06 14:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:03:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:04:05 [end_date_ymd] => 2025-02-06 14:04:05 [RateCDR] => 1 ) [2025-02-06 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:04:05' and `end` < '2025-02-06 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:04:23] Production.INFO: count ==4938 [2025-02-06 14:04:25] Production.ERROR: pbx CDR StartTime 2025-02-06 11:04:05 - End Time 2025-02-06 14:04:05 [2025-02-06 14:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415530', 'tblTempUsageDetail_20' ) start [2025-02-06 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415530', 'tblTempUsageDetail_20' ) end [2025-02-06 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415530', 'tblTempVendorCDR_20' ) start [2025-02-06 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415530', 'tblTempVendorCDR_20' ) end [2025-02-06 14:04:25] Production.INFO: ProcessCDR(1,14415530,1,1,2) [2025-02-06 14:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415530', 'tblTempUsageDetail_20' ) start [2025-02-06 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415530', 'tblTempUsageDetail_20' ) end [2025-02-06 14:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:04:30] Production.INFO: ==19308== Releasing lock... [2025-02-06 14:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:04:30] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:05:06 [end_date_ymd] => 2025-02-06 14:05:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:05:06' and `end` < '2025-02-06 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-06 14:05:26] Production.INFO: count ==4909 [2025-02-06 14:05:28] Production.ERROR: pbx CDR StartTime 2025-02-06 11:05:06 - End Time 2025-02-06 14:05:06 [2025-02-06 14:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415535', 'tblTempUsageDetail_20' ) start [2025-02-06 14:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415535', 'tblTempUsageDetail_20' ) end [2025-02-06 14:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415535', 'tblTempVendorCDR_20' ) start [2025-02-06 14:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415535', 'tblTempVendorCDR_20' ) end [2025-02-06 14:05:28] Production.INFO: ProcessCDR(1,14415535,1,1,2) [2025-02-06 14:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415535', 'tblTempUsageDetail_20' ) start [2025-02-06 14:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415535', 'tblTempUsageDetail_20' ) end [2025-02-06 14:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:05:33] Production.INFO: ==19407== Releasing lock... [2025-02-06 14:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:05:33] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:06:05 [end_date_ymd] => 2025-02-06 14:06:05 [RateCDR] => 1 ) [2025-02-06 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:06:05' and `end` < '2025-02-06 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:06:26] Production.INFO: count ==4893 [2025-02-06 14:06:28] Production.ERROR: pbx CDR StartTime 2025-02-06 11:06:05 - End Time 2025-02-06 14:06:05 [2025-02-06 14:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415540', 'tblTempUsageDetail_20' ) start [2025-02-06 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415540', 'tblTempUsageDetail_20' ) end [2025-02-06 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415540', 'tblTempVendorCDR_20' ) start [2025-02-06 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415540', 'tblTempVendorCDR_20' ) end [2025-02-06 14:06:28] Production.INFO: ProcessCDR(1,14415540,1,1,2) [2025-02-06 14:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415540', 'tblTempUsageDetail_20' ) start [2025-02-06 14:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415540', 'tblTempUsageDetail_20' ) end [2025-02-06 14:06:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:06:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:06:33] Production.INFO: ==19510== Releasing lock... [2025-02-06 14:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:06:33] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:07:05 [end_date_ymd] => 2025-02-06 14:07:05 [RateCDR] => 1 ) [2025-02-06 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:07:05' and `end` < '2025-02-06 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:07:19] Production.INFO: count ==4896 [2025-02-06 14:07:21] Production.ERROR: pbx CDR StartTime 2025-02-06 11:07:05 - End Time 2025-02-06 14:07:05 [2025-02-06 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415545', 'tblTempUsageDetail_20' ) start [2025-02-06 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415545', 'tblTempUsageDetail_20' ) end [2025-02-06 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415545', 'tblTempVendorCDR_20' ) start [2025-02-06 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415545', 'tblTempVendorCDR_20' ) end [2025-02-06 14:07:21] Production.INFO: ProcessCDR(1,14415545,1,1,2) [2025-02-06 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415545', 'tblTempUsageDetail_20' ) start [2025-02-06 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415545', 'tblTempUsageDetail_20' ) end [2025-02-06 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:07:26] Production.INFO: ==19610== Releasing lock... [2025-02-06 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:07:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:08:06 [end_date_ymd] => 2025-02-06 14:08:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:08:06' and `end` < '2025-02-06 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-06 14:08:22] Production.INFO: count ==4902 [2025-02-06 14:08:24] Production.ERROR: pbx CDR StartTime 2025-02-06 11:08:06 - End Time 2025-02-06 14:08:06 [2025-02-06 14:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415550', 'tblTempUsageDetail_20' ) start [2025-02-06 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415550', 'tblTempUsageDetail_20' ) end [2025-02-06 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415550', 'tblTempVendorCDR_20' ) start [2025-02-06 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415550', 'tblTempVendorCDR_20' ) end [2025-02-06 14:08:24] Production.INFO: ProcessCDR(1,14415550,1,1,2) [2025-02-06 14:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415550', 'tblTempUsageDetail_20' ) start [2025-02-06 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415550', 'tblTempUsageDetail_20' ) end [2025-02-06 14:08:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:08:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:08:29] Production.INFO: ==19753== Releasing lock... [2025-02-06 14:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:08:29] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:09:05 [end_date_ymd] => 2025-02-06 14:09:05 [RateCDR] => 1 ) [2025-02-06 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:09:05' and `end` < '2025-02-06 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:09:20] Production.INFO: count ==4896 [2025-02-06 14:09:23] Production.ERROR: pbx CDR StartTime 2025-02-06 11:09:05 - End Time 2025-02-06 14:09:05 [2025-02-06 14:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415555', 'tblTempUsageDetail_20' ) start [2025-02-06 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415555', 'tblTempUsageDetail_20' ) end [2025-02-06 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415555', 'tblTempVendorCDR_20' ) start [2025-02-06 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415555', 'tblTempVendorCDR_20' ) end [2025-02-06 14:09:23] Production.INFO: ProcessCDR(1,14415555,1,1,2) [2025-02-06 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415555', 'tblTempUsageDetail_20' ) start [2025-02-06 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415555', 'tblTempUsageDetail_20' ) end [2025-02-06 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:09:28] Production.INFO: ==19852== Releasing lock... [2025-02-06 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:09:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:10:06 [end_date_ymd] => 2025-02-06 14:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:10:06' and `end` < '2025-02-06 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-06 14:10:27] Production.INFO: count ==4912 [2025-02-06 14:10:29] Production.ERROR: pbx CDR StartTime 2025-02-06 11:10:06 - End Time 2025-02-06 14:10:06 [2025-02-06 14:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415561', 'tblTempUsageDetail_20' ) start [2025-02-06 14:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415561', 'tblTempUsageDetail_20' ) end [2025-02-06 14:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415561', 'tblTempVendorCDR_20' ) start [2025-02-06 14:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415561', 'tblTempVendorCDR_20' ) end [2025-02-06 14:10:30] Production.INFO: ProcessCDR(1,14415561,1,1,2) [2025-02-06 14:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415561', 'tblTempUsageDetail_20' ) start [2025-02-06 14:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415561', 'tblTempUsageDetail_20' ) end [2025-02-06 14:10:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:10:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:10:35] Production.INFO: ==19951== Releasing lock... [2025-02-06 14:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:10:35] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:11:04 [end_date_ymd] => 2025-02-06 14:11:04 [RateCDR] => 1 ) [2025-02-06 14: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-06 11:11:04' and `end` < '2025-02-06 14: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-06 14:11:23] Production.INFO: count ==4934 [2025-02-06 14:11:25] Production.ERROR: pbx CDR StartTime 2025-02-06 11:11:04 - End Time 2025-02-06 14:11:04 [2025-02-06 14:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415566', 'tblTempUsageDetail_20' ) start [2025-02-06 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415566', 'tblTempUsageDetail_20' ) end [2025-02-06 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415566', 'tblTempVendorCDR_20' ) start [2025-02-06 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415566', 'tblTempVendorCDR_20' ) end [2025-02-06 14:11:25] Production.INFO: ProcessCDR(1,14415566,1,1,2) [2025-02-06 14:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415566', 'tblTempUsageDetail_20' ) start [2025-02-06 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415566', 'tblTempUsageDetail_20' ) end [2025-02-06 14:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:11:30] Production.INFO: ==20048== Releasing lock... [2025-02-06 14:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:11:30] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:12:06 [end_date_ymd] => 2025-02-06 14:12:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:12:06' and `end` < '2025-02-06 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-06 14:12:29] Production.INFO: count ==4952 [2025-02-06 14:12:32] Production.ERROR: pbx CDR StartTime 2025-02-06 11:12:06 - End Time 2025-02-06 14:12:06 [2025-02-06 14:12:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415571', 'tblTempUsageDetail_20' ) start [2025-02-06 14:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415571', 'tblTempUsageDetail_20' ) end [2025-02-06 14:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415571', 'tblTempVendorCDR_20' ) start [2025-02-06 14:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415571', 'tblTempVendorCDR_20' ) end [2025-02-06 14:12:32] Production.INFO: ProcessCDR(1,14415571,1,1,2) [2025-02-06 14:12:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:12:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:12:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:12:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415571', 'tblTempUsageDetail_20' ) start [2025-02-06 14:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415571', 'tblTempUsageDetail_20' ) end [2025-02-06 14:12:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:12:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:12:37] Production.INFO: ==20141== Releasing lock... [2025-02-06 14:12:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:12:37] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:13:05 [end_date_ymd] => 2025-02-06 14:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:13:05' and `end` < '2025-02-06 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-06 14:13:24] Production.INFO: count ==4996 [2025-02-06 14:13:26] Production.ERROR: pbx CDR StartTime 2025-02-06 11:13:05 - End Time 2025-02-06 14:13:05 [2025-02-06 14:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415576', 'tblTempUsageDetail_20' ) start [2025-02-06 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415576', 'tblTempUsageDetail_20' ) end [2025-02-06 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415576', 'tblTempVendorCDR_20' ) start [2025-02-06 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415576', 'tblTempVendorCDR_20' ) end [2025-02-06 14:13:26] Production.INFO: ProcessCDR(1,14415576,1,1,2) [2025-02-06 14:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415576', 'tblTempUsageDetail_20' ) start [2025-02-06 14:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415576', 'tblTempUsageDetail_20' ) end [2025-02-06 14:13:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:13:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:13:32] Production.INFO: ==20241== Releasing lock... [2025-02-06 14:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:13:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:14:05 [end_date_ymd] => 2025-02-06 14:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:14:05' and `end` < '2025-02-06 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-06 14:14:23] Production.INFO: count ==4990 [2025-02-06 14:14:25] Production.ERROR: pbx CDR StartTime 2025-02-06 11:14:05 - End Time 2025-02-06 14:14:05 [2025-02-06 14:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415581', 'tblTempUsageDetail_20' ) start [2025-02-06 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415581', 'tblTempUsageDetail_20' ) end [2025-02-06 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415581', 'tblTempVendorCDR_20' ) start [2025-02-06 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415581', 'tblTempVendorCDR_20' ) end [2025-02-06 14:14:25] Production.INFO: ProcessCDR(1,14415581,1,1,2) [2025-02-06 14:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415581', 'tblTempUsageDetail_20' ) start [2025-02-06 14:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415581', 'tblTempUsageDetail_20' ) end [2025-02-06 14:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:14:30] Production.INFO: ==20348== Releasing lock... [2025-02-06 14:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:14:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:15:05 [end_date_ymd] => 2025-02-06 14:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:15:05' and `end` < '2025-02-06 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-06 14:15:27] Production.INFO: count ==4991 [2025-02-06 14:15:30] Production.ERROR: pbx CDR StartTime 2025-02-06 11:15:05 - End Time 2025-02-06 14:15:05 [2025-02-06 14:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415586', 'tblTempUsageDetail_20' ) start [2025-02-06 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415586', 'tblTempUsageDetail_20' ) end [2025-02-06 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415586', 'tblTempVendorCDR_20' ) start [2025-02-06 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415586', 'tblTempVendorCDR_20' ) end [2025-02-06 14:15:30] Production.INFO: ProcessCDR(1,14415586,1,1,2) [2025-02-06 14:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415586', 'tblTempUsageDetail_20' ) start [2025-02-06 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415586', 'tblTempUsageDetail_20' ) end [2025-02-06 14:15:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:15:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:15:34] Production.INFO: ==20446== Releasing lock... [2025-02-06 14:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:15:34] Production.INFO: 65.25 MB #Memory Used# [2025-02-06 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:16:05 [end_date_ymd] => 2025-02-06 14:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:16:05' and `end` < '2025-02-06 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-06 14:16:21] Production.INFO: count ==4999 [2025-02-06 14:16:23] Production.ERROR: pbx CDR StartTime 2025-02-06 11:16:05 - End Time 2025-02-06 14:16:05 [2025-02-06 14:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415591', 'tblTempUsageDetail_20' ) start [2025-02-06 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415591', 'tblTempUsageDetail_20' ) end [2025-02-06 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415591', 'tblTempVendorCDR_20' ) start [2025-02-06 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415591', 'tblTempVendorCDR_20' ) end [2025-02-06 14:16:23] Production.INFO: ProcessCDR(1,14415591,1,1,2) [2025-02-06 14:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415591', 'tblTempUsageDetail_20' ) start [2025-02-06 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415591', 'tblTempUsageDetail_20' ) end [2025-02-06 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:16:27] Production.INFO: ==20547== Releasing lock... [2025-02-06 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:16:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:17:06 [end_date_ymd] => 2025-02-06 14:17:06 [RateCDR] => 1 ) [2025-02-06 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:17:06' and `end` < '2025-02-06 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:17:20] Production.INFO: count ==5010 [2025-02-06 14:17:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:17:06 - End Time 2025-02-06 14:17:06 [2025-02-06 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415596', 'tblTempUsageDetail_20' ) start [2025-02-06 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415596', 'tblTempUsageDetail_20' ) end [2025-02-06 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415596', 'tblTempVendorCDR_20' ) start [2025-02-06 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415596', 'tblTempVendorCDR_20' ) end [2025-02-06 14:17:22] Production.INFO: ProcessCDR(1,14415596,1,1,2) [2025-02-06 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415596', 'tblTempUsageDetail_20' ) start [2025-02-06 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415596', 'tblTempUsageDetail_20' ) end [2025-02-06 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:17:27] Production.INFO: ==20651== Releasing lock... [2025-02-06 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:17:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:18:05 [end_date_ymd] => 2025-02-06 14:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:18:05' and `end` < '2025-02-06 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-06 14:18:22] Production.INFO: count ==5015 [2025-02-06 14:18:24] Production.ERROR: pbx CDR StartTime 2025-02-06 11:18:05 - End Time 2025-02-06 14:18:05 [2025-02-06 14:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415601', 'tblTempUsageDetail_20' ) start [2025-02-06 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415601', 'tblTempUsageDetail_20' ) end [2025-02-06 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415601', 'tblTempVendorCDR_20' ) start [2025-02-06 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415601', 'tblTempVendorCDR_20' ) end [2025-02-06 14:18:24] Production.INFO: ProcessCDR(1,14415601,1,1,2) [2025-02-06 14:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415601', 'tblTempUsageDetail_20' ) start [2025-02-06 14:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415601', 'tblTempUsageDetail_20' ) end [2025-02-06 14:18:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:18:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:18:29] Production.INFO: ==20766== Releasing lock... [2025-02-06 14:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:18:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:19:06 [end_date_ymd] => 2025-02-06 14:19:06 [RateCDR] => 1 ) [2025-02-06 14:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:19:06' and `end` < '2025-02-06 14:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:19:29] Production.INFO: count ==5018 [2025-02-06 14:19:32] Production.ERROR: pbx CDR StartTime 2025-02-06 11:19:06 - End Time 2025-02-06 14:19:06 [2025-02-06 14:19:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415606', 'tblTempUsageDetail_20' ) start [2025-02-06 14:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415606', 'tblTempUsageDetail_20' ) end [2025-02-06 14:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415606', 'tblTempVendorCDR_20' ) start [2025-02-06 14:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415606', 'tblTempVendorCDR_20' ) end [2025-02-06 14:19:32] Production.INFO: ProcessCDR(1,14415606,1,1,2) [2025-02-06 14:19:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:19:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:19:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:19:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415606', 'tblTempUsageDetail_20' ) start [2025-02-06 14:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415606', 'tblTempUsageDetail_20' ) end [2025-02-06 14:19:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:19:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:19:36] Production.INFO: ==20895== Releasing lock... [2025-02-06 14:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:19:36] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:20:05 [end_date_ymd] => 2025-02-06 14:20:05 [RateCDR] => 1 ) [2025-02-06 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:20:05' and `end` < '2025-02-06 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:20:31] Production.INFO: count ==4997 [2025-02-06 14:20:34] Production.ERROR: pbx CDR StartTime 2025-02-06 11:20:05 - End Time 2025-02-06 14:20:05 [2025-02-06 14:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415611', 'tblTempUsageDetail_20' ) start [2025-02-06 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415611', 'tblTempUsageDetail_20' ) end [2025-02-06 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415611', 'tblTempVendorCDR_20' ) start [2025-02-06 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415611', 'tblTempVendorCDR_20' ) end [2025-02-06 14:20:34] Production.INFO: ProcessCDR(1,14415611,1,1,2) [2025-02-06 14:20:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:20:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:20:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:20:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415611', 'tblTempUsageDetail_20' ) start [2025-02-06 14:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415611', 'tblTempUsageDetail_20' ) end [2025-02-06 14:20:38] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:20:39] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:20:39] Production.INFO: ==21021== Releasing lock... [2025-02-06 14:20:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:20:39] Production.INFO: 65.5 MB #Memory Used# [2025-02-06 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:21:06 [end_date_ymd] => 2025-02-06 14:21:06 [RateCDR] => 1 ) [2025-02-06 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:21:06' and `end` < '2025-02-06 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:21:28] Production.INFO: count ==4977 [2025-02-06 14:21:31] Production.ERROR: pbx CDR StartTime 2025-02-06 11:21:06 - End Time 2025-02-06 14:21:06 [2025-02-06 14:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415617', 'tblTempUsageDetail_20' ) start [2025-02-06 14:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415617', 'tblTempUsageDetail_20' ) end [2025-02-06 14:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415617', 'tblTempVendorCDR_20' ) start [2025-02-06 14:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415617', 'tblTempVendorCDR_20' ) end [2025-02-06 14:21:31] Production.INFO: ProcessCDR(1,14415617,1,1,2) [2025-02-06 14:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:21:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415617', 'tblTempUsageDetail_20' ) start [2025-02-06 14:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415617', 'tblTempUsageDetail_20' ) end [2025-02-06 14:21:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:21:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:21:36] Production.INFO: ==21151== Releasing lock... [2025-02-06 14:21:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:21:36] Production.INFO: 65.25 MB #Memory Used# [2025-02-06 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:22:05 [end_date_ymd] => 2025-02-06 14:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:22:05' and `end` < '2025-02-06 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-06 14:22:19] Production.INFO: count ==4930 [2025-02-06 14:22:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:22:05 - End Time 2025-02-06 14:22:05 [2025-02-06 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415622', 'tblTempUsageDetail_20' ) start [2025-02-06 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415622', 'tblTempUsageDetail_20' ) end [2025-02-06 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415622', 'tblTempVendorCDR_20' ) start [2025-02-06 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415622', 'tblTempVendorCDR_20' ) end [2025-02-06 14:22:22] Production.INFO: ProcessCDR(1,14415622,1,1,2) [2025-02-06 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415622', 'tblTempUsageDetail_20' ) start [2025-02-06 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415622', 'tblTempUsageDetail_20' ) end [2025-02-06 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:22:27] Production.INFO: ==21278== Releasing lock... [2025-02-06 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:22:27] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:23:06 [end_date_ymd] => 2025-02-06 14:23:06 [RateCDR] => 1 ) [2025-02-06 14:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:23:06' and `end` < '2025-02-06 14:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:23:20] Production.INFO: count ==4909 [2025-02-06 14:23:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:23:06 - End Time 2025-02-06 14:23:06 [2025-02-06 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415627', 'tblTempUsageDetail_20' ) start [2025-02-06 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415627', 'tblTempUsageDetail_20' ) end [2025-02-06 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415627', 'tblTempVendorCDR_20' ) start [2025-02-06 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415627', 'tblTempVendorCDR_20' ) end [2025-02-06 14:23:23] Production.INFO: ProcessCDR(1,14415627,1,1,2) [2025-02-06 14:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415627', 'tblTempUsageDetail_20' ) start [2025-02-06 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415627', 'tblTempUsageDetail_20' ) end [2025-02-06 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:23:27] Production.INFO: ==21449== Releasing lock... [2025-02-06 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:23:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:24:05 [end_date_ymd] => 2025-02-06 14:24:05 [RateCDR] => 1 ) [2025-02-06 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:24:05' and `end` < '2025-02-06 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:24:22] Production.INFO: count ==4876 [2025-02-06 14:24:24] Production.ERROR: pbx CDR StartTime 2025-02-06 11:24:05 - End Time 2025-02-06 14:24:05 [2025-02-06 14:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415632', 'tblTempUsageDetail_20' ) start [2025-02-06 14:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415632', 'tblTempUsageDetail_20' ) end [2025-02-06 14:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415632', 'tblTempVendorCDR_20' ) start [2025-02-06 14:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415632', 'tblTempVendorCDR_20' ) end [2025-02-06 14:24:25] Production.INFO: ProcessCDR(1,14415632,1,1,2) [2025-02-06 14:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415632', 'tblTempUsageDetail_20' ) start [2025-02-06 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415632', 'tblTempUsageDetail_20' ) end [2025-02-06 14:24:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:24:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:24:29] Production.INFO: ==21574== Releasing lock... [2025-02-06 14:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:24:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:25:06 [end_date_ymd] => 2025-02-06 14:25:06 [RateCDR] => 1 ) [2025-02-06 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:25:06' and `end` < '2025-02-06 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:25:19] Production.INFO: count ==4863 [2025-02-06 14:25:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:25:06 - End Time 2025-02-06 14:25:06 [2025-02-06 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415637', 'tblTempUsageDetail_20' ) start [2025-02-06 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415637', 'tblTempUsageDetail_20' ) end [2025-02-06 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415637', 'tblTempVendorCDR_20' ) start [2025-02-06 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415637', 'tblTempVendorCDR_20' ) end [2025-02-06 14:25:22] Production.INFO: ProcessCDR(1,14415637,1,1,2) [2025-02-06 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415637', 'tblTempUsageDetail_20' ) start [2025-02-06 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415637', 'tblTempUsageDetail_20' ) end [2025-02-06 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:25:26] Production.INFO: ==21705== Releasing lock... [2025-02-06 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:25:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:26:05 [end_date_ymd] => 2025-02-06 14:26:05 [RateCDR] => 1 ) [2025-02-06 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:26:05' and `end` < '2025-02-06 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:26:20] Production.INFO: count ==4868 [2025-02-06 14:26:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:26:05 - End Time 2025-02-06 14:26:05 [2025-02-06 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415642', 'tblTempUsageDetail_20' ) start [2025-02-06 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415642', 'tblTempUsageDetail_20' ) end [2025-02-06 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415642', 'tblTempVendorCDR_20' ) start [2025-02-06 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415642', 'tblTempVendorCDR_20' ) end [2025-02-06 14:26:22] Production.INFO: ProcessCDR(1,14415642,1,1,2) [2025-02-06 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415642', 'tblTempUsageDetail_20' ) start [2025-02-06 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415642', 'tblTempUsageDetail_20' ) end [2025-02-06 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:26:27] Production.INFO: ==21833== Releasing lock... [2025-02-06 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:26:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:27:05 [end_date_ymd] => 2025-02-06 14:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:27:05' and `end` < '2025-02-06 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-06 14:27:23] Production.INFO: count ==4871 [2025-02-06 14:27:25] Production.ERROR: pbx CDR StartTime 2025-02-06 11:27:05 - End Time 2025-02-06 14:27:05 [2025-02-06 14:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415647', 'tblTempUsageDetail_20' ) start [2025-02-06 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415647', 'tblTempUsageDetail_20' ) end [2025-02-06 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415647', 'tblTempVendorCDR_20' ) start [2025-02-06 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415647', 'tblTempVendorCDR_20' ) end [2025-02-06 14:27:25] Production.INFO: ProcessCDR(1,14415647,1,1,2) [2025-02-06 14:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415647', 'tblTempUsageDetail_20' ) start [2025-02-06 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415647', 'tblTempUsageDetail_20' ) end [2025-02-06 14:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:27:29] Production.INFO: ==21962== Releasing lock... [2025-02-06 14:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:27:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:28:05 [end_date_ymd] => 2025-02-06 14:28:05 [RateCDR] => 1 ) [2025-02-06 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:28:05' and `end` < '2025-02-06 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:28:20] Production.INFO: count ==4861 [2025-02-06 14:28:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:28:05 - End Time 2025-02-06 14:28:05 [2025-02-06 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415652', 'tblTempUsageDetail_20' ) start [2025-02-06 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415652', 'tblTempUsageDetail_20' ) end [2025-02-06 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415652', 'tblTempVendorCDR_20' ) start [2025-02-06 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415652', 'tblTempVendorCDR_20' ) end [2025-02-06 14:28:22] Production.INFO: ProcessCDR(1,14415652,1,1,2) [2025-02-06 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415652', 'tblTempUsageDetail_20' ) start [2025-02-06 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415652', 'tblTempUsageDetail_20' ) end [2025-02-06 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:28:27] Production.INFO: ==22094== Releasing lock... [2025-02-06 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:28:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:29:05 [end_date_ymd] => 2025-02-06 14:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:29:05' and `end` < '2025-02-06 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-06 14:29:24] Production.INFO: count ==4871 [2025-02-06 14:29:26] Production.ERROR: pbx CDR StartTime 2025-02-06 11:29:05 - End Time 2025-02-06 14:29:05 [2025-02-06 14:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415657', 'tblTempUsageDetail_20' ) start [2025-02-06 14:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415657', 'tblTempUsageDetail_20' ) end [2025-02-06 14:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415657', 'tblTempVendorCDR_20' ) start [2025-02-06 14:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415657', 'tblTempVendorCDR_20' ) end [2025-02-06 14:29:27] Production.INFO: ProcessCDR(1,14415657,1,1,2) [2025-02-06 14:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415657', 'tblTempUsageDetail_20' ) start [2025-02-06 14:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415657', 'tblTempUsageDetail_20' ) end [2025-02-06 14:29:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:29:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:29:32] Production.INFO: ==22224== Releasing lock... [2025-02-06 14:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:29:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:30:07 [end_date_ymd] => 2025-02-06 14:30:07 [RateCDR] => 1 ) [2025-02-06 14: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-06 11:30:07' and `end` < '2025-02-06 14: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-06 14:30:29] Production.INFO: count ==4873 [2025-02-06 14:30:32] Production.ERROR: pbx CDR StartTime 2025-02-06 11:30:07 - End Time 2025-02-06 14:30:07 [2025-02-06 14:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415663', 'tblTempUsageDetail_20' ) start [2025-02-06 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415663', 'tblTempUsageDetail_20' ) end [2025-02-06 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415663', 'tblTempVendorCDR_20' ) start [2025-02-06 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415663', 'tblTempVendorCDR_20' ) end [2025-02-06 14:30:32] Production.INFO: ProcessCDR(1,14415663,1,1,2) [2025-02-06 14:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415663', 'tblTempUsageDetail_20' ) start [2025-02-06 14:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415663', 'tblTempUsageDetail_20' ) end [2025-02-06 14:30:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:30:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:30:37] Production.INFO: ==22358== Releasing lock... [2025-02-06 14:30:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:30:37] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:31:05 [end_date_ymd] => 2025-02-06 14:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:31:05' and `end` < '2025-02-06 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-06 14:31:24] Production.INFO: count ==4835 [2025-02-06 14:31:26] Production.ERROR: pbx CDR StartTime 2025-02-06 11:31:05 - End Time 2025-02-06 14:31:05 [2025-02-06 14:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415668', 'tblTempUsageDetail_20' ) start [2025-02-06 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415668', 'tblTempUsageDetail_20' ) end [2025-02-06 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415668', 'tblTempVendorCDR_20' ) start [2025-02-06 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415668', 'tblTempVendorCDR_20' ) end [2025-02-06 14:31:26] Production.INFO: ProcessCDR(1,14415668,1,1,2) [2025-02-06 14:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415668', 'tblTempUsageDetail_20' ) start [2025-02-06 14:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415668', 'tblTempUsageDetail_20' ) end [2025-02-06 14:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:31:31] Production.INFO: ==22491== Releasing lock... [2025-02-06 14:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:31:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:32:06 [end_date_ymd] => 2025-02-06 14:32:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:32:06' and `end` < '2025-02-06 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-06 14:32:33] Production.INFO: count ==4823 [2025-02-06 14:32:35] Production.ERROR: pbx CDR StartTime 2025-02-06 11:32:06 - End Time 2025-02-06 14:32:06 [2025-02-06 14:32:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415673', 'tblTempUsageDetail_20' ) start [2025-02-06 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415673', 'tblTempUsageDetail_20' ) end [2025-02-06 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415673', 'tblTempVendorCDR_20' ) start [2025-02-06 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415673', 'tblTempVendorCDR_20' ) end [2025-02-06 14:32:35] Production.INFO: ProcessCDR(1,14415673,1,1,2) [2025-02-06 14:32:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:32:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:32:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:32:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415673', 'tblTempUsageDetail_20' ) start [2025-02-06 14:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415673', 'tblTempUsageDetail_20' ) end [2025-02-06 14:32:40] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:32:40] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:32:40] Production.INFO: ==22622== Releasing lock... [2025-02-06 14:32:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:32:40] Production.INFO: 64 MB #Memory Used# [2025-02-06 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:33:05 [end_date_ymd] => 2025-02-06 14:33:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:33:05' and `end` < '2025-02-06 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-06 14:33:32] Production.INFO: count ==4823 [2025-02-06 14:33:34] Production.ERROR: pbx CDR StartTime 2025-02-06 11:33:05 - End Time 2025-02-06 14:33:05 [2025-02-06 14:33:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415678', 'tblTempUsageDetail_20' ) start [2025-02-06 14:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415678', 'tblTempUsageDetail_20' ) end [2025-02-06 14:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415678', 'tblTempVendorCDR_20' ) start [2025-02-06 14:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415678', 'tblTempVendorCDR_20' ) end [2025-02-06 14:33:35] Production.INFO: ProcessCDR(1,14415678,1,1,2) [2025-02-06 14:33:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:33:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:33:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:33:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415678', 'tblTempUsageDetail_20' ) start [2025-02-06 14:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415678', 'tblTempUsageDetail_20' ) end [2025-02-06 14:33:39] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:33:39] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:33:39] Production.INFO: ==22747== Releasing lock... [2025-02-06 14:33:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:33:39] Production.INFO: 64 MB #Memory Used# [2025-02-06 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:34:06 [end_date_ymd] => 2025-02-06 14:34:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:34:06' and `end` < '2025-02-06 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-06 14:34:23] Production.INFO: count ==4834 [2025-02-06 14:34:25] Production.ERROR: pbx CDR StartTime 2025-02-06 11:34:06 - End Time 2025-02-06 14:34:06 [2025-02-06 14:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415683', 'tblTempUsageDetail_20' ) start [2025-02-06 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415683', 'tblTempUsageDetail_20' ) end [2025-02-06 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415683', 'tblTempVendorCDR_20' ) start [2025-02-06 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415683', 'tblTempVendorCDR_20' ) end [2025-02-06 14:34:26] Production.INFO: ProcessCDR(1,14415683,1,1,2) [2025-02-06 14:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415683', 'tblTempUsageDetail_20' ) start [2025-02-06 14:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415683', 'tblTempUsageDetail_20' ) end [2025-02-06 14:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:34:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:34:30] Production.INFO: ==22850== Releasing lock... [2025-02-06 14:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:34:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:35:05 [end_date_ymd] => 2025-02-06 14:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:35:05' and `end` < '2025-02-06 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-06 14:35:19] Production.INFO: count ==4851 [2025-02-06 14:35:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:35:05 - End Time 2025-02-06 14:35:05 [2025-02-06 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415688', 'tblTempUsageDetail_20' ) start [2025-02-06 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415688', 'tblTempUsageDetail_20' ) end [2025-02-06 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415688', 'tblTempVendorCDR_20' ) start [2025-02-06 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415688', 'tblTempVendorCDR_20' ) end [2025-02-06 14:35:22] Production.INFO: ProcessCDR(1,14415688,1,1,2) [2025-02-06 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415688', 'tblTempUsageDetail_20' ) start [2025-02-06 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415688', 'tblTempUsageDetail_20' ) end [2025-02-06 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:35:26] Production.INFO: ==22966== Releasing lock... [2025-02-06 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:35:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:36:05 [end_date_ymd] => 2025-02-06 14:36:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:36:05' and `end` < '2025-02-06 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-06 14:36:20] Production.INFO: count ==4844 [2025-02-06 14:36:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:36:05 - End Time 2025-02-06 14:36:05 [2025-02-06 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415693', 'tblTempUsageDetail_20' ) start [2025-02-06 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415693', 'tblTempUsageDetail_20' ) end [2025-02-06 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415693', 'tblTempVendorCDR_20' ) start [2025-02-06 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415693', 'tblTempVendorCDR_20' ) end [2025-02-06 14:36:22] Production.INFO: ProcessCDR(1,14415693,1,1,2) [2025-02-06 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415693', 'tblTempUsageDetail_20' ) start [2025-02-06 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415693', 'tblTempUsageDetail_20' ) end [2025-02-06 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:36:27] Production.INFO: ==23071== Releasing lock... [2025-02-06 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:36:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:37:05 [end_date_ymd] => 2025-02-06 14:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:37:05' and `end` < '2025-02-06 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-06 14:37:19] Production.INFO: count ==4842 [2025-02-06 14:37:21] Production.ERROR: pbx CDR StartTime 2025-02-06 11:37:05 - End Time 2025-02-06 14:37:05 [2025-02-06 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415698', 'tblTempUsageDetail_20' ) start [2025-02-06 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415698', 'tblTempUsageDetail_20' ) end [2025-02-06 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415698', 'tblTempVendorCDR_20' ) start [2025-02-06 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415698', 'tblTempVendorCDR_20' ) end [2025-02-06 14:37:21] Production.INFO: ProcessCDR(1,14415698,1,1,2) [2025-02-06 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415698', 'tblTempUsageDetail_20' ) start [2025-02-06 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415698', 'tblTempUsageDetail_20' ) end [2025-02-06 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:37:27] Production.INFO: ==23151== Releasing lock... [2025-02-06 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:37:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:38:05 [end_date_ymd] => 2025-02-06 14:38:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:38:05' and `end` < '2025-02-06 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-06 14:38:20] Production.INFO: count ==4857 [2025-02-06 14:38:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:38:05 - End Time 2025-02-06 14:38:05 [2025-02-06 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415703', 'tblTempUsageDetail_20' ) start [2025-02-06 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415703', 'tblTempUsageDetail_20' ) end [2025-02-06 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415703', 'tblTempVendorCDR_20' ) start [2025-02-06 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415703', 'tblTempVendorCDR_20' ) end [2025-02-06 14:38:22] Production.INFO: ProcessCDR(1,14415703,1,1,2) [2025-02-06 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415703', 'tblTempUsageDetail_20' ) start [2025-02-06 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415703', 'tblTempUsageDetail_20' ) end [2025-02-06 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:38:27] Production.INFO: ==23230== Releasing lock... [2025-02-06 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:38:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:39:05 [end_date_ymd] => 2025-02-06 14:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:39:05' and `end` < '2025-02-06 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-06 14:39:24] Production.INFO: count ==4866 [2025-02-06 14:39:26] Production.ERROR: pbx CDR StartTime 2025-02-06 11:39:05 - End Time 2025-02-06 14:39:05 [2025-02-06 14:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415708', 'tblTempUsageDetail_20' ) start [2025-02-06 14:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415708', 'tblTempUsageDetail_20' ) end [2025-02-06 14:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415708', 'tblTempVendorCDR_20' ) start [2025-02-06 14:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415708', 'tblTempVendorCDR_20' ) end [2025-02-06 14:39:26] Production.INFO: ProcessCDR(1,14415708,1,1,2) [2025-02-06 14:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415708', 'tblTempUsageDetail_20' ) start [2025-02-06 14:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415708', 'tblTempUsageDetail_20' ) end [2025-02-06 14:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:39:30] Production.INFO: ==23343== Releasing lock... [2025-02-06 14:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:39:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:40:06 [end_date_ymd] => 2025-02-06 14:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:40:06' and `end` < '2025-02-06 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-06 14:40:25] Production.INFO: count ==4858 [2025-02-06 14:40:27] Production.ERROR: pbx CDR StartTime 2025-02-06 11:40:06 - End Time 2025-02-06 14:40:06 [2025-02-06 14:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415714', 'tblTempUsageDetail_20' ) start [2025-02-06 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415714', 'tblTempUsageDetail_20' ) end [2025-02-06 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415714', 'tblTempVendorCDR_20' ) start [2025-02-06 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415714', 'tblTempVendorCDR_20' ) end [2025-02-06 14:40:27] Production.INFO: ProcessCDR(1,14415714,1,1,2) [2025-02-06 14:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415714', 'tblTempUsageDetail_20' ) start [2025-02-06 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415714', 'tblTempUsageDetail_20' ) end [2025-02-06 14:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:40:32] Production.INFO: ==23426== Releasing lock... [2025-02-06 14:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:40:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:41:05 [end_date_ymd] => 2025-02-06 14:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:41:05' and `end` < '2025-02-06 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-06 14:41:19] Production.INFO: count ==4873 [2025-02-06 14:41:21] Production.ERROR: pbx CDR StartTime 2025-02-06 11:41:05 - End Time 2025-02-06 14:41:05 [2025-02-06 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415719', 'tblTempUsageDetail_20' ) start [2025-02-06 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415719', 'tblTempUsageDetail_20' ) end [2025-02-06 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415719', 'tblTempVendorCDR_20' ) start [2025-02-06 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415719', 'tblTempVendorCDR_20' ) end [2025-02-06 14:41:22] Production.INFO: ProcessCDR(1,14415719,1,1,2) [2025-02-06 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415719', 'tblTempUsageDetail_20' ) start [2025-02-06 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415719', 'tblTempUsageDetail_20' ) end [2025-02-06 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:41:27] Production.INFO: ==23507== Releasing lock... [2025-02-06 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:41:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:42:05 [end_date_ymd] => 2025-02-06 14:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:42:05' and `end` < '2025-02-06 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-06 14:42:25] Production.INFO: count ==4906 [2025-02-06 14:42:27] Production.ERROR: pbx CDR StartTime 2025-02-06 11:42:05 - End Time 2025-02-06 14:42:05 [2025-02-06 14:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415724', 'tblTempUsageDetail_20' ) start [2025-02-06 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415724', 'tblTempUsageDetail_20' ) end [2025-02-06 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415724', 'tblTempVendorCDR_20' ) start [2025-02-06 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415724', 'tblTempVendorCDR_20' ) end [2025-02-06 14:42:27] Production.INFO: ProcessCDR(1,14415724,1,1,2) [2025-02-06 14:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415724', 'tblTempUsageDetail_20' ) start [2025-02-06 14:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415724', 'tblTempUsageDetail_20' ) end [2025-02-06 14:42:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:42:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:42:32] Production.INFO: ==23583== Releasing lock... [2025-02-06 14:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:42:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:43:05 [end_date_ymd] => 2025-02-06 14:43:05 [RateCDR] => 1 ) [2025-02-06 14: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-06 11:43:05' and `end` < '2025-02-06 14: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-06 14:43:20] Production.INFO: count ==4925 [2025-02-06 14:43:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:43:05 - End Time 2025-02-06 14:43:05 [2025-02-06 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415729', 'tblTempUsageDetail_20' ) start [2025-02-06 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415729', 'tblTempUsageDetail_20' ) end [2025-02-06 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415729', 'tblTempVendorCDR_20' ) start [2025-02-06 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415729', 'tblTempVendorCDR_20' ) end [2025-02-06 14:43:22] Production.INFO: ProcessCDR(1,14415729,1,1,2) [2025-02-06 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415729', 'tblTempUsageDetail_20' ) start [2025-02-06 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415729', 'tblTempUsageDetail_20' ) end [2025-02-06 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:43:27] Production.INFO: ==23663== Releasing lock... [2025-02-06 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:43:27] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:44:05 [end_date_ymd] => 2025-02-06 14:44:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:44:05' and `end` < '2025-02-06 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-06 14:44:19] Production.INFO: count ==4923 [2025-02-06 14:44:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:44:05 - End Time 2025-02-06 14:44:05 [2025-02-06 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415734', 'tblTempUsageDetail_20' ) start [2025-02-06 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415734', 'tblTempUsageDetail_20' ) end [2025-02-06 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415734', 'tblTempVendorCDR_20' ) start [2025-02-06 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415734', 'tblTempVendorCDR_20' ) end [2025-02-06 14:44:22] Production.INFO: ProcessCDR(1,14415734,1,1,2) [2025-02-06 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415734', 'tblTempUsageDetail_20' ) start [2025-02-06 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415734', 'tblTempUsageDetail_20' ) end [2025-02-06 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:44:26] Production.INFO: ==23735== Releasing lock... [2025-02-06 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:44:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-06 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:45:06 [end_date_ymd] => 2025-02-06 14:45:06 [RateCDR] => 1 ) [2025-02-06 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:45:06' and `end` < '2025-02-06 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:45:24] Production.INFO: count ==4927 [2025-02-06 14:45:26] Production.ERROR: pbx CDR StartTime 2025-02-06 11:45:06 - End Time 2025-02-06 14:45:06 [2025-02-06 14:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415739', 'tblTempUsageDetail_20' ) start [2025-02-06 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415739', 'tblTempUsageDetail_20' ) end [2025-02-06 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415739', 'tblTempVendorCDR_20' ) start [2025-02-06 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415739', 'tblTempVendorCDR_20' ) end [2025-02-06 14:45:26] Production.INFO: ProcessCDR(1,14415739,1,1,2) [2025-02-06 14:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415739', 'tblTempUsageDetail_20' ) start [2025-02-06 14:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415739', 'tblTempUsageDetail_20' ) end [2025-02-06 14:45:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:45:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:45:31] Production.INFO: ==23815== Releasing lock... [2025-02-06 14:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:45:31] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:46:05 [end_date_ymd] => 2025-02-06 14:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:46:05' and `end` < '2025-02-06 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-06 14:46:21] Production.INFO: count ==4937 [2025-02-06 14:46:24] Production.ERROR: pbx CDR StartTime 2025-02-06 11:46:05 - End Time 2025-02-06 14:46:05 [2025-02-06 14:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415744', 'tblTempUsageDetail_20' ) start [2025-02-06 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415744', 'tblTempUsageDetail_20' ) end [2025-02-06 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415744', 'tblTempVendorCDR_20' ) start [2025-02-06 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415744', 'tblTempVendorCDR_20' ) end [2025-02-06 14:46:24] Production.INFO: ProcessCDR(1,14415744,1,1,2) [2025-02-06 14:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415744', 'tblTempUsageDetail_20' ) start [2025-02-06 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415744', 'tblTempUsageDetail_20' ) end [2025-02-06 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:46:29] Production.INFO: ==23892== Releasing lock... [2025-02-06 14:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:46:29] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:47:06 [end_date_ymd] => 2025-02-06 14:47:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:47:06' and `end` < '2025-02-06 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-06 14:47:24] Production.INFO: count ==4937 [2025-02-06 14:47:26] Production.ERROR: pbx CDR StartTime 2025-02-06 11:47:06 - End Time 2025-02-06 14:47:06 [2025-02-06 14:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415749', 'tblTempUsageDetail_20' ) start [2025-02-06 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415749', 'tblTempUsageDetail_20' ) end [2025-02-06 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415749', 'tblTempVendorCDR_20' ) start [2025-02-06 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415749', 'tblTempVendorCDR_20' ) end [2025-02-06 14:47:26] Production.INFO: ProcessCDR(1,14415749,1,1,2) [2025-02-06 14:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415749', 'tblTempUsageDetail_20' ) start [2025-02-06 14:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415749', 'tblTempUsageDetail_20' ) end [2025-02-06 14:47:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:47:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:47:30] Production.INFO: ==23974== Releasing lock... [2025-02-06 14:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:47:30] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:48:05 [end_date_ymd] => 2025-02-06 14:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:48:05' and `end` < '2025-02-06 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-06 14:48:19] Production.INFO: count ==4937 [2025-02-06 14:48:22] Production.ERROR: pbx CDR StartTime 2025-02-06 11:48:05 - End Time 2025-02-06 14:48:05 [2025-02-06 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415754', 'tblTempUsageDetail_20' ) start [2025-02-06 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415754', 'tblTempUsageDetail_20' ) end [2025-02-06 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415754', 'tblTempVendorCDR_20' ) start [2025-02-06 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415754', 'tblTempVendorCDR_20' ) end [2025-02-06 14:48:22] Production.INFO: ProcessCDR(1,14415754,1,1,2) [2025-02-06 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415754', 'tblTempUsageDetail_20' ) start [2025-02-06 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415754', 'tblTempUsageDetail_20' ) end [2025-02-06 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:48:27] Production.INFO: ==24074== Releasing lock... [2025-02-06 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:48:27] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:49:05 [end_date_ymd] => 2025-02-06 14:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:49:05' and `end` < '2025-02-06 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-06 14:49:27] Production.INFO: count ==4942 [2025-02-06 14:49:29] Production.ERROR: pbx CDR StartTime 2025-02-06 11:49:05 - End Time 2025-02-06 14:49:05 [2025-02-06 14:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415759', 'tblTempUsageDetail_20' ) start [2025-02-06 14:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415759', 'tblTempUsageDetail_20' ) end [2025-02-06 14:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415759', 'tblTempVendorCDR_20' ) start [2025-02-06 14:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415759', 'tblTempVendorCDR_20' ) end [2025-02-06 14:49:29] Production.INFO: ProcessCDR(1,14415759,1,1,2) [2025-02-06 14:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:49:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:49:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415759', 'tblTempUsageDetail_20' ) start [2025-02-06 14:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415759', 'tblTempUsageDetail_20' ) end [2025-02-06 14:49:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:49:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:49:34] Production.INFO: ==24153== Releasing lock... [2025-02-06 14:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:49:34] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:50:06 [end_date_ymd] => 2025-02-06 14:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:50:06' and `end` < '2025-02-06 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-06 14:50:28] Production.INFO: count ==4955 [2025-02-06 14:50:30] Production.ERROR: pbx CDR StartTime 2025-02-06 11:50:06 - End Time 2025-02-06 14:50:06 [2025-02-06 14:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415764', 'tblTempUsageDetail_20' ) start [2025-02-06 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415764', 'tblTempUsageDetail_20' ) end [2025-02-06 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415764', 'tblTempVendorCDR_20' ) start [2025-02-06 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415764', 'tblTempVendorCDR_20' ) end [2025-02-06 14:50:30] Production.INFO: ProcessCDR(1,14415764,1,1,2) [2025-02-06 14:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415764', 'tblTempUsageDetail_20' ) start [2025-02-06 14:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415764', 'tblTempUsageDetail_20' ) end [2025-02-06 14:50:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:50:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:50:35] Production.INFO: ==24231== Releasing lock... [2025-02-06 14:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:50:35] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:51:06 [end_date_ymd] => 2025-02-06 14:51:06 [RateCDR] => 1 ) [2025-02-06 14:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 11:51:06' and `end` < '2025-02-06 14:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 14:51:24] Production.INFO: count ==4942 [2025-02-06 14:51:26] Production.ERROR: pbx CDR StartTime 2025-02-06 11:51:06 - End Time 2025-02-06 14:51:06 [2025-02-06 14:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415770', 'tblTempUsageDetail_20' ) start [2025-02-06 14:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415770', 'tblTempUsageDetail_20' ) end [2025-02-06 14:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415770', 'tblTempVendorCDR_20' ) start [2025-02-06 14:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415770', 'tblTempVendorCDR_20' ) end [2025-02-06 14:51:26] Production.INFO: ProcessCDR(1,14415770,1,1,2) [2025-02-06 14:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415770', 'tblTempUsageDetail_20' ) start [2025-02-06 14:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415770', 'tblTempUsageDetail_20' ) end [2025-02-06 14:51:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:51:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:51:29] Production.INFO: ==24310== Releasing lock... [2025-02-06 14:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:51:29] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:52:05 [end_date_ymd] => 2025-02-06 14:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:52:05' and `end` < '2025-02-06 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-06 14:52:21] Production.INFO: count ==4946 [2025-02-06 14:52:24] Production.ERROR: pbx CDR StartTime 2025-02-06 11:52:05 - End Time 2025-02-06 14:52:05 [2025-02-06 14:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415775', 'tblTempUsageDetail_20' ) start [2025-02-06 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415775', 'tblTempUsageDetail_20' ) end [2025-02-06 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415775', 'tblTempVendorCDR_20' ) start [2025-02-06 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415775', 'tblTempVendorCDR_20' ) end [2025-02-06 14:52:24] Production.INFO: ProcessCDR(1,14415775,1,1,2) [2025-02-06 14:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415775', 'tblTempUsageDetail_20' ) start [2025-02-06 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415775', 'tblTempUsageDetail_20' ) end [2025-02-06 14:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:52:29] Production.INFO: ==24391== Releasing lock... [2025-02-06 14:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:52:29] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:53:05 [end_date_ymd] => 2025-02-06 14:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:53:05' and `end` < '2025-02-06 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-06 14:53:31] Production.INFO: count ==4949 [2025-02-06 14:53:33] Production.ERROR: pbx CDR StartTime 2025-02-06 11:53:05 - End Time 2025-02-06 14:53:05 [2025-02-06 14:53:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415780', 'tblTempUsageDetail_20' ) start [2025-02-06 14:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415780', 'tblTempUsageDetail_20' ) end [2025-02-06 14:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415780', 'tblTempVendorCDR_20' ) start [2025-02-06 14:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415780', 'tblTempVendorCDR_20' ) end [2025-02-06 14:53:33] Production.INFO: ProcessCDR(1,14415780,1,1,2) [2025-02-06 14:53:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:53:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:53:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:53:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415780', 'tblTempUsageDetail_20' ) start [2025-02-06 14:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415780', 'tblTempUsageDetail_20' ) end [2025-02-06 14:53:38] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:53:38] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:53:38] Production.INFO: ==24478== Releasing lock... [2025-02-06 14:53:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:53:38] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:54:05 [end_date_ymd] => 2025-02-06 14:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:54:05' and `end` < '2025-02-06 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-06 14:54:26] Production.INFO: count ==4947 [2025-02-06 14:54:28] Production.ERROR: pbx CDR StartTime 2025-02-06 11:54:05 - End Time 2025-02-06 14:54:05 [2025-02-06 14:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415785', 'tblTempUsageDetail_20' ) start [2025-02-06 14:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415785', 'tblTempUsageDetail_20' ) end [2025-02-06 14:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415785', 'tblTempVendorCDR_20' ) start [2025-02-06 14:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415785', 'tblTempVendorCDR_20' ) end [2025-02-06 14:54:29] Production.INFO: ProcessCDR(1,14415785,1,1,2) [2025-02-06 14:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415785', 'tblTempUsageDetail_20' ) start [2025-02-06 14:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415785', 'tblTempUsageDetail_20' ) end [2025-02-06 14:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:54:33] Production.INFO: ==24625== Releasing lock... [2025-02-06 14:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:54:33] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:55:05 [end_date_ymd] => 2025-02-06 14:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:55:05' and `end` < '2025-02-06 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-06 14:55:31] Production.INFO: count ==4949 [2025-02-06 14:55:33] Production.ERROR: pbx CDR StartTime 2025-02-06 11:55:05 - End Time 2025-02-06 14:55:05 [2025-02-06 14:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415790', 'tblTempUsageDetail_20' ) start [2025-02-06 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415790', 'tblTempUsageDetail_20' ) end [2025-02-06 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415790', 'tblTempVendorCDR_20' ) start [2025-02-06 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415790', 'tblTempVendorCDR_20' ) end [2025-02-06 14:55:33] Production.INFO: ProcessCDR(1,14415790,1,1,2) [2025-02-06 14:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415790', 'tblTempUsageDetail_20' ) start [2025-02-06 14:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415790', 'tblTempUsageDetail_20' ) end [2025-02-06 14:55:38] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:55:38] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:55:38] Production.INFO: ==24735== Releasing lock... [2025-02-06 14:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:55:38] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:56:06 [end_date_ymd] => 2025-02-06 14:56:06 [RateCDR] => 1 ) [2025-02-06 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-06 11:56:06' and `end` < '2025-02-06 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-06 14:56:25] Production.INFO: count ==4950 [2025-02-06 14:56:28] Production.ERROR: pbx CDR StartTime 2025-02-06 11:56:06 - End Time 2025-02-06 14:56:06 [2025-02-06 14:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415795', 'tblTempUsageDetail_20' ) start [2025-02-06 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415795', 'tblTempUsageDetail_20' ) end [2025-02-06 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415795', 'tblTempVendorCDR_20' ) start [2025-02-06 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415795', 'tblTempVendorCDR_20' ) end [2025-02-06 14:56:28] Production.INFO: ProcessCDR(1,14415795,1,1,2) [2025-02-06 14:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415795', 'tblTempUsageDetail_20' ) start [2025-02-06 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415795', 'tblTempUsageDetail_20' ) end [2025-02-06 14:56:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:56:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:56:33] Production.INFO: ==24848== Releasing lock... [2025-02-06 14:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:56:33] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:57:05 [end_date_ymd] => 2025-02-06 14:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:57:05' and `end` < '2025-02-06 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-06 14:57:23] Production.INFO: count ==4944 [2025-02-06 14:57:25] Production.ERROR: pbx CDR StartTime 2025-02-06 11:57:05 - End Time 2025-02-06 14:57:05 [2025-02-06 14:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415800', 'tblTempUsageDetail_20' ) start [2025-02-06 14:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415800', 'tblTempUsageDetail_20' ) end [2025-02-06 14:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415800', 'tblTempVendorCDR_20' ) start [2025-02-06 14:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415800', 'tblTempVendorCDR_20' ) end [2025-02-06 14:57:25] Production.INFO: ProcessCDR(1,14415800,1,1,2) [2025-02-06 14:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415800', 'tblTempUsageDetail_20' ) start [2025-02-06 14:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415800', 'tblTempUsageDetail_20' ) end [2025-02-06 14:57:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:57:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:57:30] Production.INFO: ==24957== Releasing lock... [2025-02-06 14:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:57:30] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:58:05 [end_date_ymd] => 2025-02-06 14:58:05 [RateCDR] => 1 ) [2025-02-06 14: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-06 11:58:05' and `end` < '2025-02-06 14: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-06 14:58:19] Production.INFO: count ==4931 [2025-02-06 14:58:21] Production.ERROR: pbx CDR StartTime 2025-02-06 11:58:05 - End Time 2025-02-06 14:58:05 [2025-02-06 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415804', 'tblTempUsageDetail_20' ) start [2025-02-06 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415804', 'tblTempUsageDetail_20' ) end [2025-02-06 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415804', 'tblTempVendorCDR_20' ) start [2025-02-06 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415804', 'tblTempVendorCDR_20' ) end [2025-02-06 14:58:22] Production.INFO: ProcessCDR(1,14415804,1,1,2) [2025-02-06 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415804', 'tblTempUsageDetail_20' ) start [2025-02-06 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415804', 'tblTempUsageDetail_20' ) end [2025-02-06 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:58:26] Production.INFO: ==25041== Releasing lock... [2025-02-06 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:58:26] Production.INFO: 65 MB #Memory Used# [2025-02-06 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 11:59:05 [end_date_ymd] => 2025-02-06 14:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 11:59:05' and `end` < '2025-02-06 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-06 14:59:24] Production.INFO: count ==4930 [2025-02-06 14:59:27] Production.ERROR: pbx CDR StartTime 2025-02-06 11:59:05 - End Time 2025-02-06 14:59:05 [2025-02-06 14:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415810', 'tblTempUsageDetail_20' ) start [2025-02-06 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415810', 'tblTempUsageDetail_20' ) end [2025-02-06 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415810', 'tblTempVendorCDR_20' ) start [2025-02-06 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415810', 'tblTempVendorCDR_20' ) end [2025-02-06 14:59:27] Production.INFO: ProcessCDR(1,14415810,1,1,2) [2025-02-06 14:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 14:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 14:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415810', 'tblTempUsageDetail_20' ) start [2025-02-06 14:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415810', 'tblTempUsageDetail_20' ) end [2025-02-06 14:59:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 14:59:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 14:59:32] Production.INFO: ==25126== Releasing lock... [2025-02-06 14:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 14:59:32] Production.INFO: 65 MB #Memory Used# [2025-02-06 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:00:06 [end_date_ymd] => 2025-02-06 15:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 12:00:06' and `end` < '2025-02-06 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-06 15:00:22] Production.INFO: count ==4932 [2025-02-06 15:00:24] Production.ERROR: pbx CDR StartTime 2025-02-06 12:00:06 - End Time 2025-02-06 15:00:06 [2025-02-06 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415816', 'tblTempUsageDetail_20' ) start [2025-02-06 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415816', 'tblTempUsageDetail_20' ) end [2025-02-06 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415816', 'tblTempVendorCDR_20' ) start [2025-02-06 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415816', 'tblTempVendorCDR_20' ) end [2025-02-06 15:00:24] Production.INFO: ProcessCDR(1,14415816,1,1,2) [2025-02-06 15:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415816', 'tblTempUsageDetail_20' ) start [2025-02-06 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415816', 'tblTempUsageDetail_20' ) end [2025-02-06 15:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:00:29] Production.INFO: ==25215== Releasing lock... [2025-02-06 15:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:00:29] Production.INFO: 65 MB #Memory Used# [2025-02-06 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:01:05 [end_date_ymd] => 2025-02-06 15:01:05 [RateCDR] => 1 ) [2025-02-06 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:01:05' and `end` < '2025-02-06 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 15:01:19] Production.INFO: count ==4881 [2025-02-06 15:01:21] Production.ERROR: pbx CDR StartTime 2025-02-06 12:01:05 - End Time 2025-02-06 15:01:05 [2025-02-06 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415821', 'tblTempUsageDetail_20' ) start [2025-02-06 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415821', 'tblTempUsageDetail_20' ) end [2025-02-06 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415821', 'tblTempVendorCDR_20' ) start [2025-02-06 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415821', 'tblTempVendorCDR_20' ) end [2025-02-06 15:01:21] Production.INFO: ProcessCDR(1,14415821,1,1,2) [2025-02-06 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415821', 'tblTempUsageDetail_20' ) start [2025-02-06 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415821', 'tblTempUsageDetail_20' ) end [2025-02-06 15:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:01:26] Production.INFO: ==25384== Releasing lock... [2025-02-06 15:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:01:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:02:05 [end_date_ymd] => 2025-02-06 15:02:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:02:05' and `end` < '2025-02-06 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-06 15:02:19] Production.INFO: count ==4869 [2025-02-06 15:02:21] Production.ERROR: pbx CDR StartTime 2025-02-06 12:02:05 - End Time 2025-02-06 15:02:05 [2025-02-06 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415826', 'tblTempUsageDetail_20' ) start [2025-02-06 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415826', 'tblTempUsageDetail_20' ) end [2025-02-06 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415826', 'tblTempVendorCDR_20' ) start [2025-02-06 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415826', 'tblTempVendorCDR_20' ) end [2025-02-06 15:02:21] Production.INFO: ProcessCDR(1,14415826,1,1,2) [2025-02-06 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415826', 'tblTempUsageDetail_20' ) start [2025-02-06 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415826', 'tblTempUsageDetail_20' ) end [2025-02-06 15:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:02:26] Production.INFO: ==25469== Releasing lock... [2025-02-06 15:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:02:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:03:05 [end_date_ymd] => 2025-02-06 15:03:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:03:05' and `end` < '2025-02-06 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-06 15:03:23] Production.INFO: count ==4860 [2025-02-06 15:03:25] Production.ERROR: pbx CDR StartTime 2025-02-06 12:03:05 - End Time 2025-02-06 15:03:05 [2025-02-06 15:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415831', 'tblTempUsageDetail_20' ) start [2025-02-06 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415831', 'tblTempUsageDetail_20' ) end [2025-02-06 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415831', 'tblTempVendorCDR_20' ) start [2025-02-06 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415831', 'tblTempVendorCDR_20' ) end [2025-02-06 15:03:25] Production.INFO: ProcessCDR(1,14415831,1,1,2) [2025-02-06 15:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415831', 'tblTempUsageDetail_20' ) start [2025-02-06 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415831', 'tblTempUsageDetail_20' ) end [2025-02-06 15:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:03:30] Production.INFO: ==25545== Releasing lock... [2025-02-06 15:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:03:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:04:05 [end_date_ymd] => 2025-02-06 15:04:05 [RateCDR] => 1 ) [2025-02-06 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:04:05' and `end` < '2025-02-06 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 15:04:20] Production.INFO: count ==4860 [2025-02-06 15:04:23] Production.ERROR: pbx CDR StartTime 2025-02-06 12:04:05 - End Time 2025-02-06 15:04:05 [2025-02-06 15:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415836', 'tblTempUsageDetail_20' ) start [2025-02-06 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415836', 'tblTempUsageDetail_20' ) end [2025-02-06 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415836', 'tblTempVendorCDR_20' ) start [2025-02-06 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415836', 'tblTempVendorCDR_20' ) end [2025-02-06 15:04:23] Production.INFO: ProcessCDR(1,14415836,1,1,2) [2025-02-06 15:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415836', 'tblTempUsageDetail_20' ) start [2025-02-06 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415836', 'tblTempUsageDetail_20' ) end [2025-02-06 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:04:27] Production.INFO: ==25627== Releasing lock... [2025-02-06 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:04:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:05:05 [end_date_ymd] => 2025-02-06 15:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:05:05' and `end` < '2025-02-06 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-06 15:05:25] Production.INFO: count ==4858 [2025-02-06 15:05:27] Production.ERROR: pbx CDR StartTime 2025-02-06 12:05:05 - End Time 2025-02-06 15:05:05 [2025-02-06 15:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415841', 'tblTempUsageDetail_20' ) start [2025-02-06 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415841', 'tblTempUsageDetail_20' ) end [2025-02-06 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415841', 'tblTempVendorCDR_20' ) start [2025-02-06 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415841', 'tblTempVendorCDR_20' ) end [2025-02-06 15:05:28] Production.INFO: ProcessCDR(1,14415841,1,1,2) [2025-02-06 15:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415841', 'tblTempUsageDetail_20' ) start [2025-02-06 15:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415841', 'tblTempUsageDetail_20' ) end [2025-02-06 15:05:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:05:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:05:32] Production.INFO: ==25780== Releasing lock... [2025-02-06 15:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:05:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:06:05 [end_date_ymd] => 2025-02-06 15:06:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:06:05' and `end` < '2025-02-06 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-06 15:06:20] Production.INFO: count ==4863 [2025-02-06 15:06:22] Production.ERROR: pbx CDR StartTime 2025-02-06 12:06:05 - End Time 2025-02-06 15:06:05 [2025-02-06 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415846', 'tblTempUsageDetail_20' ) start [2025-02-06 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415846', 'tblTempUsageDetail_20' ) end [2025-02-06 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415846', 'tblTempVendorCDR_20' ) start [2025-02-06 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415846', 'tblTempVendorCDR_20' ) end [2025-02-06 15:06:22] Production.INFO: ProcessCDR(1,14415846,1,1,2) [2025-02-06 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415846', 'tblTempUsageDetail_20' ) start [2025-02-06 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415846', 'tblTempUsageDetail_20' ) end [2025-02-06 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:06:27] Production.INFO: ==25855== Releasing lock... [2025-02-06 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:06:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:07:05 [end_date_ymd] => 2025-02-06 15:07:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:07:05' and `end` < '2025-02-06 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-06 15:07:20] Production.INFO: count ==4859 [2025-02-06 15:07:22] Production.ERROR: pbx CDR StartTime 2025-02-06 12:07:05 - End Time 2025-02-06 15:07:05 [2025-02-06 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415851', 'tblTempUsageDetail_20' ) start [2025-02-06 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415851', 'tblTempUsageDetail_20' ) end [2025-02-06 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415851', 'tblTempVendorCDR_20' ) start [2025-02-06 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415851', 'tblTempVendorCDR_20' ) end [2025-02-06 15:07:22] Production.INFO: ProcessCDR(1,14415851,1,1,2) [2025-02-06 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415851', 'tblTempUsageDetail_20' ) start [2025-02-06 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415851', 'tblTempUsageDetail_20' ) end [2025-02-06 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:07:27] Production.INFO: ==25928== Releasing lock... [2025-02-06 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:07:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-06 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:08:05 [end_date_ymd] => 2025-02-06 15:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:08:05' and `end` < '2025-02-06 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-06 15:08:19] Production.INFO: count ==4838 [2025-02-06 15:08:21] Production.ERROR: pbx CDR StartTime 2025-02-06 12:08:05 - End Time 2025-02-06 15:08:05 [2025-02-06 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415856', 'tblTempUsageDetail_20' ) start [2025-02-06 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415856', 'tblTempUsageDetail_20' ) end [2025-02-06 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415856', 'tblTempVendorCDR_20' ) start [2025-02-06 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415856', 'tblTempVendorCDR_20' ) end [2025-02-06 15:08:22] Production.INFO: ProcessCDR(1,14415856,1,1,2) [2025-02-06 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415856', 'tblTempUsageDetail_20' ) start [2025-02-06 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415856', 'tblTempUsageDetail_20' ) end [2025-02-06 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:08:26] Production.INFO: ==26087== Releasing lock... [2025-02-06 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:08:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:09:05 [end_date_ymd] => 2025-02-06 15:09:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:09:05' and `end` < '2025-02-06 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-06 15:09:22] Production.INFO: count ==4822 [2025-02-06 15:09:24] Production.ERROR: pbx CDR StartTime 2025-02-06 12:09:05 - End Time 2025-02-06 15:09:05 [2025-02-06 15:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415861', 'tblTempUsageDetail_20' ) start [2025-02-06 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415861', 'tblTempUsageDetail_20' ) end [2025-02-06 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415861', 'tblTempVendorCDR_20' ) start [2025-02-06 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415861', 'tblTempVendorCDR_20' ) end [2025-02-06 15:09:24] Production.INFO: ProcessCDR(1,14415861,1,1,2) [2025-02-06 15:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415861', 'tblTempUsageDetail_20' ) start [2025-02-06 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415861', 'tblTempUsageDetail_20' ) end [2025-02-06 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:09:27] Production.INFO: ==26201== Releasing lock... [2025-02-06 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:09:27] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:10:06 [end_date_ymd] => 2025-02-06 15:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 12:10:06' and `end` < '2025-02-06 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-06 15:10:22] Production.INFO: count ==4810 [2025-02-06 15:10:24] Production.ERROR: pbx CDR StartTime 2025-02-06 12:10:06 - End Time 2025-02-06 15:10:06 [2025-02-06 15:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415867', 'tblTempUsageDetail_20' ) start [2025-02-06 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415867', 'tblTempUsageDetail_20' ) end [2025-02-06 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415867', 'tblTempVendorCDR_20' ) start [2025-02-06 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415867', 'tblTempVendorCDR_20' ) end [2025-02-06 15:10:24] Production.INFO: ProcessCDR(1,14415867,1,1,2) [2025-02-06 15:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415867', 'tblTempUsageDetail_20' ) start [2025-02-06 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415867', 'tblTempUsageDetail_20' ) end [2025-02-06 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:10:28] Production.INFO: ==26273== Releasing lock... [2025-02-06 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:10:28] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:11:05 [end_date_ymd] => 2025-02-06 15:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:11:05' and `end` < '2025-02-06 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-06 15:11:26] Production.INFO: count ==4779 [2025-02-06 15:11:28] Production.ERROR: pbx CDR StartTime 2025-02-06 12:11:05 - End Time 2025-02-06 15:11:05 [2025-02-06 15:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415872', 'tblTempUsageDetail_20' ) start [2025-02-06 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415872', 'tblTempUsageDetail_20' ) end [2025-02-06 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415872', 'tblTempVendorCDR_20' ) start [2025-02-06 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415872', 'tblTempVendorCDR_20' ) end [2025-02-06 15:11:28] Production.INFO: ProcessCDR(1,14415872,1,1,2) [2025-02-06 15:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415872', 'tblTempUsageDetail_20' ) start [2025-02-06 15:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415872', 'tblTempUsageDetail_20' ) end [2025-02-06 15:11:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:11:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:11:33] Production.INFO: ==26349== Releasing lock... [2025-02-06 15:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:11:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:12:05 [end_date_ymd] => 2025-02-06 15:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:12:05' and `end` < '2025-02-06 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-06 15:12:29] Production.INFO: count ==4793 [2025-02-06 15:12:31] Production.ERROR: pbx CDR StartTime 2025-02-06 12:12:05 - End Time 2025-02-06 15:12:05 [2025-02-06 15:12:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415877', 'tblTempUsageDetail_20' ) start [2025-02-06 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415877', 'tblTempUsageDetail_20' ) end [2025-02-06 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415877', 'tblTempVendorCDR_20' ) start [2025-02-06 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415877', 'tblTempVendorCDR_20' ) end [2025-02-06 15:12:31] Production.INFO: ProcessCDR(1,14415877,1,1,2) [2025-02-06 15:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:12:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:12:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:12:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415877', 'tblTempUsageDetail_20' ) start [2025-02-06 15:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415877', 'tblTempUsageDetail_20' ) end [2025-02-06 15:12:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:12:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:12:36] Production.INFO: ==26509== Releasing lock... [2025-02-06 15:12:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:12:36] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:13:05 [end_date_ymd] => 2025-02-06 15:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:13:05' and `end` < '2025-02-06 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-06 15:13:30] Production.INFO: count ==4791 [2025-02-06 15:13:32] Production.ERROR: pbx CDR StartTime 2025-02-06 12:13:05 - End Time 2025-02-06 15:13:05 [2025-02-06 15:13:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415882', 'tblTempUsageDetail_20' ) start [2025-02-06 15:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415882', 'tblTempUsageDetail_20' ) end [2025-02-06 15:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415882', 'tblTempVendorCDR_20' ) start [2025-02-06 15:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415882', 'tblTempVendorCDR_20' ) end [2025-02-06 15:13:32] Production.INFO: ProcessCDR(1,14415882,1,1,2) [2025-02-06 15:13:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:13:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:13:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:13:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415882', 'tblTempUsageDetail_20' ) start [2025-02-06 15:13:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415882', 'tblTempUsageDetail_20' ) end [2025-02-06 15:13:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:13:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:13:37] Production.INFO: ==26587== Releasing lock... [2025-02-06 15:13:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:13:37] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:14:06 [end_date_ymd] => 2025-02-06 15:14:06 [RateCDR] => 1 ) [2025-02-06 15:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:14:06' and `end` < '2025-02-06 15: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-06 15:14:27] Production.INFO: count ==4776 [2025-02-06 15:14:29] Production.ERROR: pbx CDR StartTime 2025-02-06 12:14:06 - End Time 2025-02-06 15:14:06 [2025-02-06 15:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415887', 'tblTempUsageDetail_20' ) start [2025-02-06 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415887', 'tblTempUsageDetail_20' ) end [2025-02-06 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415887', 'tblTempVendorCDR_20' ) start [2025-02-06 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415887', 'tblTempVendorCDR_20' ) end [2025-02-06 15:14:29] Production.INFO: ProcessCDR(1,14415887,1,1,2) [2025-02-06 15:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:14:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:14:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415887', 'tblTempUsageDetail_20' ) start [2025-02-06 15:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415887', 'tblTempUsageDetail_20' ) end [2025-02-06 15:14:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:14:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:14:34] Production.INFO: ==26666== Releasing lock... [2025-02-06 15:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:14:34] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:15:06 [end_date_ymd] => 2025-02-06 15:15:06 [RateCDR] => 1 ) [2025-02-06 15: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-06 12:15:06' and `end` < '2025-02-06 15: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-06 15:15:22] Production.INFO: count ==4779 [2025-02-06 15:15:24] Production.ERROR: pbx CDR StartTime 2025-02-06 12:15:06 - End Time 2025-02-06 15:15:06 [2025-02-06 15:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415892', 'tblTempUsageDetail_20' ) start [2025-02-06 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415892', 'tblTempUsageDetail_20' ) end [2025-02-06 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415892', 'tblTempVendorCDR_20' ) start [2025-02-06 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415892', 'tblTempVendorCDR_20' ) end [2025-02-06 15:15:25] Production.INFO: ProcessCDR(1,14415892,1,1,2) [2025-02-06 15:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415892', 'tblTempUsageDetail_20' ) start [2025-02-06 15:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415892', 'tblTempUsageDetail_20' ) end [2025-02-06 15:15:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:15:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:15:29] Production.INFO: ==26816== Releasing lock... [2025-02-06 15:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:15:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:16:05 [end_date_ymd] => 2025-02-06 15:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:16:05' and `end` < '2025-02-06 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-06 15:16:23] Production.INFO: count ==4796 [2025-02-06 15:16:25] Production.ERROR: pbx CDR StartTime 2025-02-06 12:16:05 - End Time 2025-02-06 15:16:05 [2025-02-06 15:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415897', 'tblTempUsageDetail_20' ) start [2025-02-06 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415897', 'tblTempUsageDetail_20' ) end [2025-02-06 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415897', 'tblTempVendorCDR_20' ) start [2025-02-06 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415897', 'tblTempVendorCDR_20' ) end [2025-02-06 15:16:25] Production.INFO: ProcessCDR(1,14415897,1,1,2) [2025-02-06 15:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415897', 'tblTempUsageDetail_20' ) start [2025-02-06 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415897', 'tblTempUsageDetail_20' ) end [2025-02-06 15:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:16:30] Production.INFO: ==26893== Releasing lock... [2025-02-06 15:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:16:30] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:17:04 [end_date_ymd] => 2025-02-06 15:17:04 [RateCDR] => 1 ) [2025-02-06 15:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:17:04' and `end` < '2025-02-06 15:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 15:17:33] Production.INFO: count ==4806 [2025-02-06 15:17:35] Production.ERROR: pbx CDR StartTime 2025-02-06 12:17:04 - End Time 2025-02-06 15:17:04 [2025-02-06 15:17:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:17:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415902', 'tblTempUsageDetail_20' ) start [2025-02-06 15:17:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415902', 'tblTempUsageDetail_20' ) end [2025-02-06 15:17:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415902', 'tblTempVendorCDR_20' ) start [2025-02-06 15:17:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415902', 'tblTempVendorCDR_20' ) end [2025-02-06 15:17:35] Production.INFO: ProcessCDR(1,14415902,1,1,2) [2025-02-06 15:17:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:17:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:17:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:17:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:17:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415902', 'tblTempUsageDetail_20' ) start [2025-02-06 15:17:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415902', 'tblTempUsageDetail_20' ) end [2025-02-06 15:17:39] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:17:39] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:17:39] Production.INFO: ==26968== Releasing lock... [2025-02-06 15:17:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:17:39] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:18:05 [end_date_ymd] => 2025-02-06 15:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:18:05' and `end` < '2025-02-06 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-06 15:18:26] Production.INFO: count ==4791 [2025-02-06 15:18:28] Production.ERROR: pbx CDR StartTime 2025-02-06 12:18:05 - End Time 2025-02-06 15:18:05 [2025-02-06 15:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415907', 'tblTempUsageDetail_20' ) start [2025-02-06 15:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415907', 'tblTempUsageDetail_20' ) end [2025-02-06 15:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415907', 'tblTempVendorCDR_20' ) start [2025-02-06 15:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415907', 'tblTempVendorCDR_20' ) end [2025-02-06 15:18:28] Production.INFO: ProcessCDR(1,14415907,1,1,2) [2025-02-06 15:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415907', 'tblTempUsageDetail_20' ) start [2025-02-06 15:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415907', 'tblTempUsageDetail_20' ) end [2025-02-06 15:18:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:18:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:18:33] Production.INFO: ==27044== Releasing lock... [2025-02-06 15:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:18:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:19:04 [end_date_ymd] => 2025-02-06 15:19:04 [RateCDR] => 1 ) [2025-02-06 15:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:19:04' and `end` < '2025-02-06 15:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 15:19:21] Production.INFO: count ==4781 [2025-02-06 15:19:23] Production.ERROR: pbx CDR StartTime 2025-02-06 12:19:04 - End Time 2025-02-06 15:19:04 [2025-02-06 15:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415912', 'tblTempUsageDetail_20' ) start [2025-02-06 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415912', 'tblTempUsageDetail_20' ) end [2025-02-06 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415912', 'tblTempVendorCDR_20' ) start [2025-02-06 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415912', 'tblTempVendorCDR_20' ) end [2025-02-06 15:19:23] Production.INFO: ProcessCDR(1,14415912,1,1,2) [2025-02-06 15:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415912', 'tblTempUsageDetail_20' ) start [2025-02-06 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415912', 'tblTempUsageDetail_20' ) end [2025-02-06 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:19:27] Production.INFO: ==27123== Releasing lock... [2025-02-06 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:19:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:20:05 [end_date_ymd] => 2025-02-06 15:20:05 [RateCDR] => 1 ) [2025-02-06 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:20:05' and `end` < '2025-02-06 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 15:20:25] Production.INFO: count ==4777 [2025-02-06 15:20:27] Production.ERROR: pbx CDR StartTime 2025-02-06 12:20:05 - End Time 2025-02-06 15:20:05 [2025-02-06 15:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415917', 'tblTempUsageDetail_20' ) start [2025-02-06 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415917', 'tblTempUsageDetail_20' ) end [2025-02-06 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415917', 'tblTempVendorCDR_20' ) start [2025-02-06 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415917', 'tblTempVendorCDR_20' ) end [2025-02-06 15:20:27] Production.INFO: ProcessCDR(1,14415917,1,1,2) [2025-02-06 15:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415917', 'tblTempUsageDetail_20' ) start [2025-02-06 15:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415917', 'tblTempUsageDetail_20' ) end [2025-02-06 15:20:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:20:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:20:32] Production.INFO: ==27197== Releasing lock... [2025-02-06 15:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:20:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:21:05 [end_date_ymd] => 2025-02-06 15:21:05 [RateCDR] => 1 ) [2025-02-06 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:21:05' and `end` < '2025-02-06 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 15:21:24] Production.INFO: count ==4771 [2025-02-06 15:21:26] Production.ERROR: pbx CDR StartTime 2025-02-06 12:21:05 - End Time 2025-02-06 15:21:05 [2025-02-06 15:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415923', 'tblTempUsageDetail_20' ) start [2025-02-06 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415923', 'tblTempUsageDetail_20' ) end [2025-02-06 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415923', 'tblTempVendorCDR_20' ) start [2025-02-06 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415923', 'tblTempVendorCDR_20' ) end [2025-02-06 15:21:26] Production.INFO: ProcessCDR(1,14415923,1,1,2) [2025-02-06 15:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415923', 'tblTempUsageDetail_20' ) start [2025-02-06 15:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415923', 'tblTempUsageDetail_20' ) end [2025-02-06 15:21:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:21:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:21:31] Production.INFO: ==27275== Releasing lock... [2025-02-06 15:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:21:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:22:04 [end_date_ymd] => 2025-02-06 15:22:04 [RateCDR] => 1 ) [2025-02-06 15: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-06 12:22:04' and `end` < '2025-02-06 15: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-06 15:22:21] Production.INFO: count ==4772 [2025-02-06 15:22:23] Production.ERROR: pbx CDR StartTime 2025-02-06 12:22:04 - End Time 2025-02-06 15:22:04 [2025-02-06 15:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415928', 'tblTempUsageDetail_20' ) start [2025-02-06 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415928', 'tblTempUsageDetail_20' ) end [2025-02-06 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415928', 'tblTempVendorCDR_20' ) start [2025-02-06 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415928', 'tblTempVendorCDR_20' ) end [2025-02-06 15:22:24] Production.INFO: ProcessCDR(1,14415928,1,1,2) [2025-02-06 15:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415928', 'tblTempUsageDetail_20' ) start [2025-02-06 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415928', 'tblTempUsageDetail_20' ) end [2025-02-06 15:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:22:28] Production.INFO: ==27349== Releasing lock... [2025-02-06 15:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:22:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:23:05 [end_date_ymd] => 2025-02-06 15:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:23:05' and `end` < '2025-02-06 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-06 15:23:21] Production.INFO: count ==4766 [2025-02-06 15:23:23] Production.ERROR: pbx CDR StartTime 2025-02-06 12:23:05 - End Time 2025-02-06 15:23:05 [2025-02-06 15:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415933', 'tblTempUsageDetail_20' ) start [2025-02-06 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415933', 'tblTempUsageDetail_20' ) end [2025-02-06 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415933', 'tblTempVendorCDR_20' ) start [2025-02-06 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415933', 'tblTempVendorCDR_20' ) end [2025-02-06 15:23:23] Production.INFO: ProcessCDR(1,14415933,1,1,2) [2025-02-06 15:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415933', 'tblTempUsageDetail_20' ) start [2025-02-06 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415933', 'tblTempUsageDetail_20' ) end [2025-02-06 15:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:23:28] Production.INFO: ==27429== Releasing lock... [2025-02-06 15:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:23:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:24:05 [end_date_ymd] => 2025-02-06 15:24:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:24:05' and `end` < '2025-02-06 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-06 15:24:21] Production.INFO: count ==4770 [2025-02-06 15:24:23] Production.ERROR: pbx CDR StartTime 2025-02-06 12:24:05 - End Time 2025-02-06 15:24:05 [2025-02-06 15:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415938', 'tblTempUsageDetail_20' ) start [2025-02-06 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415938', 'tblTempUsageDetail_20' ) end [2025-02-06 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415938', 'tblTempVendorCDR_20' ) start [2025-02-06 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415938', 'tblTempVendorCDR_20' ) end [2025-02-06 15:24:23] Production.INFO: ProcessCDR(1,14415938,1,1,2) [2025-02-06 15:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415938', 'tblTempUsageDetail_20' ) start [2025-02-06 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415938', 'tblTempUsageDetail_20' ) end [2025-02-06 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:24:27] Production.INFO: ==27500== Releasing lock... [2025-02-06 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:24:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:25:05 [end_date_ymd] => 2025-02-06 15:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:25:05' and `end` < '2025-02-06 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-06 15:25:35] Production.INFO: count ==4793 [2025-02-06 15:25:37] Production.ERROR: pbx CDR StartTime 2025-02-06 12:25:05 - End Time 2025-02-06 15:25:05 [2025-02-06 15:25:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:25:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415943', 'tblTempUsageDetail_20' ) start [2025-02-06 15:25:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415943', 'tblTempUsageDetail_20' ) end [2025-02-06 15:25:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415943', 'tblTempVendorCDR_20' ) start [2025-02-06 15:25:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415943', 'tblTempVendorCDR_20' ) end [2025-02-06 15:25:37] Production.INFO: ProcessCDR(1,14415943,1,1,2) [2025-02-06 15:25:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:25:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:25:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:25:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:25:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415943', 'tblTempUsageDetail_20' ) start [2025-02-06 15:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415943', 'tblTempUsageDetail_20' ) end [2025-02-06 15:25:42] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:25:42] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:25:42] Production.INFO: ==27617== Releasing lock... [2025-02-06 15:25:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:25:42] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 15:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:26:04 [end_date_ymd] => 2025-02-06 15:26:04 [RateCDR] => 1 ) [2025-02-06 15: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-06 12:26:04' and `end` < '2025-02-06 15: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-06 15:26:26] Production.INFO: count ==4802 [2025-02-06 15:26:28] Production.ERROR: pbx CDR StartTime 2025-02-06 12:26:04 - End Time 2025-02-06 15:26:04 [2025-02-06 15:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415948', 'tblTempUsageDetail_20' ) start [2025-02-06 15:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415948', 'tblTempUsageDetail_20' ) end [2025-02-06 15:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415948', 'tblTempVendorCDR_20' ) start [2025-02-06 15:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415948', 'tblTempVendorCDR_20' ) end [2025-02-06 15:26:28] Production.INFO: ProcessCDR(1,14415948,1,1,2) [2025-02-06 15:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415948', 'tblTempUsageDetail_20' ) start [2025-02-06 15:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415948', 'tblTempUsageDetail_20' ) end [2025-02-06 15:26:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:26:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:26:33] Production.INFO: ==27696== Releasing lock... [2025-02-06 15:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:26:33] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:27:05 [end_date_ymd] => 2025-02-06 15:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:27:05' and `end` < '2025-02-06 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-06 15:27:24] Production.INFO: count ==4810 [2025-02-06 15:27:26] Production.ERROR: pbx CDR StartTime 2025-02-06 12:27:05 - End Time 2025-02-06 15:27:05 [2025-02-06 15:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415953', 'tblTempUsageDetail_20' ) start [2025-02-06 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415953', 'tblTempUsageDetail_20' ) end [2025-02-06 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415953', 'tblTempVendorCDR_20' ) start [2025-02-06 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415953', 'tblTempVendorCDR_20' ) end [2025-02-06 15:27:26] Production.INFO: ProcessCDR(1,14415953,1,1,2) [2025-02-06 15:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415953', 'tblTempUsageDetail_20' ) start [2025-02-06 15:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415953', 'tblTempUsageDetail_20' ) end [2025-02-06 15:27:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:27:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:27:30] Production.INFO: ==27771== Releasing lock... [2025-02-06 15:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:27:30] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:28:05 [end_date_ymd] => 2025-02-06 15:28:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:28:05' and `end` < '2025-02-06 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-06 15:28:34] Production.INFO: count ==4783 [2025-02-06 15:28:36] Production.ERROR: pbx CDR StartTime 2025-02-06 12:28:05 - End Time 2025-02-06 15:28:05 [2025-02-06 15:28:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415958', 'tblTempUsageDetail_20' ) start [2025-02-06 15:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415958', 'tblTempUsageDetail_20' ) end [2025-02-06 15:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415958', 'tblTempVendorCDR_20' ) start [2025-02-06 15:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415958', 'tblTempVendorCDR_20' ) end [2025-02-06 15:28:36] Production.INFO: ProcessCDR(1,14415958,1,1,2) [2025-02-06 15:28:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:28:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:28:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:28:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:28:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415958', 'tblTempUsageDetail_20' ) start [2025-02-06 15:28:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415958', 'tblTempUsageDetail_20' ) end [2025-02-06 15:28:39] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:28:39] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:28:39] Production.INFO: ==27853== Releasing lock... [2025-02-06 15:28:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:28:39] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:29:04 [end_date_ymd] => 2025-02-06 15:29:04 [RateCDR] => 1 ) [2025-02-06 15: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-06 12:29:04' and `end` < '2025-02-06 15: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-06 15:29:24] Production.INFO: count ==4783 [2025-02-06 15:29:26] Production.ERROR: pbx CDR StartTime 2025-02-06 12:29:04 - End Time 2025-02-06 15:29:04 [2025-02-06 15:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415963', 'tblTempUsageDetail_20' ) start [2025-02-06 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415963', 'tblTempUsageDetail_20' ) end [2025-02-06 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415963', 'tblTempVendorCDR_20' ) start [2025-02-06 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415963', 'tblTempVendorCDR_20' ) end [2025-02-06 15:29:26] Production.INFO: ProcessCDR(1,14415963,1,1,2) [2025-02-06 15:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415963', 'tblTempUsageDetail_20' ) start [2025-02-06 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415963', 'tblTempUsageDetail_20' ) end [2025-02-06 15:29:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:29:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:29:31] Production.INFO: ==27928== Releasing lock... [2025-02-06 15:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:29:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:30:06 [end_date_ymd] => 2025-02-06 15:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 12:30:06' and `end` < '2025-02-06 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-06 15:30:26] Production.INFO: count ==4787 [2025-02-06 15:30:27] Production.ERROR: pbx CDR StartTime 2025-02-06 12:30:06 - End Time 2025-02-06 15:30:06 [2025-02-06 15:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415969', 'tblTempUsageDetail_20' ) start [2025-02-06 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415969', 'tblTempUsageDetail_20' ) end [2025-02-06 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415969', 'tblTempVendorCDR_20' ) start [2025-02-06 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415969', 'tblTempVendorCDR_20' ) end [2025-02-06 15:30:28] Production.INFO: ProcessCDR(1,14415969,1,1,2) [2025-02-06 15:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415969', 'tblTempUsageDetail_20' ) start [2025-02-06 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415969', 'tblTempUsageDetail_20' ) end [2025-02-06 15:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:30:32] Production.INFO: ==28005== Releasing lock... [2025-02-06 15:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:30:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:31:05 [end_date_ymd] => 2025-02-06 15:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:31:05' and `end` < '2025-02-06 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-06 15:31:22] Production.INFO: count ==4781 [2025-02-06 15:31:24] Production.ERROR: pbx CDR StartTime 2025-02-06 12:31:05 - End Time 2025-02-06 15:31:05 [2025-02-06 15:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415974', 'tblTempUsageDetail_20' ) start [2025-02-06 15:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415974', 'tblTempUsageDetail_20' ) end [2025-02-06 15:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415974', 'tblTempVendorCDR_20' ) start [2025-02-06 15:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415974', 'tblTempVendorCDR_20' ) end [2025-02-06 15:31:24] Production.INFO: ProcessCDR(1,14415974,1,1,2) [2025-02-06 15:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415974', 'tblTempUsageDetail_20' ) start [2025-02-06 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415974', 'tblTempUsageDetail_20' ) end [2025-02-06 15:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:31:29] Production.INFO: ==28081== Releasing lock... [2025-02-06 15:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:31:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:32:05 [end_date_ymd] => 2025-02-06 15:32:05 [RateCDR] => 1 ) [2025-02-06 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:32:05' and `end` < '2025-02-06 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 15:32:21] Production.INFO: count ==4798 [2025-02-06 15:32:23] Production.ERROR: pbx CDR StartTime 2025-02-06 12:32:05 - End Time 2025-02-06 15:32:05 [2025-02-06 15:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415979', 'tblTempUsageDetail_20' ) start [2025-02-06 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415979', 'tblTempUsageDetail_20' ) end [2025-02-06 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415979', 'tblTempVendorCDR_20' ) start [2025-02-06 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415979', 'tblTempVendorCDR_20' ) end [2025-02-06 15:32:23] Production.INFO: ProcessCDR(1,14415979,1,1,2) [2025-02-06 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415979', 'tblTempUsageDetail_20' ) start [2025-02-06 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415979', 'tblTempUsageDetail_20' ) end [2025-02-06 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:32:28] Production.INFO: ==28165== Releasing lock... [2025-02-06 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:32:28] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:33:06 [end_date_ymd] => 2025-02-06 15:33:06 [RateCDR] => 1 ) [2025-02-06 15: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-06 12:33:06' and `end` < '2025-02-06 15: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-06 15:33:23] Production.INFO: count ==4797 [2025-02-06 15:33:25] Production.ERROR: pbx CDR StartTime 2025-02-06 12:33:06 - End Time 2025-02-06 15:33:06 [2025-02-06 15:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415984', 'tblTempUsageDetail_20' ) start [2025-02-06 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415984', 'tblTempUsageDetail_20' ) end [2025-02-06 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415984', 'tblTempVendorCDR_20' ) start [2025-02-06 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415984', 'tblTempVendorCDR_20' ) end [2025-02-06 15:33:25] Production.INFO: ProcessCDR(1,14415984,1,1,2) [2025-02-06 15:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415984', 'tblTempUsageDetail_20' ) start [2025-02-06 15:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415984', 'tblTempUsageDetail_20' ) end [2025-02-06 15:33:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:33:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:33:30] Production.INFO: ==28237== Releasing lock... [2025-02-06 15:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:33:30] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:34:05 [end_date_ymd] => 2025-02-06 15:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:34:05' and `end` < '2025-02-06 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-06 15:34:20] Production.INFO: count ==4797 [2025-02-06 15:34:22] Production.ERROR: pbx CDR StartTime 2025-02-06 12:34:05 - End Time 2025-02-06 15:34:05 [2025-02-06 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415989', 'tblTempUsageDetail_20' ) start [2025-02-06 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415989', 'tblTempUsageDetail_20' ) end [2025-02-06 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415989', 'tblTempVendorCDR_20' ) start [2025-02-06 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415989', 'tblTempVendorCDR_20' ) end [2025-02-06 15:34:22] Production.INFO: ProcessCDR(1,14415989,1,1,2) [2025-02-06 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415989', 'tblTempUsageDetail_20' ) start [2025-02-06 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415989', 'tblTempUsageDetail_20' ) end [2025-02-06 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:34:26] Production.INFO: ==28325== Releasing lock... [2025-02-06 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:34:26] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:35:05 [end_date_ymd] => 2025-02-06 15:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:35:05' and `end` < '2025-02-06 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-06 15:35:23] Production.INFO: count ==4793 [2025-02-06 15:35:25] Production.ERROR: pbx CDR StartTime 2025-02-06 12:35:05 - End Time 2025-02-06 15:35:05 [2025-02-06 15:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415994', 'tblTempUsageDetail_20' ) start [2025-02-06 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415994', 'tblTempUsageDetail_20' ) end [2025-02-06 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415994', 'tblTempVendorCDR_20' ) start [2025-02-06 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415994', 'tblTempVendorCDR_20' ) end [2025-02-06 15:35:25] Production.INFO: ProcessCDR(1,14415994,1,1,2) [2025-02-06 15:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415994', 'tblTempUsageDetail_20' ) start [2025-02-06 15:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415994', 'tblTempUsageDetail_20' ) end [2025-02-06 15:35:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:35:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:35:30] Production.INFO: ==28403== Releasing lock... [2025-02-06 15:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:35:30] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:36:05 [end_date_ymd] => 2025-02-06 15:36:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:36:05' and `end` < '2025-02-06 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-06 15:36:24] Production.INFO: count ==4789 [2025-02-06 15:36:26] Production.ERROR: pbx CDR StartTime 2025-02-06 12:36:05 - End Time 2025-02-06 15:36:05 [2025-02-06 15:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415999', 'tblTempUsageDetail_20' ) start [2025-02-06 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14415999', 'tblTempUsageDetail_20' ) end [2025-02-06 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415999', 'tblTempVendorCDR_20' ) start [2025-02-06 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14415999', 'tblTempVendorCDR_20' ) end [2025-02-06 15:36:26] Production.INFO: ProcessCDR(1,14415999,1,1,2) [2025-02-06 15:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14415999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14415999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14415999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14415999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415999', 'tblTempUsageDetail_20' ) start [2025-02-06 15:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14415999', 'tblTempUsageDetail_20' ) end [2025-02-06 15:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:36:30] Production.INFO: ==28477== Releasing lock... [2025-02-06 15:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:36:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:37:05 [end_date_ymd] => 2025-02-06 15:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:37:05' and `end` < '2025-02-06 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-06 15:37:27] Production.INFO: count ==4802 [2025-02-06 15:37:30] Production.ERROR: pbx CDR StartTime 2025-02-06 12:37:05 - End Time 2025-02-06 15:37:05 [2025-02-06 15:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416004', 'tblTempUsageDetail_20' ) start [2025-02-06 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416004', 'tblTempUsageDetail_20' ) end [2025-02-06 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416004', 'tblTempVendorCDR_20' ) start [2025-02-06 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416004', 'tblTempVendorCDR_20' ) end [2025-02-06 15:37:30] Production.INFO: ProcessCDR(1,14416004,1,1,2) [2025-02-06 15:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416004', 'tblTempUsageDetail_20' ) start [2025-02-06 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416004', 'tblTempUsageDetail_20' ) end [2025-02-06 15:37:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:37:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:37:35] Production.INFO: ==28556== Releasing lock... [2025-02-06 15:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:37:35] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:38:04 [end_date_ymd] => 2025-02-06 15:38:04 [RateCDR] => 1 ) [2025-02-06 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-06 12:38:04' and `end` < '2025-02-06 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-06 15:38:23] Production.INFO: count ==4805 [2025-02-06 15:38:25] Production.ERROR: pbx CDR StartTime 2025-02-06 12:38:04 - End Time 2025-02-06 15:38:04 [2025-02-06 15:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416009', 'tblTempUsageDetail_20' ) start [2025-02-06 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416009', 'tblTempUsageDetail_20' ) end [2025-02-06 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416009', 'tblTempVendorCDR_20' ) start [2025-02-06 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416009', 'tblTempVendorCDR_20' ) end [2025-02-06 15:38:25] Production.INFO: ProcessCDR(1,14416009,1,1,2) [2025-02-06 15:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416009', 'tblTempUsageDetail_20' ) start [2025-02-06 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416009', 'tblTempUsageDetail_20' ) end [2025-02-06 15:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:38:30] Production.INFO: ==28633== Releasing lock... [2025-02-06 15:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:38:30] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:39:05 [end_date_ymd] => 2025-02-06 15:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:39:05' and `end` < '2025-02-06 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-06 15:39:26] Production.INFO: count ==4784 [2025-02-06 15:39:28] Production.ERROR: pbx CDR StartTime 2025-02-06 12:39:05 - End Time 2025-02-06 15:39:05 [2025-02-06 15:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416014', 'tblTempUsageDetail_20' ) start [2025-02-06 15:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416014', 'tblTempUsageDetail_20' ) end [2025-02-06 15:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416014', 'tblTempVendorCDR_20' ) start [2025-02-06 15:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416014', 'tblTempVendorCDR_20' ) end [2025-02-06 15:39:29] Production.INFO: ProcessCDR(1,14416014,1,1,2) [2025-02-06 15:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:39:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416014', 'tblTempUsageDetail_20' ) start [2025-02-06 15:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416014', 'tblTempUsageDetail_20' ) end [2025-02-06 15:39:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:39:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:39:32] Production.INFO: ==28713== Releasing lock... [2025-02-06 15:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:39:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:40:06 [end_date_ymd] => 2025-02-06 15:40:06 [RateCDR] => 1 ) [2025-02-06 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:40:06' and `end` < '2025-02-06 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 15:40:25] Production.INFO: count ==4755 [2025-02-06 15:40:28] Production.ERROR: pbx CDR StartTime 2025-02-06 12:40:06 - End Time 2025-02-06 15:40:06 [2025-02-06 15:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416020', 'tblTempUsageDetail_20' ) start [2025-02-06 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416020', 'tblTempUsageDetail_20' ) end [2025-02-06 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416020', 'tblTempVendorCDR_20' ) start [2025-02-06 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416020', 'tblTempVendorCDR_20' ) end [2025-02-06 15:40:28] Production.INFO: ProcessCDR(1,14416020,1,1,2) [2025-02-06 15:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416020', 'tblTempUsageDetail_20' ) start [2025-02-06 15:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416020', 'tblTempUsageDetail_20' ) end [2025-02-06 15:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:40:32] Production.INFO: ==28838== Releasing lock... [2025-02-06 15:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:40:32] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:41:05 [end_date_ymd] => 2025-02-06 15:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:41:05' and `end` < '2025-02-06 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-06 15:41:22] Production.INFO: count ==4771 [2025-02-06 15:41:24] Production.ERROR: pbx CDR StartTime 2025-02-06 12:41:05 - End Time 2025-02-06 15:41:05 [2025-02-06 15:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416025', 'tblTempUsageDetail_20' ) start [2025-02-06 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416025', 'tblTempUsageDetail_20' ) end [2025-02-06 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416025', 'tblTempVendorCDR_20' ) start [2025-02-06 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416025', 'tblTempVendorCDR_20' ) end [2025-02-06 15:41:24] Production.INFO: ProcessCDR(1,14416025,1,1,2) [2025-02-06 15:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416025', 'tblTempUsageDetail_20' ) start [2025-02-06 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416025', 'tblTempUsageDetail_20' ) end [2025-02-06 15:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:41:29] Production.INFO: ==28920== Releasing lock... [2025-02-06 15:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:41:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:42:06 [end_date_ymd] => 2025-02-06 15:42:06 [RateCDR] => 1 ) [2025-02-06 15:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:42:06' and `end` < '2025-02-06 15:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 15:42:20] Production.INFO: count ==4772 [2025-02-06 15:42:22] Production.ERROR: pbx CDR StartTime 2025-02-06 12:42:06 - End Time 2025-02-06 15:42:06 [2025-02-06 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416030', 'tblTempUsageDetail_20' ) start [2025-02-06 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416030', 'tblTempUsageDetail_20' ) end [2025-02-06 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416030', 'tblTempVendorCDR_20' ) start [2025-02-06 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416030', 'tblTempVendorCDR_20' ) end [2025-02-06 15:42:22] Production.INFO: ProcessCDR(1,14416030,1,1,2) [2025-02-06 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416030', 'tblTempUsageDetail_20' ) start [2025-02-06 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416030', 'tblTempUsageDetail_20' ) end [2025-02-06 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:42:27] Production.INFO: ==28991== Releasing lock... [2025-02-06 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:42:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:43:05 [end_date_ymd] => 2025-02-06 15:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:43:05' and `end` < '2025-02-06 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-06 15:43:34] Production.INFO: count ==4772 [2025-02-06 15:43:36] Production.ERROR: pbx CDR StartTime 2025-02-06 12:43:05 - End Time 2025-02-06 15:43:05 [2025-02-06 15:43:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:43:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416035', 'tblTempUsageDetail_20' ) start [2025-02-06 15:43:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416035', 'tblTempUsageDetail_20' ) end [2025-02-06 15:43:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416035', 'tblTempVendorCDR_20' ) start [2025-02-06 15:43:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416035', 'tblTempVendorCDR_20' ) end [2025-02-06 15:43:36] Production.INFO: ProcessCDR(1,14416035,1,1,2) [2025-02-06 15:43:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:43:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:43:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:43:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:43:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416035', 'tblTempUsageDetail_20' ) start [2025-02-06 15:43:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416035', 'tblTempUsageDetail_20' ) end [2025-02-06 15:43:41] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:43:41] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:43:41] Production.INFO: ==29068== Releasing lock... [2025-02-06 15:43:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:43:41] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:44:06 [end_date_ymd] => 2025-02-06 15:44:06 [RateCDR] => 1 ) [2025-02-06 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-06 12:44:06' and `end` < '2025-02-06 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-06 15:44:30] Production.INFO: count ==4768 [2025-02-06 15:44:32] Production.ERROR: pbx CDR StartTime 2025-02-06 12:44:06 - End Time 2025-02-06 15:44:06 [2025-02-06 15:44:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416040', 'tblTempUsageDetail_20' ) start [2025-02-06 15:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416040', 'tblTempUsageDetail_20' ) end [2025-02-06 15:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416040', 'tblTempVendorCDR_20' ) start [2025-02-06 15:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416040', 'tblTempVendorCDR_20' ) end [2025-02-06 15:44:32] Production.INFO: ProcessCDR(1,14416040,1,1,2) [2025-02-06 15:44:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:44:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:44:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:44:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416040', 'tblTempUsageDetail_20' ) start [2025-02-06 15:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416040', 'tblTempUsageDetail_20' ) end [2025-02-06 15:44:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:44:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:44:37] Production.INFO: ==29145== Releasing lock... [2025-02-06 15:44:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:44:37] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:45:05 [end_date_ymd] => 2025-02-06 15:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:45:05' and `end` < '2025-02-06 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-06 15:45:29] Production.INFO: count ==4747 [2025-02-06 15:45:31] Production.ERROR: pbx CDR StartTime 2025-02-06 12:45:05 - End Time 2025-02-06 15:45:05 [2025-02-06 15:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416045', 'tblTempUsageDetail_20' ) start [2025-02-06 15:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416045', 'tblTempUsageDetail_20' ) end [2025-02-06 15:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416045', 'tblTempVendorCDR_20' ) start [2025-02-06 15:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416045', 'tblTempVendorCDR_20' ) end [2025-02-06 15:45:31] Production.INFO: ProcessCDR(1,14416045,1,1,2) [2025-02-06 15:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416045', 'tblTempUsageDetail_20' ) start [2025-02-06 15:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416045', 'tblTempUsageDetail_20' ) end [2025-02-06 15:45:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:45:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:45:36] Production.INFO: ==29225== Releasing lock... [2025-02-06 15:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:45:36] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:46:05 [end_date_ymd] => 2025-02-06 15:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:46:05' and `end` < '2025-02-06 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-06 15:46:29] Production.INFO: count ==4767 [2025-02-06 15:46:31] Production.ERROR: pbx CDR StartTime 2025-02-06 12:46:05 - End Time 2025-02-06 15:46:05 [2025-02-06 15:46:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416050', 'tblTempUsageDetail_20' ) start [2025-02-06 15:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416050', 'tblTempUsageDetail_20' ) end [2025-02-06 15:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416050', 'tblTempVendorCDR_20' ) start [2025-02-06 15:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416050', 'tblTempVendorCDR_20' ) end [2025-02-06 15:46:31] Production.INFO: ProcessCDR(1,14416050,1,1,2) [2025-02-06 15:46:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:46:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:46:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416050', 'tblTempUsageDetail_20' ) start [2025-02-06 15:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416050', 'tblTempUsageDetail_20' ) end [2025-02-06 15:46:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:46:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:46:35] Production.INFO: ==29302== Releasing lock... [2025-02-06 15:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:46:35] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:47:05 [end_date_ymd] => 2025-02-06 15:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:47:05' and `end` < '2025-02-06 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-06 15:47:30] Production.INFO: count ==4776 [2025-02-06 15:47:32] Production.ERROR: pbx CDR StartTime 2025-02-06 12:47:05 - End Time 2025-02-06 15:47:05 [2025-02-06 15:47:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416055', 'tblTempUsageDetail_20' ) start [2025-02-06 15:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416055', 'tblTempUsageDetail_20' ) end [2025-02-06 15:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416055', 'tblTempVendorCDR_20' ) start [2025-02-06 15:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416055', 'tblTempVendorCDR_20' ) end [2025-02-06 15:47:32] Production.INFO: ProcessCDR(1,14416055,1,1,2) [2025-02-06 15:47:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:47:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:47:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:47:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:47:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416055', 'tblTempUsageDetail_20' ) start [2025-02-06 15:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416055', 'tblTempUsageDetail_20' ) end [2025-02-06 15:47:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:47:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:47:37] Production.INFO: ==29374== Releasing lock... [2025-02-06 15:47:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:47:37] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:48:05 [end_date_ymd] => 2025-02-06 15:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:48:05' and `end` < '2025-02-06 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-06 15:48:28] Production.INFO: count ==4764 [2025-02-06 15:48:30] Production.ERROR: pbx CDR StartTime 2025-02-06 12:48:05 - End Time 2025-02-06 15:48:05 [2025-02-06 15:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416060', 'tblTempUsageDetail_20' ) start [2025-02-06 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416060', 'tblTempUsageDetail_20' ) end [2025-02-06 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416060', 'tblTempVendorCDR_20' ) start [2025-02-06 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416060', 'tblTempVendorCDR_20' ) end [2025-02-06 15:48:30] Production.INFO: ProcessCDR(1,14416060,1,1,2) [2025-02-06 15:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416060', 'tblTempUsageDetail_20' ) start [2025-02-06 15:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416060', 'tblTempUsageDetail_20' ) end [2025-02-06 15:48:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:48:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:48:35] Production.INFO: ==29449== Releasing lock... [2025-02-06 15:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:48:35] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:49:05 [end_date_ymd] => 2025-02-06 15:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:49:05' and `end` < '2025-02-06 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-06 15:49:24] Production.INFO: count ==4747 [2025-02-06 15:49:26] Production.ERROR: pbx CDR StartTime 2025-02-06 12:49:05 - End Time 2025-02-06 15:49:05 [2025-02-06 15:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416065', 'tblTempUsageDetail_20' ) start [2025-02-06 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416065', 'tblTempUsageDetail_20' ) end [2025-02-06 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416065', 'tblTempVendorCDR_20' ) start [2025-02-06 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416065', 'tblTempVendorCDR_20' ) end [2025-02-06 15:49:26] Production.INFO: ProcessCDR(1,14416065,1,1,2) [2025-02-06 15:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416065', 'tblTempUsageDetail_20' ) start [2025-02-06 15:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416065', 'tblTempUsageDetail_20' ) end [2025-02-06 15:49:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:49:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:49:31] Production.INFO: ==29524== Releasing lock... [2025-02-06 15:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:49:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:50:06 [end_date_ymd] => 2025-02-06 15:50:06 [RateCDR] => 1 ) [2025-02-06 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 12:50:06' and `end` < '2025-02-06 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 15:50:26] Production.INFO: count ==4742 [2025-02-06 15:50:28] Production.ERROR: pbx CDR StartTime 2025-02-06 12:50:06 - End Time 2025-02-06 15:50:06 [2025-02-06 15:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416070', 'tblTempUsageDetail_20' ) start [2025-02-06 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416070', 'tblTempUsageDetail_20' ) end [2025-02-06 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416070', 'tblTempVendorCDR_20' ) start [2025-02-06 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416070', 'tblTempVendorCDR_20' ) end [2025-02-06 15:50:28] Production.INFO: ProcessCDR(1,14416070,1,1,2) [2025-02-06 15:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416070', 'tblTempUsageDetail_20' ) start [2025-02-06 15:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416070', 'tblTempUsageDetail_20' ) end [2025-02-06 15:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:50:33] Production.INFO: ==29598== Releasing lock... [2025-02-06 15:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:50:33] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:51:06 [end_date_ymd] => 2025-02-06 15:51:06 [RateCDR] => 1 ) [2025-02-06 15: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-06 12:51:06' and `end` < '2025-02-06 15: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-06 15:51:25] Production.INFO: count ==4776 [2025-02-06 15:51:27] Production.ERROR: pbx CDR StartTime 2025-02-06 12:51:06 - End Time 2025-02-06 15:51:06 [2025-02-06 15:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416076', 'tblTempUsageDetail_20' ) start [2025-02-06 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416076', 'tblTempUsageDetail_20' ) end [2025-02-06 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416076', 'tblTempVendorCDR_20' ) start [2025-02-06 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416076', 'tblTempVendorCDR_20' ) end [2025-02-06 15:51:27] Production.INFO: ProcessCDR(1,14416076,1,1,2) [2025-02-06 15:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416076', 'tblTempUsageDetail_20' ) start [2025-02-06 15:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416076', 'tblTempUsageDetail_20' ) end [2025-02-06 15:51:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:51:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:51:32] Production.INFO: ==29684== Releasing lock... [2025-02-06 15:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:51:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:52:05 [end_date_ymd] => 2025-02-06 15:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:52:05' and `end` < '2025-02-06 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-06 15:52:25] Production.INFO: count ==4803 [2025-02-06 15:52:27] Production.ERROR: pbx CDR StartTime 2025-02-06 12:52:05 - End Time 2025-02-06 15:52:05 [2025-02-06 15:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416081', 'tblTempUsageDetail_20' ) start [2025-02-06 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416081', 'tblTempUsageDetail_20' ) end [2025-02-06 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416081', 'tblTempVendorCDR_20' ) start [2025-02-06 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416081', 'tblTempVendorCDR_20' ) end [2025-02-06 15:52:27] Production.INFO: ProcessCDR(1,14416081,1,1,2) [2025-02-06 15:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416081', 'tblTempUsageDetail_20' ) start [2025-02-06 15:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416081', 'tblTempUsageDetail_20' ) end [2025-02-06 15:52:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:52:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:52:32] Production.INFO: ==29761== Releasing lock... [2025-02-06 15:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:52:32] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:53:05 [end_date_ymd] => 2025-02-06 15:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:53:05' and `end` < '2025-02-06 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-06 15:53:25] Production.INFO: count ==4807 [2025-02-06 15:53:27] Production.ERROR: pbx CDR StartTime 2025-02-06 12:53:05 - End Time 2025-02-06 15:53:05 [2025-02-06 15:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416086', 'tblTempUsageDetail_20' ) start [2025-02-06 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416086', 'tblTempUsageDetail_20' ) end [2025-02-06 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416086', 'tblTempVendorCDR_20' ) start [2025-02-06 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416086', 'tblTempVendorCDR_20' ) end [2025-02-06 15:53:27] Production.INFO: ProcessCDR(1,14416086,1,1,2) [2025-02-06 15:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416086', 'tblTempUsageDetail_20' ) start [2025-02-06 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416086', 'tblTempUsageDetail_20' ) end [2025-02-06 15:53:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:53:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:53:32] Production.INFO: ==29838== Releasing lock... [2025-02-06 15:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:53:32] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:54:05 [end_date_ymd] => 2025-02-06 15:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:54:05' and `end` < '2025-02-06 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-06 15:54:24] Production.INFO: count ==4815 [2025-02-06 15:54:26] Production.ERROR: pbx CDR StartTime 2025-02-06 12:54:05 - End Time 2025-02-06 15:54:05 [2025-02-06 15:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416091', 'tblTempUsageDetail_20' ) start [2025-02-06 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416091', 'tblTempUsageDetail_20' ) end [2025-02-06 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416091', 'tblTempVendorCDR_20' ) start [2025-02-06 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416091', 'tblTempVendorCDR_20' ) end [2025-02-06 15:54:26] Production.INFO: ProcessCDR(1,14416091,1,1,2) [2025-02-06 15:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416091', 'tblTempUsageDetail_20' ) start [2025-02-06 15:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416091', 'tblTempUsageDetail_20' ) end [2025-02-06 15:54:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:54:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:54:31] Production.INFO: ==29912== Releasing lock... [2025-02-06 15:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:54:31] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:55:06 [end_date_ymd] => 2025-02-06 15:55:06 [RateCDR] => 1 ) [2025-02-06 15: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-06 12:55:06' and `end` < '2025-02-06 15: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-06 15:55:26] Production.INFO: count ==4826 [2025-02-06 15:55:28] Production.ERROR: pbx CDR StartTime 2025-02-06 12:55:06 - End Time 2025-02-06 15:55:06 [2025-02-06 15:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416096', 'tblTempUsageDetail_20' ) start [2025-02-06 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416096', 'tblTempUsageDetail_20' ) end [2025-02-06 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416096', 'tblTempVendorCDR_20' ) start [2025-02-06 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416096', 'tblTempVendorCDR_20' ) end [2025-02-06 15:55:28] Production.INFO: ProcessCDR(1,14416096,1,1,2) [2025-02-06 15:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416096', 'tblTempUsageDetail_20' ) start [2025-02-06 15:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416096', 'tblTempUsageDetail_20' ) end [2025-02-06 15:55:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:55:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:55:34] Production.INFO: ==29984== Releasing lock... [2025-02-06 15:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:55:34] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:56:05 [end_date_ymd] => 2025-02-06 15:56:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:56:05' and `end` < '2025-02-06 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-06 15:56:19] Production.INFO: count ==4811 [2025-02-06 15:56:22] Production.ERROR: pbx CDR StartTime 2025-02-06 12:56:05 - End Time 2025-02-06 15:56:05 [2025-02-06 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416101', 'tblTempUsageDetail_20' ) start [2025-02-06 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416101', 'tblTempUsageDetail_20' ) end [2025-02-06 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416101', 'tblTempVendorCDR_20' ) start [2025-02-06 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416101', 'tblTempVendorCDR_20' ) end [2025-02-06 15:56:22] Production.INFO: ProcessCDR(1,14416101,1,1,2) [2025-02-06 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416101', 'tblTempUsageDetail_20' ) start [2025-02-06 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416101', 'tblTempUsageDetail_20' ) end [2025-02-06 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:56:27] Production.INFO: ==30102== Releasing lock... [2025-02-06 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:56:27] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:57:05 [end_date_ymd] => 2025-02-06 15:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:57:05' and `end` < '2025-02-06 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-06 15:57:20] Production.INFO: count ==4808 [2025-02-06 15:57:22] Production.ERROR: pbx CDR StartTime 2025-02-06 12:57:05 - End Time 2025-02-06 15:57:05 [2025-02-06 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416106', 'tblTempUsageDetail_20' ) start [2025-02-06 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416106', 'tblTempUsageDetail_20' ) end [2025-02-06 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416106', 'tblTempVendorCDR_20' ) start [2025-02-06 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416106', 'tblTempVendorCDR_20' ) end [2025-02-06 15:57:22] Production.INFO: ProcessCDR(1,14416106,1,1,2) [2025-02-06 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416106', 'tblTempUsageDetail_20' ) start [2025-02-06 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416106', 'tblTempUsageDetail_20' ) end [2025-02-06 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:57:27] Production.INFO: ==30179== Releasing lock... [2025-02-06 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:57:27] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:58:05 [end_date_ymd] => 2025-02-06 15:58:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:58:05' and `end` < '2025-02-06 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-06 15:58:19] Production.INFO: count ==4802 [2025-02-06 15:58:21] Production.ERROR: pbx CDR StartTime 2025-02-06 12:58:05 - End Time 2025-02-06 15:58:05 [2025-02-06 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416111', 'tblTempUsageDetail_20' ) start [2025-02-06 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416111', 'tblTempUsageDetail_20' ) end [2025-02-06 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416111', 'tblTempVendorCDR_20' ) start [2025-02-06 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416111', 'tblTempVendorCDR_20' ) end [2025-02-06 15:58:21] Production.INFO: ProcessCDR(1,14416111,1,1,2) [2025-02-06 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416111', 'tblTempUsageDetail_20' ) start [2025-02-06 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416111', 'tblTempUsageDetail_20' ) end [2025-02-06 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:58:26] Production.INFO: ==30254== Releasing lock... [2025-02-06 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:58:26] Production.INFO: 64 MB #Memory Used# [2025-02-06 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 12:59:05 [end_date_ymd] => 2025-02-06 15:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 12:59:05' and `end` < '2025-02-06 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-06 15:59:27] Production.INFO: count ==4775 [2025-02-06 15:59:29] Production.ERROR: pbx CDR StartTime 2025-02-06 12:59:05 - End Time 2025-02-06 15:59:05 [2025-02-06 15:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416116', 'tblTempUsageDetail_20' ) start [2025-02-06 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416116', 'tblTempUsageDetail_20' ) end [2025-02-06 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416116', 'tblTempVendorCDR_20' ) start [2025-02-06 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416116', 'tblTempVendorCDR_20' ) end [2025-02-06 15:59:29] Production.INFO: ProcessCDR(1,14416116,1,1,2) [2025-02-06 15:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 15:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 15:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416116', 'tblTempUsageDetail_20' ) start [2025-02-06 15:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416116', 'tblTempUsageDetail_20' ) end [2025-02-06 15:59:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 15:59:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 15:59:34] Production.INFO: ==30325== Releasing lock... [2025-02-06 15:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 15:59:34] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:00:06 [end_date_ymd] => 2025-02-06 16:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 13:00:06' and `end` < '2025-02-06 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-06 16:00:27] Production.INFO: count ==4765 [2025-02-06 16:00:29] Production.ERROR: pbx CDR StartTime 2025-02-06 13:00:06 - End Time 2025-02-06 16:00:06 [2025-02-06 16:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416122', 'tblTempUsageDetail_20' ) start [2025-02-06 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416122', 'tblTempUsageDetail_20' ) end [2025-02-06 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416122', 'tblTempVendorCDR_20' ) start [2025-02-06 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416122', 'tblTempVendorCDR_20' ) end [2025-02-06 16:00:29] Production.INFO: ProcessCDR(1,14416122,1,1,2) [2025-02-06 16:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416122', 'tblTempUsageDetail_20' ) start [2025-02-06 16:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416122', 'tblTempUsageDetail_20' ) end [2025-02-06 16:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:00:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:00:32] Production.INFO: ==30402== Releasing lock... [2025-02-06 16:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:00:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:01:05 [end_date_ymd] => 2025-02-06 16:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:01:05' and `end` < '2025-02-06 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-06 16:01:32] Production.INFO: count ==4788 [2025-02-06 16:01:34] Production.ERROR: pbx CDR StartTime 2025-02-06 13:01:05 - End Time 2025-02-06 16:01:05 [2025-02-06 16:01:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416127', 'tblTempUsageDetail_20' ) start [2025-02-06 16:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416127', 'tblTempUsageDetail_20' ) end [2025-02-06 16:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416127', 'tblTempVendorCDR_20' ) start [2025-02-06 16:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416127', 'tblTempVendorCDR_20' ) end [2025-02-06 16:01:34] Production.INFO: ProcessCDR(1,14416127,1,1,2) [2025-02-06 16:01:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:01:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:01:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:01:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416127', 'tblTempUsageDetail_20' ) start [2025-02-06 16:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416127', 'tblTempUsageDetail_20' ) end [2025-02-06 16:01:39] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:01:39] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:01:39] Production.INFO: ==30489== Releasing lock... [2025-02-06 16:01:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:01:39] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:02:06 [end_date_ymd] => 2025-02-06 16:02:06 [RateCDR] => 1 ) [2025-02-06 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-06 13:02:06' and `end` < '2025-02-06 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-06 16:02:27] Production.INFO: count ==4766 [2025-02-06 16:02:29] Production.ERROR: pbx CDR StartTime 2025-02-06 13:02:06 - End Time 2025-02-06 16:02:06 [2025-02-06 16:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416132', 'tblTempUsageDetail_20' ) start [2025-02-06 16:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416132', 'tblTempUsageDetail_20' ) end [2025-02-06 16:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416132', 'tblTempVendorCDR_20' ) start [2025-02-06 16:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416132', 'tblTempVendorCDR_20' ) end [2025-02-06 16:02:29] Production.INFO: ProcessCDR(1,14416132,1,1,2) [2025-02-06 16:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416132', 'tblTempUsageDetail_20' ) start [2025-02-06 16:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416132', 'tblTempUsageDetail_20' ) end [2025-02-06 16:02:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:02:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:02:33] Production.INFO: ==30561== Releasing lock... [2025-02-06 16:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:02:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:03:06 [end_date_ymd] => 2025-02-06 16:03:06 [RateCDR] => 1 ) [2025-02-06 16:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:03:06' and `end` < '2025-02-06 16:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:03:34] Production.INFO: count ==4740 [2025-02-06 16:03:36] Production.ERROR: pbx CDR StartTime 2025-02-06 13:03:06 - End Time 2025-02-06 16:03:06 [2025-02-06 16:03:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416137', 'tblTempUsageDetail_20' ) start [2025-02-06 16:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416137', 'tblTempUsageDetail_20' ) end [2025-02-06 16:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416137', 'tblTempVendorCDR_20' ) start [2025-02-06 16:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416137', 'tblTempVendorCDR_20' ) end [2025-02-06 16:03:36] Production.INFO: ProcessCDR(1,14416137,1,1,2) [2025-02-06 16:03:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:03:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:03:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416137', 'tblTempUsageDetail_20' ) start [2025-02-06 16:03:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416137', 'tblTempUsageDetail_20' ) end [2025-02-06 16:03:42] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:03:42] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:03:42] Production.INFO: ==30636== Releasing lock... [2025-02-06 16:03:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:03:42] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:04:06 [end_date_ymd] => 2025-02-06 16:04:06 [RateCDR] => 1 ) [2025-02-06 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:04:06' and `end` < '2025-02-06 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:04:23] Production.INFO: count ==4741 [2025-02-06 16:04:25] Production.ERROR: pbx CDR StartTime 2025-02-06 13:04:06 - End Time 2025-02-06 16:04:06 [2025-02-06 16:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416142', 'tblTempUsageDetail_20' ) start [2025-02-06 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416142', 'tblTempUsageDetail_20' ) end [2025-02-06 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416142', 'tblTempVendorCDR_20' ) start [2025-02-06 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416142', 'tblTempVendorCDR_20' ) end [2025-02-06 16:04:25] Production.INFO: ProcessCDR(1,14416142,1,1,2) [2025-02-06 16:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416142', 'tblTempUsageDetail_20' ) start [2025-02-06 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416142', 'tblTempUsageDetail_20' ) end [2025-02-06 16:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:04:30] Production.INFO: ==30714== Releasing lock... [2025-02-06 16:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:04:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:05:05 [end_date_ymd] => 2025-02-06 16:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:05:05' and `end` < '2025-02-06 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-06 16:05:20] Production.INFO: count ==4742 [2025-02-06 16:05:22] Production.ERROR: pbx CDR StartTime 2025-02-06 13:05:05 - End Time 2025-02-06 16:05:05 [2025-02-06 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416147', 'tblTempUsageDetail_20' ) start [2025-02-06 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416147', 'tblTempUsageDetail_20' ) end [2025-02-06 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416147', 'tblTempVendorCDR_20' ) start [2025-02-06 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416147', 'tblTempVendorCDR_20' ) end [2025-02-06 16:05:22] Production.INFO: ProcessCDR(1,14416147,1,1,2) [2025-02-06 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416147', 'tblTempUsageDetail_20' ) start [2025-02-06 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416147', 'tblTempUsageDetail_20' ) end [2025-02-06 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:05:27] Production.INFO: ==30790== Releasing lock... [2025-02-06 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:05:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:06:06 [end_date_ymd] => 2025-02-06 16:06:06 [RateCDR] => 1 ) [2025-02-06 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:06:06' and `end` < '2025-02-06 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:06:23] Production.INFO: count ==4748 [2025-02-06 16:06:25] Production.ERROR: pbx CDR StartTime 2025-02-06 13:06:06 - End Time 2025-02-06 16:06:06 [2025-02-06 16:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416152', 'tblTempUsageDetail_20' ) start [2025-02-06 16:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416152', 'tblTempUsageDetail_20' ) end [2025-02-06 16:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416152', 'tblTempVendorCDR_20' ) start [2025-02-06 16:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416152', 'tblTempVendorCDR_20' ) end [2025-02-06 16:06:25] Production.INFO: ProcessCDR(1,14416152,1,1,2) [2025-02-06 16:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416152', 'tblTempUsageDetail_20' ) start [2025-02-06 16:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416152', 'tblTempUsageDetail_20' ) end [2025-02-06 16:06:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:06:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:06:30] Production.INFO: ==30862== Releasing lock... [2025-02-06 16:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:06:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:07:05 [end_date_ymd] => 2025-02-06 16:07:05 [RateCDR] => 1 ) [2025-02-06 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:07:05' and `end` < '2025-02-06 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:07:34] Production.INFO: count ==4726 [2025-02-06 16:07:36] Production.ERROR: pbx CDR StartTime 2025-02-06 13:07:05 - End Time 2025-02-06 16:07:05 [2025-02-06 16:07:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416157', 'tblTempUsageDetail_20' ) start [2025-02-06 16:07:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416157', 'tblTempUsageDetail_20' ) end [2025-02-06 16:07:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416157', 'tblTempVendorCDR_20' ) start [2025-02-06 16:07:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416157', 'tblTempVendorCDR_20' ) end [2025-02-06 16:07:37] Production.INFO: ProcessCDR(1,14416157,1,1,2) [2025-02-06 16:07:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:07:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:07:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:07:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:07:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416157', 'tblTempUsageDetail_20' ) start [2025-02-06 16:07:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416157', 'tblTempUsageDetail_20' ) end [2025-02-06 16:07:42] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:07:42] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:07:42] Production.INFO: ==30937== Releasing lock... [2025-02-06 16:07:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:07:42] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:08:05 [end_date_ymd] => 2025-02-06 16:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:08:05' and `end` < '2025-02-06 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-06 16:08:29] Production.INFO: count ==4722 [2025-02-06 16:08:31] Production.ERROR: pbx CDR StartTime 2025-02-06 13:08:05 - End Time 2025-02-06 16:08:05 [2025-02-06 16:08:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416162', 'tblTempUsageDetail_20' ) start [2025-02-06 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416162', 'tblTempUsageDetail_20' ) end [2025-02-06 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416162', 'tblTempVendorCDR_20' ) start [2025-02-06 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416162', 'tblTempVendorCDR_20' ) end [2025-02-06 16:08:31] Production.INFO: ProcessCDR(1,14416162,1,1,2) [2025-02-06 16:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:08:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:08:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:08:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416162', 'tblTempUsageDetail_20' ) start [2025-02-06 16:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416162', 'tblTempUsageDetail_20' ) end [2025-02-06 16:08:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:08:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:08:36] Production.INFO: ==31010== Releasing lock... [2025-02-06 16:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:08:36] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:09:05 [end_date_ymd] => 2025-02-06 16:09:05 [RateCDR] => 1 ) [2025-02-06 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:09:05' and `end` < '2025-02-06 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:09:22] Production.INFO: count ==4720 [2025-02-06 16:09:24] Production.ERROR: pbx CDR StartTime 2025-02-06 13:09:05 - End Time 2025-02-06 16:09:05 [2025-02-06 16:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416167', 'tblTempUsageDetail_20' ) start [2025-02-06 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416167', 'tblTempUsageDetail_20' ) end [2025-02-06 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416167', 'tblTempVendorCDR_20' ) start [2025-02-06 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416167', 'tblTempVendorCDR_20' ) end [2025-02-06 16:09:24] Production.INFO: ProcessCDR(1,14416167,1,1,2) [2025-02-06 16:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416167', 'tblTempUsageDetail_20' ) start [2025-02-06 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416167', 'tblTempUsageDetail_20' ) end [2025-02-06 16:09:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:09:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:09:29] Production.INFO: ==31088== Releasing lock... [2025-02-06 16:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:09:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:10:06 [end_date_ymd] => 2025-02-06 16:10:06 [RateCDR] => 1 ) [2025-02-06 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:10:06' and `end` < '2025-02-06 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:10:20] Production.INFO: count ==4717 [2025-02-06 16:10:22] Production.ERROR: pbx CDR StartTime 2025-02-06 13:10:06 - End Time 2025-02-06 16:10:06 [2025-02-06 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416173', 'tblTempUsageDetail_20' ) start [2025-02-06 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416173', 'tblTempUsageDetail_20' ) end [2025-02-06 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416173', 'tblTempVendorCDR_20' ) start [2025-02-06 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416173', 'tblTempVendorCDR_20' ) end [2025-02-06 16:10:22] Production.INFO: ProcessCDR(1,14416173,1,1,2) [2025-02-06 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416173', 'tblTempUsageDetail_20' ) start [2025-02-06 16:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416173', 'tblTempUsageDetail_20' ) end [2025-02-06 16:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:10:27] Production.INFO: ==31167== Releasing lock... [2025-02-06 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:10:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:11:05 [end_date_ymd] => 2025-02-06 16:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:11:05' and `end` < '2025-02-06 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-06 16:11:23] Production.INFO: count ==4748 [2025-02-06 16:11:25] Production.ERROR: pbx CDR StartTime 2025-02-06 13:11:05 - End Time 2025-02-06 16:11:05 [2025-02-06 16:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416178', 'tblTempUsageDetail_20' ) start [2025-02-06 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416178', 'tblTempUsageDetail_20' ) end [2025-02-06 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416178', 'tblTempVendorCDR_20' ) start [2025-02-06 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416178', 'tblTempVendorCDR_20' ) end [2025-02-06 16:11:25] Production.INFO: ProcessCDR(1,14416178,1,1,2) [2025-02-06 16:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416178', 'tblTempUsageDetail_20' ) start [2025-02-06 16:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416178', 'tblTempUsageDetail_20' ) end [2025-02-06 16:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:11:30] Production.INFO: ==31285== Releasing lock... [2025-02-06 16:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:11:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:12:05 [end_date_ymd] => 2025-02-06 16:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:12:05' and `end` < '2025-02-06 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-06 16:12:20] Production.INFO: count ==4755 [2025-02-06 16:12:22] Production.ERROR: pbx CDR StartTime 2025-02-06 13:12:05 - End Time 2025-02-06 16:12:05 [2025-02-06 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416183', 'tblTempUsageDetail_20' ) start [2025-02-06 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416183', 'tblTempUsageDetail_20' ) end [2025-02-06 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416183', 'tblTempVendorCDR_20' ) start [2025-02-06 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416183', 'tblTempVendorCDR_20' ) end [2025-02-06 16:12:22] Production.INFO: ProcessCDR(1,14416183,1,1,2) [2025-02-06 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416183', 'tblTempUsageDetail_20' ) start [2025-02-06 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416183', 'tblTempUsageDetail_20' ) end [2025-02-06 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:12:27] Production.INFO: ==31356== Releasing lock... [2025-02-06 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:12:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:13:06 [end_date_ymd] => 2025-02-06 16:13:06 [RateCDR] => 1 ) [2025-02-06 16:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:13:06' and `end` < '2025-02-06 16:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:13:23] Production.INFO: count ==4763 [2025-02-06 16:13:26] Production.ERROR: pbx CDR StartTime 2025-02-06 13:13:06 - End Time 2025-02-06 16:13:06 [2025-02-06 16:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416188', 'tblTempUsageDetail_20' ) start [2025-02-06 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416188', 'tblTempUsageDetail_20' ) end [2025-02-06 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416188', 'tblTempVendorCDR_20' ) start [2025-02-06 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416188', 'tblTempVendorCDR_20' ) end [2025-02-06 16:13:26] Production.INFO: ProcessCDR(1,14416188,1,1,2) [2025-02-06 16:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416188', 'tblTempUsageDetail_20' ) start [2025-02-06 16:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416188', 'tblTempUsageDetail_20' ) end [2025-02-06 16:13:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:13:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:13:32] Production.INFO: ==31429== Releasing lock... [2025-02-06 16:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:13:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:14:06 [end_date_ymd] => 2025-02-06 16:14:06 [RateCDR] => 1 ) [2025-02-06 16: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-06 13:14:06' and `end` < '2025-02-06 16: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-06 16:14:24] Production.INFO: count ==4738 [2025-02-06 16:14:26] Production.ERROR: pbx CDR StartTime 2025-02-06 13:14:06 - End Time 2025-02-06 16:14:06 [2025-02-06 16:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416193', 'tblTempUsageDetail_20' ) start [2025-02-06 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416193', 'tblTempUsageDetail_20' ) end [2025-02-06 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416193', 'tblTempVendorCDR_20' ) start [2025-02-06 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416193', 'tblTempVendorCDR_20' ) end [2025-02-06 16:14:27] Production.INFO: ProcessCDR(1,14416193,1,1,2) [2025-02-06 16:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416193', 'tblTempUsageDetail_20' ) start [2025-02-06 16:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416193', 'tblTempUsageDetail_20' ) end [2025-02-06 16:14:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:14:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:14:31] Production.INFO: ==31501== Releasing lock... [2025-02-06 16:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:14:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:15:05 [end_date_ymd] => 2025-02-06 16:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:15:05' and `end` < '2025-02-06 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-06 16:15:26] Production.INFO: count ==4725 [2025-02-06 16:15:28] Production.ERROR: pbx CDR StartTime 2025-02-06 13:15:05 - End Time 2025-02-06 16:15:05 [2025-02-06 16:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416198', 'tblTempUsageDetail_20' ) start [2025-02-06 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416198', 'tblTempUsageDetail_20' ) end [2025-02-06 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416198', 'tblTempVendorCDR_20' ) start [2025-02-06 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416198', 'tblTempVendorCDR_20' ) end [2025-02-06 16:15:29] Production.INFO: ProcessCDR(1,14416198,1,1,2) [2025-02-06 16:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416198', 'tblTempUsageDetail_20' ) start [2025-02-06 16:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416198', 'tblTempUsageDetail_20' ) end [2025-02-06 16:15:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:15:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:15:33] Production.INFO: ==31576== Releasing lock... [2025-02-06 16:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:15:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:16:05 [end_date_ymd] => 2025-02-06 16:16:05 [RateCDR] => 1 ) [2025-02-06 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:16:05' and `end` < '2025-02-06 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:16:23] Production.INFO: count ==4721 [2025-02-06 16:16:25] Production.ERROR: pbx CDR StartTime 2025-02-06 13:16:05 - End Time 2025-02-06 16:16:05 [2025-02-06 16:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416203', 'tblTempUsageDetail_20' ) start [2025-02-06 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416203', 'tblTempUsageDetail_20' ) end [2025-02-06 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416203', 'tblTempVendorCDR_20' ) start [2025-02-06 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416203', 'tblTempVendorCDR_20' ) end [2025-02-06 16:16:25] Production.INFO: ProcessCDR(1,14416203,1,1,2) [2025-02-06 16:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416203', 'tblTempUsageDetail_20' ) start [2025-02-06 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416203', 'tblTempUsageDetail_20' ) end [2025-02-06 16:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:16:30] Production.INFO: ==31646== Releasing lock... [2025-02-06 16:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:16:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:17:05 [end_date_ymd] => 2025-02-06 16:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:17:05' and `end` < '2025-02-06 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-06 16:17:25] Production.INFO: count ==4712 [2025-02-06 16:17:27] Production.ERROR: pbx CDR StartTime 2025-02-06 13:17:05 - End Time 2025-02-06 16:17:05 [2025-02-06 16:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416208', 'tblTempUsageDetail_20' ) start [2025-02-06 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416208', 'tblTempUsageDetail_20' ) end [2025-02-06 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416208', 'tblTempVendorCDR_20' ) start [2025-02-06 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416208', 'tblTempVendorCDR_20' ) end [2025-02-06 16:17:28] Production.INFO: ProcessCDR(1,14416208,1,1,2) [2025-02-06 16:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416208', 'tblTempUsageDetail_20' ) start [2025-02-06 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416208', 'tblTempUsageDetail_20' ) end [2025-02-06 16:17:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:17:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:17:32] Production.INFO: ==31719== Releasing lock... [2025-02-06 16:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:17:32] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:18:05 [end_date_ymd] => 2025-02-06 16:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:18:05' and `end` < '2025-02-06 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-06 16:18:23] Production.INFO: count ==4706 [2025-02-06 16:18:25] Production.ERROR: pbx CDR StartTime 2025-02-06 13:18:05 - End Time 2025-02-06 16:18:05 [2025-02-06 16:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416213', 'tblTempUsageDetail_20' ) start [2025-02-06 16:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416213', 'tblTempUsageDetail_20' ) end [2025-02-06 16:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416213', 'tblTempVendorCDR_20' ) start [2025-02-06 16:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416213', 'tblTempVendorCDR_20' ) end [2025-02-06 16:18:26] Production.INFO: ProcessCDR(1,14416213,1,1,2) [2025-02-06 16:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416213', 'tblTempUsageDetail_20' ) start [2025-02-06 16:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416213', 'tblTempUsageDetail_20' ) end [2025-02-06 16:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:18:30] Production.INFO: ==31799== Releasing lock... [2025-02-06 16:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:18:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:19:05 [end_date_ymd] => 2025-02-06 16:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:19:05' and `end` < '2025-02-06 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-06 16:19:20] Production.INFO: count ==4704 [2025-02-06 16:19:23] Production.ERROR: pbx CDR StartTime 2025-02-06 13:19:05 - End Time 2025-02-06 16:19:05 [2025-02-06 16:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416218', 'tblTempUsageDetail_20' ) start [2025-02-06 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416218', 'tblTempUsageDetail_20' ) end [2025-02-06 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416218', 'tblTempVendorCDR_20' ) start [2025-02-06 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416218', 'tblTempVendorCDR_20' ) end [2025-02-06 16:19:23] Production.INFO: ProcessCDR(1,14416218,1,1,2) [2025-02-06 16:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416218', 'tblTempUsageDetail_20' ) start [2025-02-06 16:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416218', 'tblTempUsageDetail_20' ) end [2025-02-06 16:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:19:29] Production.INFO: ==31871== Releasing lock... [2025-02-06 16:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:19:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:20:06 [end_date_ymd] => 2025-02-06 16:20:06 [RateCDR] => 1 ) [2025-02-06 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-06 13:20:06' and `end` < '2025-02-06 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-06 16:20:30] Production.INFO: count ==4709 [2025-02-06 16:20:32] Production.ERROR: pbx CDR StartTime 2025-02-06 13:20:06 - End Time 2025-02-06 16:20:06 [2025-02-06 16:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416224', 'tblTempUsageDetail_20' ) start [2025-02-06 16:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416224', 'tblTempUsageDetail_20' ) end [2025-02-06 16:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416224', 'tblTempVendorCDR_20' ) start [2025-02-06 16:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416224', 'tblTempVendorCDR_20' ) end [2025-02-06 16:20:32] Production.INFO: ProcessCDR(1,14416224,1,1,2) [2025-02-06 16:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416224', 'tblTempUsageDetail_20' ) start [2025-02-06 16:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416224', 'tblTempUsageDetail_20' ) end [2025-02-06 16:20:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:20:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:20:37] Production.INFO: ==31943== Releasing lock... [2025-02-06 16:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:20:37] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:21:05 [end_date_ymd] => 2025-02-06 16:21:05 [RateCDR] => 1 ) [2025-02-06 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:21:05' and `end` < '2025-02-06 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:21:26] Production.INFO: count ==4766 [2025-02-06 16:21:28] Production.ERROR: pbx CDR StartTime 2025-02-06 13:21:05 - End Time 2025-02-06 16:21:05 [2025-02-06 16:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416229', 'tblTempUsageDetail_20' ) start [2025-02-06 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416229', 'tblTempUsageDetail_20' ) end [2025-02-06 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416229', 'tblTempVendorCDR_20' ) start [2025-02-06 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416229', 'tblTempVendorCDR_20' ) end [2025-02-06 16:21:28] Production.INFO: ProcessCDR(1,14416229,1,1,2) [2025-02-06 16:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416229', 'tblTempUsageDetail_20' ) start [2025-02-06 16:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416229', 'tblTempUsageDetail_20' ) end [2025-02-06 16:21:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:21:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:21:33] Production.INFO: ==32021== Releasing lock... [2025-02-06 16:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:21:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:22:05 [end_date_ymd] => 2025-02-06 16:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:22:05' and `end` < '2025-02-06 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-06 16:22:25] Production.INFO: count ==4798 [2025-02-06 16:22:27] Production.ERROR: pbx CDR StartTime 2025-02-06 13:22:05 - End Time 2025-02-06 16:22:05 [2025-02-06 16:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416234', 'tblTempUsageDetail_20' ) start [2025-02-06 16:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416234', 'tblTempUsageDetail_20' ) end [2025-02-06 16:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416234', 'tblTempVendorCDR_20' ) start [2025-02-06 16:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416234', 'tblTempVendorCDR_20' ) end [2025-02-06 16:22:27] Production.INFO: ProcessCDR(1,14416234,1,1,2) [2025-02-06 16:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416234', 'tblTempUsageDetail_20' ) start [2025-02-06 16:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416234', 'tblTempUsageDetail_20' ) end [2025-02-06 16:22:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:22:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:22:32] Production.INFO: ==32096== Releasing lock... [2025-02-06 16:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:22:32] Production.INFO: 64 MB #Memory Used# [2025-02-06 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:23:05 [end_date_ymd] => 2025-02-06 16:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:23:05' and `end` < '2025-02-06 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-06 16:23:26] Production.INFO: count ==4791 [2025-02-06 16:23:28] Production.ERROR: pbx CDR StartTime 2025-02-06 13:23:05 - End Time 2025-02-06 16:23:05 [2025-02-06 16:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416239', 'tblTempUsageDetail_20' ) start [2025-02-06 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416239', 'tblTempUsageDetail_20' ) end [2025-02-06 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416239', 'tblTempVendorCDR_20' ) start [2025-02-06 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416239', 'tblTempVendorCDR_20' ) end [2025-02-06 16:23:28] Production.INFO: ProcessCDR(1,14416239,1,1,2) [2025-02-06 16:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416239', 'tblTempUsageDetail_20' ) start [2025-02-06 16:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416239', 'tblTempUsageDetail_20' ) end [2025-02-06 16:23:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:23:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:23:32] Production.INFO: ==32168== Releasing lock... [2025-02-06 16:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:23:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:24:06 [end_date_ymd] => 2025-02-06 16:24:06 [RateCDR] => 1 ) [2025-02-06 16: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-06 13:24:06' and `end` < '2025-02-06 16: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-06 16:24:24] Production.INFO: count ==4781 [2025-02-06 16:24:26] Production.ERROR: pbx CDR StartTime 2025-02-06 13:24:06 - End Time 2025-02-06 16:24:06 [2025-02-06 16:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416244', 'tblTempUsageDetail_20' ) start [2025-02-06 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416244', 'tblTempUsageDetail_20' ) end [2025-02-06 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416244', 'tblTempVendorCDR_20' ) start [2025-02-06 16:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416244', 'tblTempVendorCDR_20' ) end [2025-02-06 16:24:26] Production.INFO: ProcessCDR(1,14416244,1,1,2) [2025-02-06 16:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416244', 'tblTempUsageDetail_20' ) start [2025-02-06 16:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416244', 'tblTempUsageDetail_20' ) end [2025-02-06 16:24:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:24:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:24:31] Production.INFO: ==32239== Releasing lock... [2025-02-06 16:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:24:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:25:05 [end_date_ymd] => 2025-02-06 16:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:25:05' and `end` < '2025-02-06 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-06 16:25:20] Production.INFO: count ==4779 [2025-02-06 16:25:22] Production.ERROR: pbx CDR StartTime 2025-02-06 13:25:05 - End Time 2025-02-06 16:25:05 [2025-02-06 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416249', 'tblTempUsageDetail_20' ) start [2025-02-06 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416249', 'tblTempUsageDetail_20' ) end [2025-02-06 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416249', 'tblTempVendorCDR_20' ) start [2025-02-06 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416249', 'tblTempVendorCDR_20' ) end [2025-02-06 16:25:22] Production.INFO: ProcessCDR(1,14416249,1,1,2) [2025-02-06 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416249', 'tblTempUsageDetail_20' ) start [2025-02-06 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416249', 'tblTempUsageDetail_20' ) end [2025-02-06 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:25:27] Production.INFO: ==32311== Releasing lock... [2025-02-06 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:25:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:26:06 [end_date_ymd] => 2025-02-06 16:26:06 [RateCDR] => 1 ) [2025-02-06 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:26:06' and `end` < '2025-02-06 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:26:26] Production.INFO: count ==4772 [2025-02-06 16:26:28] Production.ERROR: pbx CDR StartTime 2025-02-06 13:26:06 - End Time 2025-02-06 16:26:06 [2025-02-06 16:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416254', 'tblTempUsageDetail_20' ) start [2025-02-06 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416254', 'tblTempUsageDetail_20' ) end [2025-02-06 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416254', 'tblTempVendorCDR_20' ) start [2025-02-06 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416254', 'tblTempVendorCDR_20' ) end [2025-02-06 16:26:29] Production.INFO: ProcessCDR(1,14416254,1,1,2) [2025-02-06 16:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416254', 'tblTempUsageDetail_20' ) start [2025-02-06 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416254', 'tblTempUsageDetail_20' ) end [2025-02-06 16:26:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:26:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:26:33] Production.INFO: ==32383== Releasing lock... [2025-02-06 16:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:26:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:27:05 [end_date_ymd] => 2025-02-06 16:27:05 [RateCDR] => 1 ) [2025-02-06 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:27:05' and `end` < '2025-02-06 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:27:24] Production.INFO: count ==4751 [2025-02-06 16:27:26] Production.ERROR: pbx CDR StartTime 2025-02-06 13:27:05 - End Time 2025-02-06 16:27:05 [2025-02-06 16:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416259', 'tblTempUsageDetail_20' ) start [2025-02-06 16:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416259', 'tblTempUsageDetail_20' ) end [2025-02-06 16:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416259', 'tblTempVendorCDR_20' ) start [2025-02-06 16:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416259', 'tblTempVendorCDR_20' ) end [2025-02-06 16:27:26] Production.INFO: ProcessCDR(1,14416259,1,1,2) [2025-02-06 16:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416259', 'tblTempUsageDetail_20' ) start [2025-02-06 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416259', 'tblTempUsageDetail_20' ) end [2025-02-06 16:27:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:27:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:27:30] Production.INFO: ==32492== Releasing lock... [2025-02-06 16:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:27:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:28:05 [end_date_ymd] => 2025-02-06 16:28:05 [RateCDR] => 1 ) [2025-02-06 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:28:05' and `end` < '2025-02-06 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-06 16:28:20] Production.INFO: count ==4757 [2025-02-06 16:28:22] Production.ERROR: pbx CDR StartTime 2025-02-06 13:28:05 - End Time 2025-02-06 16:28:05 [2025-02-06 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416264', 'tblTempUsageDetail_20' ) start [2025-02-06 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416264', 'tblTempUsageDetail_20' ) end [2025-02-06 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416264', 'tblTempVendorCDR_20' ) start [2025-02-06 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416264', 'tblTempVendorCDR_20' ) end [2025-02-06 16:28:22] Production.INFO: ProcessCDR(1,14416264,1,1,2) [2025-02-06 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416264', 'tblTempUsageDetail_20' ) start [2025-02-06 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416264', 'tblTempUsageDetail_20' ) end [2025-02-06 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:28:27] Production.INFO: ==32564== Releasing lock... [2025-02-06 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:28:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:29:05 [end_date_ymd] => 2025-02-06 16:29:05 [RateCDR] => 1 ) [2025-02-06 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:29:05' and `end` < '2025-02-06 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:29:25] Production.INFO: count ==4758 [2025-02-06 16:29:27] Production.ERROR: pbx CDR StartTime 2025-02-06 13:29:05 - End Time 2025-02-06 16:29:05 [2025-02-06 16:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416269', 'tblTempUsageDetail_20' ) start [2025-02-06 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416269', 'tblTempUsageDetail_20' ) end [2025-02-06 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416269', 'tblTempVendorCDR_20' ) start [2025-02-06 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416269', 'tblTempVendorCDR_20' ) end [2025-02-06 16:29:27] Production.INFO: ProcessCDR(1,14416269,1,1,2) [2025-02-06 16:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416269', 'tblTempUsageDetail_20' ) start [2025-02-06 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416269', 'tblTempUsageDetail_20' ) end [2025-02-06 16:29:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:29:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:29:32] Production.INFO: ==32636== Releasing lock... [2025-02-06 16:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:29:32] Production.INFO: 63.5 MB #Memory Used# [2025-02-06 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:30:06 [end_date_ymd] => 2025-02-06 16:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 13:30:06' and `end` < '2025-02-06 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-06 16:30:33] Production.INFO: count ==4785 [2025-02-06 16:30:35] Production.ERROR: pbx CDR StartTime 2025-02-06 13:30:06 - End Time 2025-02-06 16:30:06 [2025-02-06 16:30:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416275', 'tblTempUsageDetail_20' ) start [2025-02-06 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416275', 'tblTempUsageDetail_20' ) end [2025-02-06 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416275', 'tblTempVendorCDR_20' ) start [2025-02-06 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416275', 'tblTempVendorCDR_20' ) end [2025-02-06 16:30:35] Production.INFO: ProcessCDR(1,14416275,1,1,2) [2025-02-06 16:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416275', 'tblTempUsageDetail_20' ) start [2025-02-06 16:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416275', 'tblTempUsageDetail_20' ) end [2025-02-06 16:30:40] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:30:40] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:30:40] Production.INFO: ==32714== Releasing lock... [2025-02-06 16:30:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:30:40] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:31:05 [end_date_ymd] => 2025-02-06 16:31:05 [RateCDR] => 1 ) [2025-02-06 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:31:05' and `end` < '2025-02-06 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:31:30] Production.INFO: count ==4819 [2025-02-06 16:31:32] Production.ERROR: pbx CDR StartTime 2025-02-06 13:31:05 - End Time 2025-02-06 16:31:05 [2025-02-06 16:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416280', 'tblTempUsageDetail_20' ) start [2025-02-06 16:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416280', 'tblTempUsageDetail_20' ) end [2025-02-06 16:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416280', 'tblTempVendorCDR_20' ) start [2025-02-06 16:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416280', 'tblTempVendorCDR_20' ) end [2025-02-06 16:31:32] Production.INFO: ProcessCDR(1,14416280,1,1,2) [2025-02-06 16:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:31:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:31:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416280', 'tblTempUsageDetail_20' ) start [2025-02-06 16:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416280', 'tblTempUsageDetail_20' ) end [2025-02-06 16:31:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:31:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:31:37] Production.INFO: ==328== Releasing lock... [2025-02-06 16:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:31:37] Production.INFO: 64 MB #Memory Used# [2025-02-06 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:32:05 [end_date_ymd] => 2025-02-06 16:32:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:32:05' and `end` < '2025-02-06 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-06 16:32:29] Production.INFO: count ==4842 [2025-02-06 16:32:31] Production.ERROR: pbx CDR StartTime 2025-02-06 13:32:05 - End Time 2025-02-06 16:32:05 [2025-02-06 16:32:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416285', 'tblTempUsageDetail_20' ) start [2025-02-06 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416285', 'tblTempUsageDetail_20' ) end [2025-02-06 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416285', 'tblTempVendorCDR_20' ) start [2025-02-06 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416285', 'tblTempVendorCDR_20' ) end [2025-02-06 16:32:31] Production.INFO: ProcessCDR(1,14416285,1,1,2) [2025-02-06 16:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416285', 'tblTempUsageDetail_20' ) start [2025-02-06 16:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416285', 'tblTempUsageDetail_20' ) end [2025-02-06 16:32:36] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:32:36] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:32:36] Production.INFO: ==414== Releasing lock... [2025-02-06 16:32:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:32:36] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:33:06 [end_date_ymd] => 2025-02-06 16:33:06 [RateCDR] => 1 ) [2025-02-06 16: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-06 13:33:06' and `end` < '2025-02-06 16: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-06 16:33:26] Production.INFO: count ==4841 [2025-02-06 16:33:28] Production.ERROR: pbx CDR StartTime 2025-02-06 13:33:06 - End Time 2025-02-06 16:33:06 [2025-02-06 16:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416290', 'tblTempUsageDetail_20' ) start [2025-02-06 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416290', 'tblTempUsageDetail_20' ) end [2025-02-06 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416290', 'tblTempVendorCDR_20' ) start [2025-02-06 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416290', 'tblTempVendorCDR_20' ) end [2025-02-06 16:33:28] Production.INFO: ProcessCDR(1,14416290,1,1,2) [2025-02-06 16:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416290', 'tblTempUsageDetail_20' ) start [2025-02-06 16:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416290', 'tblTempUsageDetail_20' ) end [2025-02-06 16:33:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:33:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:33:33] Production.INFO: ==486== Releasing lock... [2025-02-06 16:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:33:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:34:05 [end_date_ymd] => 2025-02-06 16:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:34:05' and `end` < '2025-02-06 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-06 16:34:22] Production.INFO: count ==4841 [2025-02-06 16:34:23] Production.ERROR: pbx CDR StartTime 2025-02-06 13:34:05 - End Time 2025-02-06 16:34:05 [2025-02-06 16:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416295', 'tblTempUsageDetail_20' ) start [2025-02-06 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416295', 'tblTempUsageDetail_20' ) end [2025-02-06 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416295', 'tblTempVendorCDR_20' ) start [2025-02-06 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416295', 'tblTempVendorCDR_20' ) end [2025-02-06 16:34:24] Production.INFO: ProcessCDR(1,14416295,1,1,2) [2025-02-06 16:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416295', 'tblTempUsageDetail_20' ) start [2025-02-06 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416295', 'tblTempUsageDetail_20' ) end [2025-02-06 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:34:28] Production.INFO: ==563== Releasing lock... [2025-02-06 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:34:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:35:06 [end_date_ymd] => 2025-02-06 16:35:06 [RateCDR] => 1 ) [2025-02-06 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:35:06' and `end` < '2025-02-06 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:35:22] Production.INFO: count ==4842 [2025-02-06 16:35:24] Production.ERROR: pbx CDR StartTime 2025-02-06 13:35:06 - End Time 2025-02-06 16:35:06 [2025-02-06 16:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416300', 'tblTempUsageDetail_20' ) start [2025-02-06 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416300', 'tblTempUsageDetail_20' ) end [2025-02-06 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416300', 'tblTempVendorCDR_20' ) start [2025-02-06 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416300', 'tblTempVendorCDR_20' ) end [2025-02-06 16:35:24] Production.INFO: ProcessCDR(1,14416300,1,1,2) [2025-02-06 16:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416300', 'tblTempUsageDetail_20' ) start [2025-02-06 16:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416300', 'tblTempUsageDetail_20' ) end [2025-02-06 16:35:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:35:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:35:29] Production.INFO: ==650== Releasing lock... [2025-02-06 16:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:35:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:36:05 [end_date_ymd] => 2025-02-06 16:36:05 [RateCDR] => 1 ) [2025-02-06 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:36:05' and `end` < '2025-02-06 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:36:24] Production.INFO: count ==4840 [2025-02-06 16:36:26] Production.ERROR: pbx CDR StartTime 2025-02-06 13:36:05 - End Time 2025-02-06 16:36:05 [2025-02-06 16:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416305', 'tblTempUsageDetail_20' ) start [2025-02-06 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416305', 'tblTempUsageDetail_20' ) end [2025-02-06 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416305', 'tblTempVendorCDR_20' ) start [2025-02-06 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416305', 'tblTempVendorCDR_20' ) end [2025-02-06 16:36:26] Production.INFO: ProcessCDR(1,14416305,1,1,2) [2025-02-06 16:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416305', 'tblTempUsageDetail_20' ) start [2025-02-06 16:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416305', 'tblTempUsageDetail_20' ) end [2025-02-06 16:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:36:31] Production.INFO: ==743== Releasing lock... [2025-02-06 16:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:36:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:37:05 [end_date_ymd] => 2025-02-06 16:37:05 [RateCDR] => 1 ) [2025-02-06 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:37:05' and `end` < '2025-02-06 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:37:27] Production.INFO: count ==4837 [2025-02-06 16:37:28] Production.ERROR: pbx CDR StartTime 2025-02-06 13:37:05 - End Time 2025-02-06 16:37:05 [2025-02-06 16:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416310', 'tblTempUsageDetail_20' ) start [2025-02-06 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416310', 'tblTempUsageDetail_20' ) end [2025-02-06 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416310', 'tblTempVendorCDR_20' ) start [2025-02-06 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416310', 'tblTempVendorCDR_20' ) end [2025-02-06 16:37:29] Production.INFO: ProcessCDR(1,14416310,1,1,2) [2025-02-06 16:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416310', 'tblTempUsageDetail_20' ) start [2025-02-06 16:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416310', 'tblTempUsageDetail_20' ) end [2025-02-06 16:37:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:37:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:37:33] Production.INFO: ==817== Releasing lock... [2025-02-06 16:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:37:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:38:05 [end_date_ymd] => 2025-02-06 16:38:05 [RateCDR] => 1 ) [2025-02-06 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:38:05' and `end` < '2025-02-06 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:38:25] Production.INFO: count ==4841 [2025-02-06 16:38:27] Production.ERROR: pbx CDR StartTime 2025-02-06 13:38:05 - End Time 2025-02-06 16:38:05 [2025-02-06 16:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416315', 'tblTempUsageDetail_20' ) start [2025-02-06 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416315', 'tblTempUsageDetail_20' ) end [2025-02-06 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416315', 'tblTempVendorCDR_20' ) start [2025-02-06 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416315', 'tblTempVendorCDR_20' ) end [2025-02-06 16:38:27] Production.INFO: ProcessCDR(1,14416315,1,1,2) [2025-02-06 16:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416315', 'tblTempUsageDetail_20' ) start [2025-02-06 16:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416315', 'tblTempUsageDetail_20' ) end [2025-02-06 16:38:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:38:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:38:32] Production.INFO: ==889== Releasing lock... [2025-02-06 16:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:38:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:39:05 [end_date_ymd] => 2025-02-06 16:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:39:05' and `end` < '2025-02-06 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-06 16:39:22] Production.INFO: count ==4832 [2025-02-06 16:39:24] Production.ERROR: pbx CDR StartTime 2025-02-06 13:39:05 - End Time 2025-02-06 16:39:05 [2025-02-06 16:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416320', 'tblTempUsageDetail_20' ) start [2025-02-06 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416320', 'tblTempUsageDetail_20' ) end [2025-02-06 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416320', 'tblTempVendorCDR_20' ) start [2025-02-06 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416320', 'tblTempVendorCDR_20' ) end [2025-02-06 16:39:24] Production.INFO: ProcessCDR(1,14416320,1,1,2) [2025-02-06 16:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416320', 'tblTempUsageDetail_20' ) start [2025-02-06 16:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416320', 'tblTempUsageDetail_20' ) end [2025-02-06 16:39:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:39:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:39:29] Production.INFO: ==961== Releasing lock... [2025-02-06 16:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:39:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:40:06 [end_date_ymd] => 2025-02-06 16:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 13:40:06' and `end` < '2025-02-06 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-06 16:40:26] Production.INFO: count ==4840 [2025-02-06 16:40:28] Production.ERROR: pbx CDR StartTime 2025-02-06 13:40:06 - End Time 2025-02-06 16:40:06 [2025-02-06 16:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416326', 'tblTempUsageDetail_20' ) start [2025-02-06 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416326', 'tblTempUsageDetail_20' ) end [2025-02-06 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416326', 'tblTempVendorCDR_20' ) start [2025-02-06 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416326', 'tblTempVendorCDR_20' ) end [2025-02-06 16:40:29] Production.INFO: ProcessCDR(1,14416326,1,1,2) [2025-02-06 16:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416326', 'tblTempUsageDetail_20' ) start [2025-02-06 16:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416326', 'tblTempUsageDetail_20' ) end [2025-02-06 16:40:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:40:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:40:33] Production.INFO: ==1040== Releasing lock... [2025-02-06 16:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:40:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:41:04 [end_date_ymd] => 2025-02-06 16:41:04 [RateCDR] => 1 ) [2025-02-06 16:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:41:04' and `end` < '2025-02-06 16:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:41:19] Production.INFO: count ==4825 [2025-02-06 16:41:21] Production.ERROR: pbx CDR StartTime 2025-02-06 13:41:04 - End Time 2025-02-06 16:41:04 [2025-02-06 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416331', 'tblTempUsageDetail_20' ) start [2025-02-06 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416331', 'tblTempUsageDetail_20' ) end [2025-02-06 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416331', 'tblTempVendorCDR_20' ) start [2025-02-06 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416331', 'tblTempVendorCDR_20' ) end [2025-02-06 16:41:21] Production.INFO: ProcessCDR(1,14416331,1,1,2) [2025-02-06 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416331', 'tblTempUsageDetail_20' ) start [2025-02-06 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416331', 'tblTempUsageDetail_20' ) end [2025-02-06 16:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:41:25] Production.INFO: ==1114== Releasing lock... [2025-02-06 16:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:41:25] Production.INFO: 64 MB #Memory Used# [2025-02-06 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:42:06 [end_date_ymd] => 2025-02-06 16:42:06 [RateCDR] => 1 ) [2025-02-06 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:42:06' and `end` < '2025-02-06 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:42:27] Production.INFO: count ==4843 [2025-02-06 16:42:29] Production.ERROR: pbx CDR StartTime 2025-02-06 13:42:06 - End Time 2025-02-06 16:42:06 [2025-02-06 16:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416336', 'tblTempUsageDetail_20' ) start [2025-02-06 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416336', 'tblTempUsageDetail_20' ) end [2025-02-06 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416336', 'tblTempVendorCDR_20' ) start [2025-02-06 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416336', 'tblTempVendorCDR_20' ) end [2025-02-06 16:42:29] Production.INFO: ProcessCDR(1,14416336,1,1,2) [2025-02-06 16:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416336', 'tblTempUsageDetail_20' ) start [2025-02-06 16:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416336', 'tblTempUsageDetail_20' ) end [2025-02-06 16:42:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:42:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:42:34] Production.INFO: ==1230== Releasing lock... [2025-02-06 16:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:42:34] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:43:05 [end_date_ymd] => 2025-02-06 16:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:43:05' and `end` < '2025-02-06 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-06 16:43:23] Production.INFO: count ==4845 [2025-02-06 16:43:25] Production.ERROR: pbx CDR StartTime 2025-02-06 13:43:05 - End Time 2025-02-06 16:43:05 [2025-02-06 16:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416341', 'tblTempUsageDetail_20' ) start [2025-02-06 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416341', 'tblTempUsageDetail_20' ) end [2025-02-06 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416341', 'tblTempVendorCDR_20' ) start [2025-02-06 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416341', 'tblTempVendorCDR_20' ) end [2025-02-06 16:43:25] Production.INFO: ProcessCDR(1,14416341,1,1,2) [2025-02-06 16:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416341', 'tblTempUsageDetail_20' ) start [2025-02-06 16:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416341', 'tblTempUsageDetail_20' ) end [2025-02-06 16:43:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:43:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:43:30] Production.INFO: ==1312== Releasing lock... [2025-02-06 16:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:43:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:44:06 [end_date_ymd] => 2025-02-06 16:44:06 [RateCDR] => 1 ) [2025-02-06 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:44:06' and `end` < '2025-02-06 16:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:44:20] Production.INFO: count ==4833 [2025-02-06 16:44:22] Production.ERROR: pbx CDR StartTime 2025-02-06 13:44:06 - End Time 2025-02-06 16:44:06 [2025-02-06 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416346', 'tblTempUsageDetail_20' ) start [2025-02-06 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416346', 'tblTempUsageDetail_20' ) end [2025-02-06 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416346', 'tblTempVendorCDR_20' ) start [2025-02-06 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416346', 'tblTempVendorCDR_20' ) end [2025-02-06 16:44:22] Production.INFO: ProcessCDR(1,14416346,1,1,2) [2025-02-06 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416346', 'tblTempUsageDetail_20' ) start [2025-02-06 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416346', 'tblTempUsageDetail_20' ) end [2025-02-06 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:44:27] Production.INFO: ==1384== Releasing lock... [2025-02-06 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:44:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:45:05 [end_date_ymd] => 2025-02-06 16:45:05 [RateCDR] => 1 ) [2025-02-06 16: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-06 13:45:05' and `end` < '2025-02-06 16: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-06 16:45:25] Production.INFO: count ==4819 [2025-02-06 16:45:27] Production.ERROR: pbx CDR StartTime 2025-02-06 13:45:05 - End Time 2025-02-06 16:45:05 [2025-02-06 16:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416351', 'tblTempUsageDetail_20' ) start [2025-02-06 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416351', 'tblTempUsageDetail_20' ) end [2025-02-06 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416351', 'tblTempVendorCDR_20' ) start [2025-02-06 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416351', 'tblTempVendorCDR_20' ) end [2025-02-06 16:45:27] Production.INFO: ProcessCDR(1,14416351,1,1,2) [2025-02-06 16:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416351', 'tblTempUsageDetail_20' ) start [2025-02-06 16:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416351', 'tblTempUsageDetail_20' ) end [2025-02-06 16:45:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:45:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:45:32] Production.INFO: ==1455== Releasing lock... [2025-02-06 16:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:45:32] Production.INFO: 64 MB #Memory Used# [2025-02-06 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:46:05 [end_date_ymd] => 2025-02-06 16:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:46:05' and `end` < '2025-02-06 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-06 16:46:22] Production.INFO: count ==4817 [2025-02-06 16:46:25] Production.ERROR: pbx CDR StartTime 2025-02-06 13:46:05 - End Time 2025-02-06 16:46:05 [2025-02-06 16:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416356', 'tblTempUsageDetail_20' ) start [2025-02-06 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416356', 'tblTempUsageDetail_20' ) end [2025-02-06 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416356', 'tblTempVendorCDR_20' ) start [2025-02-06 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416356', 'tblTempVendorCDR_20' ) end [2025-02-06 16:46:25] Production.INFO: ProcessCDR(1,14416356,1,1,2) [2025-02-06 16:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416356', 'tblTempUsageDetail_20' ) start [2025-02-06 16:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416356', 'tblTempUsageDetail_20' ) end [2025-02-06 16:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:46:29] Production.INFO: ==1562== Releasing lock... [2025-02-06 16:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:46:29] Production.INFO: 64 MB #Memory Used# [2025-02-06 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:47:06 [end_date_ymd] => 2025-02-06 16:47:06 [RateCDR] => 1 ) [2025-02-06 16:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:47:06' and `end` < '2025-02-06 16:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:47:24] Production.INFO: count ==4827 [2025-02-06 16:47:26] Production.ERROR: pbx CDR StartTime 2025-02-06 13:47:06 - End Time 2025-02-06 16:47:06 [2025-02-06 16:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416361', 'tblTempUsageDetail_20' ) start [2025-02-06 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416361', 'tblTempUsageDetail_20' ) end [2025-02-06 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416361', 'tblTempVendorCDR_20' ) start [2025-02-06 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416361', 'tblTempVendorCDR_20' ) end [2025-02-06 16:47:26] Production.INFO: ProcessCDR(1,14416361,1,1,2) [2025-02-06 16:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416361', 'tblTempUsageDetail_20' ) start [2025-02-06 16:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416361', 'tblTempUsageDetail_20' ) end [2025-02-06 16:47:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:47:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:47:31] Production.INFO: ==1640== Releasing lock... [2025-02-06 16:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:47:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-06 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:48:05 [end_date_ymd] => 2025-02-06 16:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:48:05' and `end` < '2025-02-06 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-06 16:48:21] Production.INFO: count ==4815 [2025-02-06 16:48:23] Production.ERROR: pbx CDR StartTime 2025-02-06 13:48:05 - End Time 2025-02-06 16:48:05 [2025-02-06 16:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416366', 'tblTempUsageDetail_20' ) start [2025-02-06 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416366', 'tblTempUsageDetail_20' ) end [2025-02-06 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416366', 'tblTempVendorCDR_20' ) start [2025-02-06 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416366', 'tblTempVendorCDR_20' ) end [2025-02-06 16:48:24] Production.INFO: ProcessCDR(1,14416366,1,1,2) [2025-02-06 16:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416366', 'tblTempUsageDetail_20' ) start [2025-02-06 16:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416366', 'tblTempUsageDetail_20' ) end [2025-02-06 16:48:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:48:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:48:29] Production.INFO: ==1710== Releasing lock... [2025-02-06 16:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:48:29] Production.INFO: 64 MB #Memory Used# [2025-02-06 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:49:05 [end_date_ymd] => 2025-02-06 16:49:05 [RateCDR] => 1 ) [2025-02-06 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 13:49:05' and `end` < '2025-02-06 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 16:49:20] Production.INFO: count ==4800 [2025-02-06 16:49:21] Production.ERROR: pbx CDR StartTime 2025-02-06 13:49:05 - End Time 2025-02-06 16:49:05 [2025-02-06 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416371', 'tblTempUsageDetail_20' ) start [2025-02-06 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416371', 'tblTempUsageDetail_20' ) end [2025-02-06 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416371', 'tblTempVendorCDR_20' ) start [2025-02-06 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416371', 'tblTempVendorCDR_20' ) end [2025-02-06 16:49:22] Production.INFO: ProcessCDR(1,14416371,1,1,2) [2025-02-06 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416371', 'tblTempUsageDetail_20' ) start [2025-02-06 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416371', 'tblTempUsageDetail_20' ) end [2025-02-06 16:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:49:25] Production.INFO: ==1790== Releasing lock... [2025-02-06 16:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:49:25] Production.INFO: 64 MB #Memory Used# [2025-02-06 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:50:05 [end_date_ymd] => 2025-02-06 16:50:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:50:05' and `end` < '2025-02-06 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-06 16:50:28] Production.INFO: count ==4781 [2025-02-06 16:50:30] Production.ERROR: pbx CDR StartTime 2025-02-06 13:50:05 - End Time 2025-02-06 16:50:05 [2025-02-06 16:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416377', 'tblTempUsageDetail_20' ) start [2025-02-06 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416377', 'tblTempUsageDetail_20' ) end [2025-02-06 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416377', 'tblTempVendorCDR_20' ) start [2025-02-06 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416377', 'tblTempVendorCDR_20' ) end [2025-02-06 16:50:30] Production.INFO: ProcessCDR(1,14416377,1,1,2) [2025-02-06 16:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416377', 'tblTempUsageDetail_20' ) start [2025-02-06 16:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416377', 'tblTempUsageDetail_20' ) end [2025-02-06 16:50:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:50:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:50:35] Production.INFO: ==1867== Releasing lock... [2025-02-06 16:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:50:35] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:51:05 [end_date_ymd] => 2025-02-06 16:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:51:05' and `end` < '2025-02-06 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-06 16:51:23] Production.INFO: count ==4785 [2025-02-06 16:51:25] Production.ERROR: pbx CDR StartTime 2025-02-06 13:51:05 - End Time 2025-02-06 16:51:05 [2025-02-06 16:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416382', 'tblTempUsageDetail_20' ) start [2025-02-06 16:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416382', 'tblTempUsageDetail_20' ) end [2025-02-06 16:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416382', 'tblTempVendorCDR_20' ) start [2025-02-06 16:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416382', 'tblTempVendorCDR_20' ) end [2025-02-06 16:51:26] Production.INFO: ProcessCDR(1,14416382,1,1,2) [2025-02-06 16:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416382', 'tblTempUsageDetail_20' ) start [2025-02-06 16:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416382', 'tblTempUsageDetail_20' ) end [2025-02-06 16:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:51:30] Production.INFO: ==1942== Releasing lock... [2025-02-06 16:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:51:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:52:05 [end_date_ymd] => 2025-02-06 16:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:52:05' and `end` < '2025-02-06 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-06 16:52:20] Production.INFO: count ==4768 [2025-02-06 16:52:22] Production.ERROR: pbx CDR StartTime 2025-02-06 13:52:05 - End Time 2025-02-06 16:52:05 [2025-02-06 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416387', 'tblTempUsageDetail_20' ) start [2025-02-06 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416387', 'tblTempUsageDetail_20' ) end [2025-02-06 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416387', 'tblTempVendorCDR_20' ) start [2025-02-06 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416387', 'tblTempVendorCDR_20' ) end [2025-02-06 16:52:22] Production.INFO: ProcessCDR(1,14416387,1,1,2) [2025-02-06 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416387', 'tblTempUsageDetail_20' ) start [2025-02-06 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416387', 'tblTempUsageDetail_20' ) end [2025-02-06 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:52:27] Production.INFO: ==2018== Releasing lock... [2025-02-06 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:52:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-06 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:53:05 [end_date_ymd] => 2025-02-06 16:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:53:05' and `end` < '2025-02-06 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-06 16:53:19] Production.INFO: count ==4724 [2025-02-06 16:53:21] Production.ERROR: pbx CDR StartTime 2025-02-06 13:53:05 - End Time 2025-02-06 16:53:05 [2025-02-06 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416392', 'tblTempUsageDetail_20' ) start [2025-02-06 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416392', 'tblTempUsageDetail_20' ) end [2025-02-06 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416392', 'tblTempVendorCDR_20' ) start [2025-02-06 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416392', 'tblTempVendorCDR_20' ) end [2025-02-06 16:53:21] Production.INFO: ProcessCDR(1,14416392,1,1,2) [2025-02-06 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416392', 'tblTempUsageDetail_20' ) start [2025-02-06 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416392', 'tblTempUsageDetail_20' ) end [2025-02-06 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:53:26] Production.INFO: ==2093== Releasing lock... [2025-02-06 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:53:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:54:06 [end_date_ymd] => 2025-02-06 16:54:06 [RateCDR] => 1 ) [2025-02-06 16: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-06 13:54:06' and `end` < '2025-02-06 16: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-06 16:54:34] Production.INFO: count ==4695 [2025-02-06 16:54:36] Production.ERROR: pbx CDR StartTime 2025-02-06 13:54:06 - End Time 2025-02-06 16:54:06 [2025-02-06 16:54:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416397', 'tblTempUsageDetail_20' ) start [2025-02-06 16:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416397', 'tblTempUsageDetail_20' ) end [2025-02-06 16:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416397', 'tblTempVendorCDR_20' ) start [2025-02-06 16:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416397', 'tblTempVendorCDR_20' ) end [2025-02-06 16:54:36] Production.INFO: ProcessCDR(1,14416397,1,1,2) [2025-02-06 16:54:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:54:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:54:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:54:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416397', 'tblTempUsageDetail_20' ) start [2025-02-06 16:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416397', 'tblTempUsageDetail_20' ) end [2025-02-06 16:54:41] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:54:41] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:54:41] Production.INFO: ==2177== Releasing lock... [2025-02-06 16:54:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:54:41] Production.INFO: 63.25 MB #Memory Used# [2025-02-06 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:55:05 [end_date_ymd] => 2025-02-06 16:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:55:05' and `end` < '2025-02-06 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-06 16:55:31] Production.INFO: count ==4644 [2025-02-06 16:55:33] Production.ERROR: pbx CDR StartTime 2025-02-06 13:55:05 - End Time 2025-02-06 16:55:05 [2025-02-06 16:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416402', 'tblTempUsageDetail_20' ) start [2025-02-06 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416402', 'tblTempUsageDetail_20' ) end [2025-02-06 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416402', 'tblTempVendorCDR_20' ) start [2025-02-06 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416402', 'tblTempVendorCDR_20' ) end [2025-02-06 16:55:33] Production.INFO: ProcessCDR(1,14416402,1,1,2) [2025-02-06 16:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416402', 'tblTempUsageDetail_20' ) start [2025-02-06 16:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416402', 'tblTempUsageDetail_20' ) end [2025-02-06 16:55:38] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:55:38] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:55:38] Production.INFO: ==2264== Releasing lock... [2025-02-06 16:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:55:38] Production.INFO: 62.75 MB #Memory Used# [2025-02-06 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:56:06 [end_date_ymd] => 2025-02-06 16:56:06 [RateCDR] => 1 ) [2025-02-06 16: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-06 13:56:06' and `end` < '2025-02-06 16: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-06 16:56:25] Production.INFO: count ==4624 [2025-02-06 16:56:27] Production.ERROR: pbx CDR StartTime 2025-02-06 13:56:06 - End Time 2025-02-06 16:56:06 [2025-02-06 16:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416407', 'tblTempUsageDetail_20' ) start [2025-02-06 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416407', 'tblTempUsageDetail_20' ) end [2025-02-06 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416407', 'tblTempVendorCDR_20' ) start [2025-02-06 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416407', 'tblTempVendorCDR_20' ) end [2025-02-06 16:56:27] Production.INFO: ProcessCDR(1,14416407,1,1,2) [2025-02-06 16:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416407', 'tblTempUsageDetail_20' ) start [2025-02-06 16:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416407', 'tblTempUsageDetail_20' ) end [2025-02-06 16:56:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:56:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:56:32] Production.INFO: ==2354== Releasing lock... [2025-02-06 16:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:56:32] Production.INFO: 62.5 MB #Memory Used# [2025-02-06 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:57:04 [end_date_ymd] => 2025-02-06 16:57:04 [RateCDR] => 1 ) [2025-02-06 16: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-06 13:57:04' and `end` < '2025-02-06 16: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-06 16:57:21] Production.INFO: count ==4597 [2025-02-06 16:57:23] Production.ERROR: pbx CDR StartTime 2025-02-06 13:57:04 - End Time 2025-02-06 16:57:04 [2025-02-06 16:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416412', 'tblTempUsageDetail_20' ) start [2025-02-06 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416412', 'tblTempUsageDetail_20' ) end [2025-02-06 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416412', 'tblTempVendorCDR_20' ) start [2025-02-06 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416412', 'tblTempVendorCDR_20' ) end [2025-02-06 16:57:23] Production.INFO: ProcessCDR(1,14416412,1,1,2) [2025-02-06 16:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416412', 'tblTempUsageDetail_20' ) start [2025-02-06 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416412', 'tblTempUsageDetail_20' ) end [2025-02-06 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:57:28] Production.INFO: ==2442== Releasing lock... [2025-02-06 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:57:28] Production.INFO: 62.5 MB #Memory Used# [2025-02-06 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:58:05 [end_date_ymd] => 2025-02-06 16:58:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:58:05' and `end` < '2025-02-06 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-06 16:58:25] Production.INFO: count ==4575 [2025-02-06 16:58:27] Production.ERROR: pbx CDR StartTime 2025-02-06 13:58:05 - End Time 2025-02-06 16:58:05 [2025-02-06 16:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416417', 'tblTempUsageDetail_20' ) start [2025-02-06 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416417', 'tblTempUsageDetail_20' ) end [2025-02-06 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416417', 'tblTempVendorCDR_20' ) start [2025-02-06 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416417', 'tblTempVendorCDR_20' ) end [2025-02-06 16:58:27] Production.INFO: ProcessCDR(1,14416417,1,1,2) [2025-02-06 16:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416417', 'tblTempUsageDetail_20' ) start [2025-02-06 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416417', 'tblTempUsageDetail_20' ) end [2025-02-06 16:58:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:58:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:58:32] Production.INFO: ==2569== Releasing lock... [2025-02-06 16:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:58:32] Production.INFO: 62.25 MB #Memory Used# [2025-02-06 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 13:59:05 [end_date_ymd] => 2025-02-06 16:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 13:59:05' and `end` < '2025-02-06 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-06 16:59:24] Production.INFO: count ==4587 [2025-02-06 16:59:26] Production.ERROR: pbx CDR StartTime 2025-02-06 13:59:05 - End Time 2025-02-06 16:59:05 [2025-02-06 16:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416422', 'tblTempUsageDetail_20' ) start [2025-02-06 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416422', 'tblTempUsageDetail_20' ) end [2025-02-06 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416422', 'tblTempVendorCDR_20' ) start [2025-02-06 16:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416422', 'tblTempVendorCDR_20' ) end [2025-02-06 16:59:27] Production.INFO: ProcessCDR(1,14416422,1,1,2) [2025-02-06 16:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 16:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 16:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416422', 'tblTempUsageDetail_20' ) start [2025-02-06 16:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416422', 'tblTempUsageDetail_20' ) end [2025-02-06 16:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-06 16:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-06 16:59:31] Production.INFO: ==2655== Releasing lock... [2025-02-06 16:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 16:59:31] Production.INFO: 62.25 MB #Memory Used# [2025-02-06 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:00:06 [end_date_ymd] => 2025-02-06 17:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 14:00:06' and `end` < '2025-02-06 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-06 17:00:31] Production.INFO: count ==4585 [2025-02-06 17:00:33] Production.ERROR: pbx CDR StartTime 2025-02-06 14:00:06 - End Time 2025-02-06 17:00:06 [2025-02-06 17:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416428', 'tblTempUsageDetail_20' ) start [2025-02-06 17:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416428', 'tblTempUsageDetail_20' ) end [2025-02-06 17:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416428', 'tblTempVendorCDR_20' ) start [2025-02-06 17:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416428', 'tblTempVendorCDR_20' ) end [2025-02-06 17:00:33] Production.INFO: ProcessCDR(1,14416428,1,1,2) [2025-02-06 17:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416428', 'tblTempUsageDetail_20' ) start [2025-02-06 17:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416428', 'tblTempUsageDetail_20' ) end [2025-02-06 17:00:38] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:00:38] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:00:38] Production.INFO: ==2748== Releasing lock... [2025-02-06 17:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:00:38] Production.INFO: 62.25 MB #Memory Used# [2025-02-06 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:01:06 [end_date_ymd] => 2025-02-06 17:01:06 [RateCDR] => 1 ) [2025-02-06 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-06 14:01:06' and `end` < '2025-02-06 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-06 17:01:28] Production.INFO: count ==4552 [2025-02-06 17:01:29] Production.ERROR: pbx CDR StartTime 2025-02-06 14:01:06 - End Time 2025-02-06 17:01:06 [2025-02-06 17:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416433', 'tblTempUsageDetail_20' ) start [2025-02-06 17:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416433', 'tblTempUsageDetail_20' ) end [2025-02-06 17:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416433', 'tblTempVendorCDR_20' ) start [2025-02-06 17:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416433', 'tblTempVendorCDR_20' ) end [2025-02-06 17:01:30] Production.INFO: ProcessCDR(1,14416433,1,1,2) [2025-02-06 17:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416433', 'tblTempUsageDetail_20' ) start [2025-02-06 17:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416433', 'tblTempUsageDetail_20' ) end [2025-02-06 17:01:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:01:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:01:34] Production.INFO: ==2845== Releasing lock... [2025-02-06 17:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:01:34] Production.INFO: 62 MB #Memory Used# [2025-02-06 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:02:06 [end_date_ymd] => 2025-02-06 17:02:06 [RateCDR] => 1 ) [2025-02-06 17: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-06 14:02:06' and `end` < '2025-02-06 17: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-06 17:02:28] Production.INFO: count ==4480 [2025-02-06 17:02:30] Production.ERROR: pbx CDR StartTime 2025-02-06 14:02:06 - End Time 2025-02-06 17:02:06 [2025-02-06 17:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416438', 'tblTempUsageDetail_20' ) start [2025-02-06 17:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416438', 'tblTempUsageDetail_20' ) end [2025-02-06 17:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416438', 'tblTempVendorCDR_20' ) start [2025-02-06 17:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416438', 'tblTempVendorCDR_20' ) end [2025-02-06 17:02:30] Production.INFO: ProcessCDR(1,14416438,1,1,2) [2025-02-06 17:02:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:02:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:02:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:02:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416438', 'tblTempUsageDetail_20' ) start [2025-02-06 17:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416438', 'tblTempUsageDetail_20' ) end [2025-02-06 17:02:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:02:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:02:34] Production.INFO: ==2932== Releasing lock... [2025-02-06 17:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:02:34] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:03:06 [end_date_ymd] => 2025-02-06 17:03:06 [RateCDR] => 1 ) [2025-02-06 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-06 14:03:06' and `end` < '2025-02-06 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-06 17:03:26] Production.INFO: count ==4478 [2025-02-06 17:03:28] Production.ERROR: pbx CDR StartTime 2025-02-06 14:03:06 - End Time 2025-02-06 17:03:06 [2025-02-06 17:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416443', 'tblTempUsageDetail_20' ) start [2025-02-06 17:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416443', 'tblTempUsageDetail_20' ) end [2025-02-06 17:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416443', 'tblTempVendorCDR_20' ) start [2025-02-06 17:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416443', 'tblTempVendorCDR_20' ) end [2025-02-06 17:03:28] Production.INFO: ProcessCDR(1,14416443,1,1,2) [2025-02-06 17:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416443', 'tblTempUsageDetail_20' ) start [2025-02-06 17:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416443', 'tblTempUsageDetail_20' ) end [2025-02-06 17:03:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:03:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:03:33] Production.INFO: ==3027== Releasing lock... [2025-02-06 17:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:03:33] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 17:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:04:04 [end_date_ymd] => 2025-02-06 17:04:04 [RateCDR] => 1 ) [2025-02-06 17: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-06 14:04:04' and `end` < '2025-02-06 17: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-06 17:04:22] Production.INFO: count ==4475 [2025-02-06 17:04:24] Production.ERROR: pbx CDR StartTime 2025-02-06 14:04:04 - End Time 2025-02-06 17:04:04 [2025-02-06 17:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416446', 'tblTempUsageDetail_20' ) start [2025-02-06 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416446', 'tblTempUsageDetail_20' ) end [2025-02-06 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416446', 'tblTempVendorCDR_20' ) start [2025-02-06 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416446', 'tblTempVendorCDR_20' ) end [2025-02-06 17:04:24] Production.INFO: ProcessCDR(1,14416446,1,1,2) [2025-02-06 17:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416446', 'tblTempUsageDetail_20' ) start [2025-02-06 17:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416446', 'tblTempUsageDetail_20' ) end [2025-02-06 17:04:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:04:29] Production.INFO: ==3116== Releasing lock... [2025-02-06 17:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:04:29] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:05:05 [end_date_ymd] => 2025-02-06 17:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:05:05' and `end` < '2025-02-06 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-06 17:05:19] Production.INFO: count ==4474 [2025-02-06 17:05:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:05:05 - End Time 2025-02-06 17:05:05 [2025-02-06 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416453', 'tblTempUsageDetail_20' ) start [2025-02-06 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416453', 'tblTempUsageDetail_20' ) end [2025-02-06 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416453', 'tblTempVendorCDR_20' ) start [2025-02-06 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416453', 'tblTempVendorCDR_20' ) end [2025-02-06 17:05:21] Production.INFO: ProcessCDR(1,14416453,1,1,2) [2025-02-06 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416453', 'tblTempUsageDetail_20' ) start [2025-02-06 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416453', 'tblTempUsageDetail_20' ) end [2025-02-06 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:05:26] Production.INFO: ==3205== Releasing lock... [2025-02-06 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:05:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:06:05 [end_date_ymd] => 2025-02-06 17:06:05 [RateCDR] => 1 ) [2025-02-06 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:06:05' and `end` < '2025-02-06 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:06:20] Production.INFO: count ==4474 [2025-02-06 17:06:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:06:05 - End Time 2025-02-06 17:06:05 [2025-02-06 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416458', 'tblTempUsageDetail_20' ) start [2025-02-06 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416458', 'tblTempUsageDetail_20' ) end [2025-02-06 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416458', 'tblTempVendorCDR_20' ) start [2025-02-06 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416458', 'tblTempVendorCDR_20' ) end [2025-02-06 17:06:22] Production.INFO: ProcessCDR(1,14416458,1,1,2) [2025-02-06 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416458', 'tblTempUsageDetail_20' ) start [2025-02-06 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416458', 'tblTempUsageDetail_20' ) end [2025-02-06 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:06:27] Production.INFO: ==3287== Releasing lock... [2025-02-06 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:06:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:07:05 [end_date_ymd] => 2025-02-06 17:07:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:07:05' and `end` < '2025-02-06 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-06 17:07:19] Production.INFO: count ==4470 [2025-02-06 17:07:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:07:05 - End Time 2025-02-06 17:07:05 [2025-02-06 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416463', 'tblTempUsageDetail_20' ) start [2025-02-06 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416463', 'tblTempUsageDetail_20' ) end [2025-02-06 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416463', 'tblTempVendorCDR_20' ) start [2025-02-06 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416463', 'tblTempVendorCDR_20' ) end [2025-02-06 17:07:21] Production.INFO: ProcessCDR(1,14416463,1,1,2) [2025-02-06 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416463', 'tblTempUsageDetail_20' ) start [2025-02-06 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416463', 'tblTempUsageDetail_20' ) end [2025-02-06 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:07:26] Production.INFO: ==3373== Releasing lock... [2025-02-06 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:07:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:08:05 [end_date_ymd] => 2025-02-06 17:08:05 [RateCDR] => 1 ) [2025-02-06 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:08:05' and `end` < '2025-02-06 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:08:20] Production.INFO: count ==4482 [2025-02-06 17:08:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:08:05 - End Time 2025-02-06 17:08:05 [2025-02-06 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416468', 'tblTempUsageDetail_20' ) start [2025-02-06 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416468', 'tblTempUsageDetail_20' ) end [2025-02-06 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416468', 'tblTempVendorCDR_20' ) start [2025-02-06 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416468', 'tblTempVendorCDR_20' ) end [2025-02-06 17:08:22] Production.INFO: ProcessCDR(1,14416468,1,1,2) [2025-02-06 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416468', 'tblTempUsageDetail_20' ) start [2025-02-06 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416468', 'tblTempUsageDetail_20' ) end [2025-02-06 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:08:27] Production.INFO: ==3465== Releasing lock... [2025-02-06 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:08:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:09:05 [end_date_ymd] => 2025-02-06 17:09:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:09:05' and `end` < '2025-02-06 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-06 17:09:20] Production.INFO: count ==4469 [2025-02-06 17:09:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:09:05 - End Time 2025-02-06 17:09:05 [2025-02-06 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416473', 'tblTempUsageDetail_20' ) start [2025-02-06 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416473', 'tblTempUsageDetail_20' ) end [2025-02-06 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416473', 'tblTempVendorCDR_20' ) start [2025-02-06 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416473', 'tblTempVendorCDR_20' ) end [2025-02-06 17:09:22] Production.INFO: ProcessCDR(1,14416473,1,1,2) [2025-02-06 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416473', 'tblTempUsageDetail_20' ) start [2025-02-06 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416473', 'tblTempUsageDetail_20' ) end [2025-02-06 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:09:27] Production.INFO: ==3552== Releasing lock... [2025-02-06 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:09:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-06 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:10:06 [end_date_ymd] => 2025-02-06 17:10:06 [RateCDR] => 1 ) [2025-02-06 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:10:06' and `end` < '2025-02-06 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:10:21] Production.INFO: count ==4446 [2025-02-06 17:10:23] Production.ERROR: pbx CDR StartTime 2025-02-06 14:10:06 - End Time 2025-02-06 17:10:06 [2025-02-06 17:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416479', 'tblTempUsageDetail_20' ) start [2025-02-06 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416479', 'tblTempUsageDetail_20' ) end [2025-02-06 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416479', 'tblTempVendorCDR_20' ) start [2025-02-06 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416479', 'tblTempVendorCDR_20' ) end [2025-02-06 17:10:23] Production.INFO: ProcessCDR(1,14416479,1,1,2) [2025-02-06 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416479', 'tblTempUsageDetail_20' ) start [2025-02-06 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416479', 'tblTempUsageDetail_20' ) end [2025-02-06 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:10:28] Production.INFO: ==3639== Releasing lock... [2025-02-06 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:10:28] Production.INFO: 61.25 MB #Memory Used# [2025-02-06 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:11:05 [end_date_ymd] => 2025-02-06 17:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:11:05' and `end` < '2025-02-06 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-06 17:11:21] Production.INFO: count ==4439 [2025-02-06 17:11:23] Production.ERROR: pbx CDR StartTime 2025-02-06 14:11:05 - End Time 2025-02-06 17:11:05 [2025-02-06 17:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416484', 'tblTempUsageDetail_20' ) start [2025-02-06 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416484', 'tblTempUsageDetail_20' ) end [2025-02-06 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416484', 'tblTempVendorCDR_20' ) start [2025-02-06 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416484', 'tblTempVendorCDR_20' ) end [2025-02-06 17:11:23] Production.INFO: ProcessCDR(1,14416484,1,1,2) [2025-02-06 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416484', 'tblTempUsageDetail_20' ) start [2025-02-06 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416484', 'tblTempUsageDetail_20' ) end [2025-02-06 17:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:11:28] Production.INFO: ==3728== Releasing lock... [2025-02-06 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:11:28] Production.INFO: 61.25 MB #Memory Used# [2025-02-06 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:12:05 [end_date_ymd] => 2025-02-06 17:12:05 [RateCDR] => 1 ) [2025-02-06 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:12:05' and `end` < '2025-02-06 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:12:20] Production.INFO: count ==4396 [2025-02-06 17:12:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:12:05 - End Time 2025-02-06 17:12:05 [2025-02-06 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416489', 'tblTempUsageDetail_20' ) start [2025-02-06 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416489', 'tblTempUsageDetail_20' ) end [2025-02-06 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416489', 'tblTempVendorCDR_20' ) start [2025-02-06 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416489', 'tblTempVendorCDR_20' ) end [2025-02-06 17:12:21] Production.INFO: ProcessCDR(1,14416489,1,1,2) [2025-02-06 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416489', 'tblTempUsageDetail_20' ) start [2025-02-06 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416489', 'tblTempUsageDetail_20' ) end [2025-02-06 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:12:26] Production.INFO: ==3817== Releasing lock... [2025-02-06 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:12:26] Production.INFO: 61 MB #Memory Used# [2025-02-06 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:13:05 [end_date_ymd] => 2025-02-06 17:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:13:05' and `end` < '2025-02-06 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-06 17:13:19] Production.INFO: count ==4367 [2025-02-06 17:13:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:13:05 - End Time 2025-02-06 17:13:05 [2025-02-06 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416494', 'tblTempUsageDetail_20' ) start [2025-02-06 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416494', 'tblTempUsageDetail_20' ) end [2025-02-06 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416494', 'tblTempVendorCDR_20' ) start [2025-02-06 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416494', 'tblTempVendorCDR_20' ) end [2025-02-06 17:13:21] Production.INFO: ProcessCDR(1,14416494,1,1,2) [2025-02-06 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416494', 'tblTempUsageDetail_20' ) start [2025-02-06 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416494', 'tblTempUsageDetail_20' ) end [2025-02-06 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:13:25] Production.INFO: ==3941== Releasing lock... [2025-02-06 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:13:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-06 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:14:06 [end_date_ymd] => 2025-02-06 17:14:06 [RateCDR] => 1 ) [2025-02-06 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:14:06' and `end` < '2025-02-06 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:14:23] Production.INFO: count ==4353 [2025-02-06 17:14:25] Production.ERROR: pbx CDR StartTime 2025-02-06 14:14:06 - End Time 2025-02-06 17:14:06 [2025-02-06 17:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416499', 'tblTempUsageDetail_20' ) start [2025-02-06 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416499', 'tblTempUsageDetail_20' ) end [2025-02-06 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416499', 'tblTempVendorCDR_20' ) start [2025-02-06 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416499', 'tblTempVendorCDR_20' ) end [2025-02-06 17:14:25] Production.INFO: ProcessCDR(1,14416499,1,1,2) [2025-02-06 17:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416499', 'tblTempUsageDetail_20' ) start [2025-02-06 17:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416499', 'tblTempUsageDetail_20' ) end [2025-02-06 17:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:14:30] Production.INFO: ==4030== Releasing lock... [2025-02-06 17:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:14:30] Production.INFO: 60.5 MB #Memory Used# [2025-02-06 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:15:06 [end_date_ymd] => 2025-02-06 17:15:06 [RateCDR] => 1 ) [2025-02-06 17:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:15:06' and `end` < '2025-02-06 17:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:15:26] Production.INFO: count ==4351 [2025-02-06 17:15:28] Production.ERROR: pbx CDR StartTime 2025-02-06 14:15:06 - End Time 2025-02-06 17:15:06 [2025-02-06 17:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416504', 'tblTempUsageDetail_20' ) start [2025-02-06 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416504', 'tblTempUsageDetail_20' ) end [2025-02-06 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416504', 'tblTempVendorCDR_20' ) start [2025-02-06 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416504', 'tblTempVendorCDR_20' ) end [2025-02-06 17:15:28] Production.INFO: ProcessCDR(1,14416504,1,1,2) [2025-02-06 17:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416504', 'tblTempUsageDetail_20' ) start [2025-02-06 17:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416504', 'tblTempUsageDetail_20' ) end [2025-02-06 17:15:33] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:15:33] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:15:33] Production.INFO: ==4119== Releasing lock... [2025-02-06 17:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:15:33] Production.INFO: 60.5 MB #Memory Used# [2025-02-06 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:16:05 [end_date_ymd] => 2025-02-06 17:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:16:05' and `end` < '2025-02-06 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-06 17:16:20] Production.INFO: count ==4334 [2025-02-06 17:16:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:16:05 - End Time 2025-02-06 17:16:05 [2025-02-06 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416509', 'tblTempUsageDetail_20' ) start [2025-02-06 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416509', 'tblTempUsageDetail_20' ) end [2025-02-06 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416509', 'tblTempVendorCDR_20' ) start [2025-02-06 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416509', 'tblTempVendorCDR_20' ) end [2025-02-06 17:16:22] Production.INFO: ProcessCDR(1,14416509,1,1,2) [2025-02-06 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416509', 'tblTempUsageDetail_20' ) start [2025-02-06 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416509', 'tblTempUsageDetail_20' ) end [2025-02-06 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:16:26] Production.INFO: ==4210== Releasing lock... [2025-02-06 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:16:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-06 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:17:06 [end_date_ymd] => 2025-02-06 17:17:06 [RateCDR] => 1 ) [2025-02-06 17: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-06 14:17:06' and `end` < '2025-02-06 17: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-06 17:17:20] Production.INFO: count ==4312 [2025-02-06 17:17:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:17:06 - End Time 2025-02-06 17:17:06 [2025-02-06 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416514', 'tblTempUsageDetail_20' ) start [2025-02-06 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416514', 'tblTempUsageDetail_20' ) end [2025-02-06 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416514', 'tblTempVendorCDR_20' ) start [2025-02-06 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416514', 'tblTempVendorCDR_20' ) end [2025-02-06 17:17:22] Production.INFO: ProcessCDR(1,14416514,1,1,2) [2025-02-06 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416514', 'tblTempUsageDetail_20' ) start [2025-02-06 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416514', 'tblTempUsageDetail_20' ) end [2025-02-06 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:17:27] Production.INFO: ==4301== Releasing lock... [2025-02-06 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:17:27] Production.INFO: 60.25 MB #Memory Used# [2025-02-06 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:18:05 [end_date_ymd] => 2025-02-06 17:18:05 [RateCDR] => 1 ) [2025-02-06 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:18:05' and `end` < '2025-02-06 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:18:19] Production.INFO: count ==4320 [2025-02-06 17:18:20] Production.ERROR: pbx CDR StartTime 2025-02-06 14:18:05 - End Time 2025-02-06 17:18:05 [2025-02-06 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416519', 'tblTempUsageDetail_20' ) start [2025-02-06 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416519', 'tblTempUsageDetail_20' ) end [2025-02-06 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416519', 'tblTempVendorCDR_20' ) start [2025-02-06 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416519', 'tblTempVendorCDR_20' ) end [2025-02-06 17:18:21] Production.INFO: ProcessCDR(1,14416519,1,1,2) [2025-02-06 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416519', 'tblTempUsageDetail_20' ) start [2025-02-06 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416519', 'tblTempUsageDetail_20' ) end [2025-02-06 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:18:25] Production.INFO: ==4389== Releasing lock... [2025-02-06 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:18:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-06 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:19:05 [end_date_ymd] => 2025-02-06 17:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:19:05' and `end` < '2025-02-06 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-06 17:19:19] Production.INFO: count ==4319 [2025-02-06 17:19:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:19:05 - End Time 2025-02-06 17:19:05 [2025-02-06 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416524', 'tblTempUsageDetail_20' ) start [2025-02-06 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416524', 'tblTempUsageDetail_20' ) end [2025-02-06 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416524', 'tblTempVendorCDR_20' ) start [2025-02-06 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416524', 'tblTempVendorCDR_20' ) end [2025-02-06 17:19:21] Production.INFO: ProcessCDR(1,14416524,1,1,2) [2025-02-06 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416524', 'tblTempUsageDetail_20' ) start [2025-02-06 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416524', 'tblTempUsageDetail_20' ) end [2025-02-06 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:19:26] Production.INFO: ==4477== Releasing lock... [2025-02-06 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:19:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-06 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:20:06 [end_date_ymd] => 2025-02-06 17:20:06 [RateCDR] => 1 ) [2025-02-06 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-06 14:20:06' and `end` < '2025-02-06 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-06 17:20:26] Production.INFO: count ==4318 [2025-02-06 17:20:27] Production.ERROR: pbx CDR StartTime 2025-02-06 14:20:06 - End Time 2025-02-06 17:20:06 [2025-02-06 17:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416530', 'tblTempUsageDetail_20' ) start [2025-02-06 17:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416530', 'tblTempUsageDetail_20' ) end [2025-02-06 17:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416530', 'tblTempVendorCDR_20' ) start [2025-02-06 17:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416530', 'tblTempVendorCDR_20' ) end [2025-02-06 17:20:27] Production.INFO: ProcessCDR(1,14416530,1,1,2) [2025-02-06 17:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416530', 'tblTempUsageDetail_20' ) start [2025-02-06 17:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416530', 'tblTempUsageDetail_20' ) end [2025-02-06 17:20:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:20:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:20:32] Production.INFO: ==4565== Releasing lock... [2025-02-06 17:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:20:32] Production.INFO: 60.25 MB #Memory Used# [2025-02-06 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:21:05 [end_date_ymd] => 2025-02-06 17:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:21:05' and `end` < '2025-02-06 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-06 17:21:23] Production.INFO: count ==4322 [2025-02-06 17:21:24] Production.ERROR: pbx CDR StartTime 2025-02-06 14:21:05 - End Time 2025-02-06 17:21:05 [2025-02-06 17:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416535', 'tblTempUsageDetail_20' ) start [2025-02-06 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416535', 'tblTempUsageDetail_20' ) end [2025-02-06 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416535', 'tblTempVendorCDR_20' ) start [2025-02-06 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416535', 'tblTempVendorCDR_20' ) end [2025-02-06 17:21:24] Production.INFO: ProcessCDR(1,14416535,1,1,2) [2025-02-06 17:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416535', 'tblTempUsageDetail_20' ) start [2025-02-06 17:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416535', 'tblTempUsageDetail_20' ) end [2025-02-06 17:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:21:29] Production.INFO: ==4661== Releasing lock... [2025-02-06 17:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:21:29] Production.INFO: 60.25 MB #Memory Used# [2025-02-06 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:22:05 [end_date_ymd] => 2025-02-06 17:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:22:05' and `end` < '2025-02-06 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-06 17:22:19] Production.INFO: count ==4317 [2025-02-06 17:22:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:22:05 - End Time 2025-02-06 17:22:05 [2025-02-06 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416540', 'tblTempUsageDetail_20' ) start [2025-02-06 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416540', 'tblTempUsageDetail_20' ) end [2025-02-06 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416540', 'tblTempVendorCDR_20' ) start [2025-02-06 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416540', 'tblTempVendorCDR_20' ) end [2025-02-06 17:22:21] Production.INFO: ProcessCDR(1,14416540,1,1,2) [2025-02-06 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416540', 'tblTempUsageDetail_20' ) start [2025-02-06 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416540', 'tblTempUsageDetail_20' ) end [2025-02-06 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:22:26] Production.INFO: ==4747== Releasing lock... [2025-02-06 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:22:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-06 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:23:05 [end_date_ymd] => 2025-02-06 17:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:23:05' and `end` < '2025-02-06 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-06 17:23:19] Production.INFO: count ==4302 [2025-02-06 17:23:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:23:05 - End Time 2025-02-06 17:23:05 [2025-02-06 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416545', 'tblTempUsageDetail_20' ) start [2025-02-06 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416545', 'tblTempUsageDetail_20' ) end [2025-02-06 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416545', 'tblTempVendorCDR_20' ) start [2025-02-06 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416545', 'tblTempVendorCDR_20' ) end [2025-02-06 17:23:21] Production.INFO: ProcessCDR(1,14416545,1,1,2) [2025-02-06 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416545', 'tblTempUsageDetail_20' ) start [2025-02-06 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416545', 'tblTempUsageDetail_20' ) end [2025-02-06 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:23:26] Production.INFO: ==4836== Releasing lock... [2025-02-06 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:23:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-06 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:24:05 [end_date_ymd] => 2025-02-06 17:24:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:24:05' and `end` < '2025-02-06 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-06 17:24:19] Production.INFO: count ==4273 [2025-02-06 17:24:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:24:05 - End Time 2025-02-06 17:24:05 [2025-02-06 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416550', 'tblTempUsageDetail_20' ) start [2025-02-06 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416550', 'tblTempUsageDetail_20' ) end [2025-02-06 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416550', 'tblTempVendorCDR_20' ) start [2025-02-06 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416550', 'tblTempVendorCDR_20' ) end [2025-02-06 17:24:21] Production.INFO: ProcessCDR(1,14416550,1,1,2) [2025-02-06 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416550', 'tblTempUsageDetail_20' ) start [2025-02-06 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416550', 'tblTempUsageDetail_20' ) end [2025-02-06 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:24:26] Production.INFO: ==4924== Releasing lock... [2025-02-06 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:24:26] Production.INFO: 60 MB #Memory Used# [2025-02-06 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:25:05 [end_date_ymd] => 2025-02-06 17:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:25:05' and `end` < '2025-02-06 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-06 17:25:24] Production.INFO: count ==4279 [2025-02-06 17:26:02] Production.ERROR: pbx CDR StartTime 2025-02-06 14:25:05 - End Time 2025-02-06 17:25:05 [2025-02-06 17:26:02] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:26:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416555', 'tblTempUsageDetail_20' ) start [2025-02-06 17:26:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416555', 'tblTempUsageDetail_20' ) end [2025-02-06 17:26:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416555', 'tblTempVendorCDR_20' ) start [2025-02-06 17:26:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416555', 'tblTempVendorCDR_20' ) end [2025-02-06 17:26:02] Production.INFO: ProcessCDR(1,14416555,1,1,2) [2025-02-06 17:26:02] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:26:09] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:26:09] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416555', 'tblTempUsageDetail_20' ) start [2025-02-06 17:26:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416555', 'tblTempUsageDetail_20' ) end [2025-02-06 17:26:44] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:26:44] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:26:44] Production.INFO: ==5008== Releasing lock... [2025-02-06 17:26:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:26:44] Production.INFO: 60 MB #Memory Used# [2025-02-06 17:27:32] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:27:32 [end_date_ymd] => 2025-02-06 17:27:32 [RateCDR] => 1 ) [2025-02-06 17:27:32] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:27:32' and `end` < '2025-02-06 17:27:32' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:27:47] Production.INFO: count ==4259 [2025-02-06 17:28:38] Production.ERROR: pbx CDR StartTime 2025-02-06 14:27:32 - End Time 2025-02-06 17:27:32 [2025-02-06 17:28:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416563', 'tblTempUsageDetail_20' ) start [2025-02-06 17:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416563', 'tblTempUsageDetail_20' ) end [2025-02-06 17:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416563', 'tblTempVendorCDR_20' ) start [2025-02-06 17:28:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416563', 'tblTempVendorCDR_20' ) end [2025-02-06 17:28:40] Production.INFO: ProcessCDR(1,14416563,1,1,2) [2025-02-06 17:28:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:28:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:28:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:29:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:29:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416563', 'tblTempUsageDetail_20' ) start [2025-02-06 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416563', 'tblTempUsageDetail_20' ) end [2025-02-06 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:29:32] Production.INFO: ==5142== Releasing lock... [2025-02-06 17:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:29:32] Production.INFO: 59.75 MB #Memory Used# [2025-02-06 17:30:19] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:30:19 [end_date_ymd] => 2025-02-06 17:30:19 [RateCDR] => 1 ) [2025-02-06 17:30:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:30:19' and `end` < '2025-02-06 17:30:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:30:33] Production.INFO: count ==4241 [2025-02-06 17:31:20] Production.ERROR: pbx CDR StartTime 2025-02-06 14:30:19 - End Time 2025-02-06 17:30:19 [2025-02-06 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416575', 'tblTempUsageDetail_20' ) start [2025-02-06 17:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416575', 'tblTempUsageDetail_20' ) end [2025-02-06 17:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416575', 'tblTempVendorCDR_20' ) start [2025-02-06 17:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416575', 'tblTempVendorCDR_20' ) end [2025-02-06 17:31:27] Production.INFO: ProcessCDR(1,14416575,1,1,2) [2025-02-06 17:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416575', 'tblTempUsageDetail_20' ) start [2025-02-06 17:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416575', 'tblTempUsageDetail_20' ) end [2025-02-06 17:31:35] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:31:35] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:31:35] Production.INFO: ==5394== Releasing lock... [2025-02-06 17:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:31:35] Production.INFO: 59.75 MB #Memory Used# [2025-02-06 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:32:05 [end_date_ymd] => 2025-02-06 17:32:05 [RateCDR] => 1 ) [2025-02-06 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:32:05' and `end` < '2025-02-06 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:32:21] Production.INFO: count ==4252 [2025-02-06 17:32:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:32:05 - End Time 2025-02-06 17:32:05 [2025-02-06 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416584', 'tblTempUsageDetail_20' ) start [2025-02-06 17:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416584', 'tblTempUsageDetail_20' ) end [2025-02-06 17:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416584', 'tblTempVendorCDR_20' ) start [2025-02-06 17:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416584', 'tblTempVendorCDR_20' ) end [2025-02-06 17:32:23] Production.INFO: ProcessCDR(1,14416584,1,1,2) [2025-02-06 17:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416584', 'tblTempUsageDetail_20' ) start [2025-02-06 17:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416584', 'tblTempUsageDetail_20' ) end [2025-02-06 17:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:32:28] Production.INFO: ==5538== Releasing lock... [2025-02-06 17:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:32:28] Production.INFO: 59.75 MB #Memory Used# [2025-02-06 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:33:05 [end_date_ymd] => 2025-02-06 17:33:05 [RateCDR] => 1 ) [2025-02-06 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:33:05' and `end` < '2025-02-06 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:33:19] Production.INFO: count ==4220 [2025-02-06 17:33:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:33:05 - End Time 2025-02-06 17:33:05 [2025-02-06 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416589', 'tblTempUsageDetail_20' ) start [2025-02-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416589', 'tblTempUsageDetail_20' ) end [2025-02-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416589', 'tblTempVendorCDR_20' ) start [2025-02-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416589', 'tblTempVendorCDR_20' ) end [2025-02-06 17:33:21] Production.INFO: ProcessCDR(1,14416589,1,1,2) [2025-02-06 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416589', 'tblTempUsageDetail_20' ) start [2025-02-06 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416589', 'tblTempUsageDetail_20' ) end [2025-02-06 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:33:25] Production.INFO: ==5608== Releasing lock... [2025-02-06 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:33:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-06 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:34:05 [end_date_ymd] => 2025-02-06 17:34:05 [RateCDR] => 1 ) [2025-02-06 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:34:05' and `end` < '2025-02-06 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:34:20] Production.INFO: count ==4210 [2025-02-06 17:34:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:34:05 - End Time 2025-02-06 17:34:05 [2025-02-06 17:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416594', 'tblTempUsageDetail_20' ) start [2025-02-06 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416594', 'tblTempUsageDetail_20' ) end [2025-02-06 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416594', 'tblTempVendorCDR_20' ) start [2025-02-06 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416594', 'tblTempVendorCDR_20' ) end [2025-02-06 17:34:22] Production.INFO: ProcessCDR(1,14416594,1,1,2) [2025-02-06 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416594', 'tblTempUsageDetail_20' ) start [2025-02-06 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416594', 'tblTempUsageDetail_20' ) end [2025-02-06 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:34:27] Production.INFO: ==5683== Releasing lock... [2025-02-06 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:34:27] Production.INFO: 59.5 MB #Memory Used# [2025-02-06 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:35:06 [end_date_ymd] => 2025-02-06 17:35:06 [RateCDR] => 1 ) [2025-02-06 17: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-06 14:35:06' and `end` < '2025-02-06 17: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-06 17:35:21] Production.INFO: count ==4210 [2025-02-06 17:35:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:35:06 - End Time 2025-02-06 17:35:06 [2025-02-06 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416599', 'tblTempUsageDetail_20' ) start [2025-02-06 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416599', 'tblTempUsageDetail_20' ) end [2025-02-06 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416599', 'tblTempVendorCDR_20' ) start [2025-02-06 17:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416599', 'tblTempVendorCDR_20' ) end [2025-02-06 17:35:23] Production.INFO: ProcessCDR(1,14416599,1,1,2) [2025-02-06 17:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416599', 'tblTempUsageDetail_20' ) start [2025-02-06 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416599', 'tblTempUsageDetail_20' ) end [2025-02-06 17:35:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:35:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:35:28] Production.INFO: ==5754== Releasing lock... [2025-02-06 17:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:35:28] Production.INFO: 59.5 MB #Memory Used# [2025-02-06 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:36:05 [end_date_ymd] => 2025-02-06 17:36:05 [RateCDR] => 1 ) [2025-02-06 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:36:05' and `end` < '2025-02-06 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:36:19] Production.INFO: count ==4204 [2025-02-06 17:36:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:36:05 - End Time 2025-02-06 17:36:05 [2025-02-06 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416604', 'tblTempUsageDetail_20' ) start [2025-02-06 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416604', 'tblTempUsageDetail_20' ) end [2025-02-06 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416604', 'tblTempVendorCDR_20' ) start [2025-02-06 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416604', 'tblTempVendorCDR_20' ) end [2025-02-06 17:36:21] Production.INFO: ProcessCDR(1,14416604,1,1,2) [2025-02-06 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416604', 'tblTempUsageDetail_20' ) start [2025-02-06 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416604', 'tblTempUsageDetail_20' ) end [2025-02-06 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:36:25] Production.INFO: ==5829== Releasing lock... [2025-02-06 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:36:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-06 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:37:05 [end_date_ymd] => 2025-02-06 17:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:37:05' and `end` < '2025-02-06 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-06 17:37:25] Production.INFO: count ==4166 [2025-02-06 17:37:27] Production.ERROR: pbx CDR StartTime 2025-02-06 14:37:05 - End Time 2025-02-06 17:37:05 [2025-02-06 17:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416609', 'tblTempUsageDetail_20' ) start [2025-02-06 17:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416609', 'tblTempUsageDetail_20' ) end [2025-02-06 17:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416609', 'tblTempVendorCDR_20' ) start [2025-02-06 17:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416609', 'tblTempVendorCDR_20' ) end [2025-02-06 17:37:27] Production.INFO: ProcessCDR(1,14416609,1,1,2) [2025-02-06 17:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416609', 'tblTempUsageDetail_20' ) start [2025-02-06 17:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416609', 'tblTempUsageDetail_20' ) end [2025-02-06 17:37:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:37:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:37:32] Production.INFO: ==5926== Releasing lock... [2025-02-06 17:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:37:32] Production.INFO: 59.25 MB #Memory Used# [2025-02-06 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:38:05 [end_date_ymd] => 2025-02-06 17:38:05 [RateCDR] => 1 ) [2025-02-06 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:38:05' and `end` < '2025-02-06 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:38:22] Production.INFO: count ==4133 [2025-02-06 17:38:23] Production.ERROR: pbx CDR StartTime 2025-02-06 14:38:05 - End Time 2025-02-06 17:38:05 [2025-02-06 17:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416614', 'tblTempUsageDetail_20' ) start [2025-02-06 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416614', 'tblTempUsageDetail_20' ) end [2025-02-06 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416614', 'tblTempVendorCDR_20' ) start [2025-02-06 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416614', 'tblTempVendorCDR_20' ) end [2025-02-06 17:38:24] Production.INFO: ProcessCDR(1,14416614,1,1,2) [2025-02-06 17:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416614', 'tblTempUsageDetail_20' ) start [2025-02-06 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416614', 'tblTempUsageDetail_20' ) end [2025-02-06 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:38:27] Production.INFO: ==6014== Releasing lock... [2025-02-06 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:38:27] Production.INFO: 59.25 MB #Memory Used# [2025-02-06 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:39:06 [end_date_ymd] => 2025-02-06 17:39:06 [RateCDR] => 1 ) [2025-02-06 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:39:06' and `end` < '2025-02-06 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:39:20] Production.INFO: count ==4094 [2025-02-06 17:39:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:39:06 - End Time 2025-02-06 17:39:06 [2025-02-06 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416619', 'tblTempUsageDetail_20' ) start [2025-02-06 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416619', 'tblTempUsageDetail_20' ) end [2025-02-06 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416619', 'tblTempVendorCDR_20' ) start [2025-02-06 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416619', 'tblTempVendorCDR_20' ) end [2025-02-06 17:39:22] Production.INFO: ProcessCDR(1,14416619,1,1,2) [2025-02-06 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416619', 'tblTempUsageDetail_20' ) start [2025-02-06 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416619', 'tblTempUsageDetail_20' ) end [2025-02-06 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:39:27] Production.INFO: ==6108== Releasing lock... [2025-02-06 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:39:27] Production.INFO: 58.5 MB #Memory Used# [2025-02-06 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:40:06 [end_date_ymd] => 2025-02-06 17:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 14:40:06' and `end` < '2025-02-06 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-06 17:40:23] Production.INFO: count ==4063 [2025-02-06 17:40:24] Production.ERROR: pbx CDR StartTime 2025-02-06 14:40:06 - End Time 2025-02-06 17:40:06 [2025-02-06 17:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416624', 'tblTempUsageDetail_20' ) start [2025-02-06 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416624', 'tblTempUsageDetail_20' ) end [2025-02-06 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416624', 'tblTempVendorCDR_20' ) start [2025-02-06 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416624', 'tblTempVendorCDR_20' ) end [2025-02-06 17:40:25] Production.INFO: ProcessCDR(1,14416624,1,1,2) [2025-02-06 17:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416624', 'tblTempUsageDetail_20' ) start [2025-02-06 17:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416624', 'tblTempUsageDetail_20' ) end [2025-02-06 17:40:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:40:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:40:30] Production.INFO: ==6199== Releasing lock... [2025-02-06 17:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:40:30] Production.INFO: 58.25 MB #Memory Used# [2025-02-06 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:41:05 [end_date_ymd] => 2025-02-06 17:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:41:05' and `end` < '2025-02-06 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-06 17:41:19] Production.INFO: count ==4030 [2025-02-06 17:41:20] Production.ERROR: pbx CDR StartTime 2025-02-06 14:41:05 - End Time 2025-02-06 17:41:05 [2025-02-06 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416630', 'tblTempUsageDetail_20' ) start [2025-02-06 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416630', 'tblTempUsageDetail_20' ) end [2025-02-06 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416630', 'tblTempVendorCDR_20' ) start [2025-02-06 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416630', 'tblTempVendorCDR_20' ) end [2025-02-06 17:41:21] Production.INFO: ProcessCDR(1,14416630,1,1,2) [2025-02-06 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416630', 'tblTempUsageDetail_20' ) start [2025-02-06 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416630', 'tblTempUsageDetail_20' ) end [2025-02-06 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:41:24] Production.INFO: ==6297== Releasing lock... [2025-02-06 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:41:24] Production.INFO: 58.25 MB #Memory Used# [2025-02-06 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:42:05 [end_date_ymd] => 2025-02-06 17:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:42:05' and `end` < '2025-02-06 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-06 17:42:19] Production.INFO: count ==4029 [2025-02-06 17:42:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:42:05 - End Time 2025-02-06 17:42:05 [2025-02-06 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416635', 'tblTempUsageDetail_20' ) start [2025-02-06 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416635', 'tblTempUsageDetail_20' ) end [2025-02-06 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416635', 'tblTempVendorCDR_20' ) start [2025-02-06 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416635', 'tblTempVendorCDR_20' ) end [2025-02-06 17:42:21] Production.INFO: ProcessCDR(1,14416635,1,1,2) [2025-02-06 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416635', 'tblTempUsageDetail_20' ) start [2025-02-06 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416635', 'tblTempUsageDetail_20' ) end [2025-02-06 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:42:26] Production.INFO: ==6384== Releasing lock... [2025-02-06 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:42:26] Production.INFO: 58 MB #Memory Used# [2025-02-06 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:43:05 [end_date_ymd] => 2025-02-06 17:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:43:05' and `end` < '2025-02-06 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-06 17:43:22] Production.INFO: count ==4011 [2025-02-06 17:43:24] Production.ERROR: pbx CDR StartTime 2025-02-06 14:43:05 - End Time 2025-02-06 17:43:05 [2025-02-06 17:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416640', 'tblTempUsageDetail_20' ) start [2025-02-06 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416640', 'tblTempUsageDetail_20' ) end [2025-02-06 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416640', 'tblTempVendorCDR_20' ) start [2025-02-06 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416640', 'tblTempVendorCDR_20' ) end [2025-02-06 17:43:24] Production.INFO: ProcessCDR(1,14416640,1,1,2) [2025-02-06 17:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416640', 'tblTempUsageDetail_20' ) start [2025-02-06 17:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416640', 'tblTempUsageDetail_20' ) end [2025-02-06 17:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:43:29] Production.INFO: ==6483== Releasing lock... [2025-02-06 17:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:43:29] Production.INFO: 58.25 MB #Memory Used# [2025-02-06 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:44:05 [end_date_ymd] => 2025-02-06 17:44:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:44:05' and `end` < '2025-02-06 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-06 17:44:19] Production.INFO: count ==4006 [2025-02-06 17:44:20] Production.ERROR: pbx CDR StartTime 2025-02-06 14:44:05 - End Time 2025-02-06 17:44:05 [2025-02-06 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416645', 'tblTempUsageDetail_20' ) start [2025-02-06 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416645', 'tblTempUsageDetail_20' ) end [2025-02-06 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416645', 'tblTempVendorCDR_20' ) start [2025-02-06 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416645', 'tblTempVendorCDR_20' ) end [2025-02-06 17:44:20] Production.INFO: ProcessCDR(1,14416645,1,1,2) [2025-02-06 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416645', 'tblTempUsageDetail_20' ) start [2025-02-06 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416645', 'tblTempUsageDetail_20' ) end [2025-02-06 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:44:25] Production.INFO: ==6611== Releasing lock... [2025-02-06 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:44:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-06 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:45:06 [end_date_ymd] => 2025-02-06 17:45:06 [RateCDR] => 1 ) [2025-02-06 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:45:06' and `end` < '2025-02-06 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:45:19] Production.INFO: count ==3995 [2025-02-06 17:45:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:45:06 - End Time 2025-02-06 17:45:06 [2025-02-06 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416650', 'tblTempUsageDetail_20' ) start [2025-02-06 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416650', 'tblTempUsageDetail_20' ) end [2025-02-06 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416650', 'tblTempVendorCDR_20' ) start [2025-02-06 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416650', 'tblTempVendorCDR_20' ) end [2025-02-06 17:45:21] Production.INFO: ProcessCDR(1,14416650,1,1,2) [2025-02-06 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416650', 'tblTempUsageDetail_20' ) start [2025-02-06 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416650', 'tblTempUsageDetail_20' ) end [2025-02-06 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:45:27] Production.INFO: ==6705== Releasing lock... [2025-02-06 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:45:27] Production.INFO: 58 MB #Memory Used# [2025-02-06 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:46:06 [end_date_ymd] => 2025-02-06 17:46:06 [RateCDR] => 1 ) [2025-02-06 17: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-06 14:46:06' and `end` < '2025-02-06 17: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-06 17:46:21] Production.INFO: count ==4000 [2025-02-06 17:46:23] Production.ERROR: pbx CDR StartTime 2025-02-06 14:46:06 - End Time 2025-02-06 17:46:06 [2025-02-06 17:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416655', 'tblTempUsageDetail_20' ) start [2025-02-06 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416655', 'tblTempUsageDetail_20' ) end [2025-02-06 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416655', 'tblTempVendorCDR_20' ) start [2025-02-06 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416655', 'tblTempVendorCDR_20' ) end [2025-02-06 17:46:23] Production.INFO: ProcessCDR(1,14416655,1,1,2) [2025-02-06 17:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416655', 'tblTempUsageDetail_20' ) start [2025-02-06 17:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416655', 'tblTempUsageDetail_20' ) end [2025-02-06 17:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:46:29] Production.INFO: ==6794== Releasing lock... [2025-02-06 17:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:46:29] Production.INFO: 58 MB #Memory Used# [2025-02-06 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:47:06 [end_date_ymd] => 2025-02-06 17:47:06 [RateCDR] => 1 ) [2025-02-06 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-06 14:47:06' and `end` < '2025-02-06 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-06 17:47:20] Production.INFO: count ==3992 [2025-02-06 17:47:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:47:06 - End Time 2025-02-06 17:47:06 [2025-02-06 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416660', 'tblTempUsageDetail_20' ) start [2025-02-06 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416660', 'tblTempUsageDetail_20' ) end [2025-02-06 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416660', 'tblTempVendorCDR_20' ) start [2025-02-06 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416660', 'tblTempVendorCDR_20' ) end [2025-02-06 17:47:22] Production.INFO: ProcessCDR(1,14416660,1,1,2) [2025-02-06 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416660', 'tblTempUsageDetail_20' ) start [2025-02-06 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416660', 'tblTempUsageDetail_20' ) end [2025-02-06 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:47:27] Production.INFO: ==6885== Releasing lock... [2025-02-06 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:47:27] Production.INFO: 57.75 MB #Memory Used# [2025-02-06 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:48:06 [end_date_ymd] => 2025-02-06 17:48:06 [RateCDR] => 1 ) [2025-02-06 17: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-06 14:48:06' and `end` < '2025-02-06 17: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-06 17:48:25] Production.INFO: count ==3983 [2025-02-06 17:48:27] Production.ERROR: pbx CDR StartTime 2025-02-06 14:48:06 - End Time 2025-02-06 17:48:06 [2025-02-06 17:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416665', 'tblTempUsageDetail_20' ) start [2025-02-06 17:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416665', 'tblTempUsageDetail_20' ) end [2025-02-06 17:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416665', 'tblTempVendorCDR_20' ) start [2025-02-06 17:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416665', 'tblTempVendorCDR_20' ) end [2025-02-06 17:48:27] Production.INFO: ProcessCDR(1,14416665,1,1,2) [2025-02-06 17:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416665', 'tblTempUsageDetail_20' ) start [2025-02-06 17:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416665', 'tblTempUsageDetail_20' ) end [2025-02-06 17:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:48:33] Production.INFO: ==6975== Releasing lock... [2025-02-06 17:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:48:33] Production.INFO: 58 MB #Memory Used# [2025-02-06 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:49:06 [end_date_ymd] => 2025-02-06 17:49:06 [RateCDR] => 1 ) [2025-02-06 17: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-06 14:49:06' and `end` < '2025-02-06 17: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-06 17:49:19] Production.INFO: count ==3981 [2025-02-06 17:49:21] Production.ERROR: pbx CDR StartTime 2025-02-06 14:49:06 - End Time 2025-02-06 17:49:06 [2025-02-06 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416670', 'tblTempUsageDetail_20' ) start [2025-02-06 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416670', 'tblTempUsageDetail_20' ) end [2025-02-06 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416670', 'tblTempVendorCDR_20' ) start [2025-02-06 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416670', 'tblTempVendorCDR_20' ) end [2025-02-06 17:49:21] Production.INFO: ProcessCDR(1,14416670,1,1,2) [2025-02-06 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416670', 'tblTempUsageDetail_20' ) start [2025-02-06 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416670', 'tblTempUsageDetail_20' ) end [2025-02-06 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:49:27] Production.INFO: ==7069== Releasing lock... [2025-02-06 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:49:27] Production.INFO: 58 MB #Memory Used# [2025-02-06 17:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:50:07 [end_date_ymd] => 2025-02-06 17:50:07 [RateCDR] => 1 ) [2025-02-06 17: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-06 14:50:07' and `end` < '2025-02-06 17: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-06 17:50:22] Production.INFO: count ==3964 [2025-02-06 17:50:24] Production.ERROR: pbx CDR StartTime 2025-02-06 14:50:07 - End Time 2025-02-06 17:50:07 [2025-02-06 17:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416676', 'tblTempUsageDetail_20' ) start [2025-02-06 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416676', 'tblTempUsageDetail_20' ) end [2025-02-06 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416676', 'tblTempVendorCDR_20' ) start [2025-02-06 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416676', 'tblTempVendorCDR_20' ) end [2025-02-06 17:50:24] Production.INFO: ProcessCDR(1,14416676,1,1,2) [2025-02-06 17:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416676', 'tblTempUsageDetail_20' ) start [2025-02-06 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416676', 'tblTempUsageDetail_20' ) end [2025-02-06 17:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:50:29] Production.INFO: ==7159== Releasing lock... [2025-02-06 17:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:50:29] Production.INFO: 57.75 MB #Memory Used# [2025-02-06 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:51:06 [end_date_ymd] => 2025-02-06 17:51:06 [RateCDR] => 1 ) [2025-02-06 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:51:06' and `end` < '2025-02-06 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:51:22] Production.INFO: count ==3976 [2025-02-06 17:51:24] Production.ERROR: pbx CDR StartTime 2025-02-06 14:51:06 - End Time 2025-02-06 17:51:06 [2025-02-06 17:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416681', 'tblTempUsageDetail_20' ) start [2025-02-06 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416681', 'tblTempUsageDetail_20' ) end [2025-02-06 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416681', 'tblTempVendorCDR_20' ) start [2025-02-06 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416681', 'tblTempVendorCDR_20' ) end [2025-02-06 17:51:24] Production.INFO: ProcessCDR(1,14416681,1,1,2) [2025-02-06 17:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416681', 'tblTempUsageDetail_20' ) start [2025-02-06 17:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416681', 'tblTempUsageDetail_20' ) end [2025-02-06 17:51:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:51:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:51:29] Production.INFO: ==7249== Releasing lock... [2025-02-06 17:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:51:29] Production.INFO: 58 MB #Memory Used# [2025-02-06 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:52:06 [end_date_ymd] => 2025-02-06 17:52:06 [RateCDR] => 1 ) [2025-02-06 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:52:06' and `end` < '2025-02-06 17:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:52:22] Production.INFO: count ==3967 [2025-02-06 17:52:23] Production.ERROR: pbx CDR StartTime 2025-02-06 14:52:06 - End Time 2025-02-06 17:52:06 [2025-02-06 17:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416686', 'tblTempUsageDetail_20' ) start [2025-02-06 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416686', 'tblTempUsageDetail_20' ) end [2025-02-06 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416686', 'tblTempVendorCDR_20' ) start [2025-02-06 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416686', 'tblTempVendorCDR_20' ) end [2025-02-06 17:52:23] Production.INFO: ProcessCDR(1,14416686,1,1,2) [2025-02-06 17:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416686', 'tblTempUsageDetail_20' ) start [2025-02-06 17:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416686', 'tblTempUsageDetail_20' ) end [2025-02-06 17:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:52:29] Production.INFO: ==7341== Releasing lock... [2025-02-06 17:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:52:29] Production.INFO: 57.75 MB #Memory Used# [2025-02-06 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:53:06 [end_date_ymd] => 2025-02-06 17:53:06 [RateCDR] => 1 ) [2025-02-06 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:53:06' and `end` < '2025-02-06 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:53:20] Production.INFO: count ==3941 [2025-02-06 17:53:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:53:06 - End Time 2025-02-06 17:53:06 [2025-02-06 17:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416691', 'tblTempUsageDetail_20' ) start [2025-02-06 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416691', 'tblTempUsageDetail_20' ) end [2025-02-06 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416691', 'tblTempVendorCDR_20' ) start [2025-02-06 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416691', 'tblTempVendorCDR_20' ) end [2025-02-06 17:53:22] Production.INFO: ProcessCDR(1,14416691,1,1,2) [2025-02-06 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416691', 'tblTempUsageDetail_20' ) start [2025-02-06 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416691', 'tblTempUsageDetail_20' ) end [2025-02-06 17:53:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:53:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:53:28] Production.INFO: ==7436== Releasing lock... [2025-02-06 17:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:53:28] Production.INFO: 57.75 MB #Memory Used# [2025-02-06 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:54:05 [end_date_ymd] => 2025-02-06 17:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:54:05' and `end` < '2025-02-06 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-06 17:54:21] Production.INFO: count ==3931 [2025-02-06 17:54:23] Production.ERROR: pbx CDR StartTime 2025-02-06 14:54:05 - End Time 2025-02-06 17:54:05 [2025-02-06 17:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416696', 'tblTempUsageDetail_20' ) start [2025-02-06 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416696', 'tblTempUsageDetail_20' ) end [2025-02-06 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416696', 'tblTempVendorCDR_20' ) start [2025-02-06 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416696', 'tblTempVendorCDR_20' ) end [2025-02-06 17:54:23] Production.INFO: ProcessCDR(1,14416696,1,1,2) [2025-02-06 17:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416696', 'tblTempUsageDetail_20' ) start [2025-02-06 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416696', 'tblTempUsageDetail_20' ) end [2025-02-06 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:54:26] Production.INFO: ==7526== Releasing lock... [2025-02-06 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:54:26] Production.INFO: 57.5 MB #Memory Used# [2025-02-06 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:55:05 [end_date_ymd] => 2025-02-06 17:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 14:55:05' and `end` < '2025-02-06 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-06 17:55:20] Production.INFO: count ==3921 [2025-02-06 17:55:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:55:05 - End Time 2025-02-06 17:55:05 [2025-02-06 17:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416701', 'tblTempUsageDetail_20' ) start [2025-02-06 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416701', 'tblTempUsageDetail_20' ) end [2025-02-06 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416701', 'tblTempVendorCDR_20' ) start [2025-02-06 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416701', 'tblTempVendorCDR_20' ) end [2025-02-06 17:55:22] Production.INFO: ProcessCDR(1,14416701,1,1,2) [2025-02-06 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416701', 'tblTempUsageDetail_20' ) start [2025-02-06 17:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416701', 'tblTempUsageDetail_20' ) end [2025-02-06 17:55:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:55:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:55:28] Production.INFO: ==7612== Releasing lock... [2025-02-06 17:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:55:28] Production.INFO: 57.75 MB #Memory Used# [2025-02-06 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:56:04 [end_date_ymd] => 2025-02-06 17:56:04 [RateCDR] => 1 ) [2025-02-06 17:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:56:04' and `end` < '2025-02-06 17:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:56:18] Production.INFO: count ==3912 [2025-02-06 17:56:20] Production.ERROR: pbx CDR StartTime 2025-02-06 14:56:04 - End Time 2025-02-06 17:56:04 [2025-02-06 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416706', 'tblTempUsageDetail_20' ) start [2025-02-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416706', 'tblTempUsageDetail_20' ) end [2025-02-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416706', 'tblTempVendorCDR_20' ) start [2025-02-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416706', 'tblTempVendorCDR_20' ) end [2025-02-06 17:56:20] Production.INFO: ProcessCDR(1,14416706,1,1,2) [2025-02-06 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416706', 'tblTempUsageDetail_20' ) start [2025-02-06 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416706', 'tblTempUsageDetail_20' ) end [2025-02-06 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:56:25] Production.INFO: ==7703== Releasing lock... [2025-02-06 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:56:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-06 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:57:06 [end_date_ymd] => 2025-02-06 17:57:06 [RateCDR] => 1 ) [2025-02-06 17:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 14:57:06' and `end` < '2025-02-06 17:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 17:57:20] Production.INFO: count ==3909 [2025-02-06 17:57:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:57:06 - End Time 2025-02-06 17:57:06 [2025-02-06 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416711', 'tblTempUsageDetail_20' ) start [2025-02-06 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416711', 'tblTempUsageDetail_20' ) end [2025-02-06 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416711', 'tblTempVendorCDR_20' ) start [2025-02-06 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416711', 'tblTempVendorCDR_20' ) end [2025-02-06 17:57:22] Production.INFO: ProcessCDR(1,14416711,1,1,2) [2025-02-06 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416711', 'tblTempUsageDetail_20' ) start [2025-02-06 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416711', 'tblTempUsageDetail_20' ) end [2025-02-06 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:57:27] Production.INFO: ==7801== Releasing lock... [2025-02-06 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:57:27] Production.INFO: 57.25 MB #Memory Used# [2025-02-06 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:58:06 [end_date_ymd] => 2025-02-06 17:58:06 [RateCDR] => 1 ) [2025-02-06 17: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-06 14:58:06' and `end` < '2025-02-06 17: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-06 17:58:21] Production.INFO: count ==3896 [2025-02-06 17:58:22] Production.ERROR: pbx CDR StartTime 2025-02-06 14:58:06 - End Time 2025-02-06 17:58:06 [2025-02-06 17:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416716', 'tblTempUsageDetail_20' ) start [2025-02-06 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416716', 'tblTempUsageDetail_20' ) end [2025-02-06 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416716', 'tblTempVendorCDR_20' ) start [2025-02-06 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416716', 'tblTempVendorCDR_20' ) end [2025-02-06 17:58:22] Production.INFO: ProcessCDR(1,14416716,1,1,2) [2025-02-06 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416716', 'tblTempUsageDetail_20' ) start [2025-02-06 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416716', 'tblTempUsageDetail_20' ) end [2025-02-06 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:58:27] Production.INFO: ==7896== Releasing lock... [2025-02-06 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:58:27] Production.INFO: 57 MB #Memory Used# [2025-02-06 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 14:59:04 [end_date_ymd] => 2025-02-06 17:59:04 [RateCDR] => 1 ) [2025-02-06 17: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-06 14:59:04' and `end` < '2025-02-06 17: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-06 17:59:30] Production.INFO: count ==3884 [2025-02-06 17:59:32] Production.ERROR: pbx CDR StartTime 2025-02-06 14:59:04 - End Time 2025-02-06 17:59:04 [2025-02-06 17:59:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 17:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416721', 'tblTempUsageDetail_20' ) start [2025-02-06 17:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416721', 'tblTempUsageDetail_20' ) end [2025-02-06 17:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416721', 'tblTempVendorCDR_20' ) start [2025-02-06 17:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416721', 'tblTempVendorCDR_20' ) end [2025-02-06 17:59:32] Production.INFO: ProcessCDR(1,14416721,1,1,2) [2025-02-06 17:59:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:59:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 17:59:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:59:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 17:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416721', 'tblTempUsageDetail_20' ) start [2025-02-06 17:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416721', 'tblTempUsageDetail_20' ) end [2025-02-06 17:59:37] Production.ERROR: pbx prc_insertCDR start [2025-02-06 17:59:37] Production.ERROR: pbx prc_insertCDR end [2025-02-06 17:59:37] Production.INFO: ==8028== Releasing lock... [2025-02-06 17:59:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 17:59:37] Production.INFO: 57 MB #Memory Used# [2025-02-06 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:00:06 [end_date_ymd] => 2025-02-06 18:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 15:00:06' and `end` < '2025-02-06 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-06 18:00:28] Production.INFO: count ==3876 [2025-02-06 18:00:29] Production.ERROR: pbx CDR StartTime 2025-02-06 15:00:06 - End Time 2025-02-06 18:00:06 [2025-02-06 18:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416727', 'tblTempUsageDetail_20' ) start [2025-02-06 18:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416727', 'tblTempUsageDetail_20' ) end [2025-02-06 18:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416727', 'tblTempVendorCDR_20' ) start [2025-02-06 18:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416727', 'tblTempVendorCDR_20' ) end [2025-02-06 18:00:30] Production.INFO: ProcessCDR(1,14416727,1,1,2) [2025-02-06 18:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416727', 'tblTempUsageDetail_20' ) start [2025-02-06 18:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416727', 'tblTempUsageDetail_20' ) end [2025-02-06 18:00:34] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:00:34] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:00:34] Production.INFO: ==8103== Releasing lock... [2025-02-06 18:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:00:34] Production.INFO: 57.25 MB #Memory Used# [2025-02-06 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:01:05 [end_date_ymd] => 2025-02-06 18:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:01:05' and `end` < '2025-02-06 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-06 18:01:19] Production.INFO: count ==3889 [2025-02-06 18:01:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:01:05 - End Time 2025-02-06 18:01:05 [2025-02-06 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416732', 'tblTempUsageDetail_20' ) start [2025-02-06 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416732', 'tblTempUsageDetail_20' ) end [2025-02-06 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416732', 'tblTempVendorCDR_20' ) start [2025-02-06 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416732', 'tblTempVendorCDR_20' ) end [2025-02-06 18:01:21] Production.INFO: ProcessCDR(1,14416732,1,1,2) [2025-02-06 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416732', 'tblTempUsageDetail_20' ) start [2025-02-06 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416732', 'tblTempUsageDetail_20' ) end [2025-02-06 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:01:25] Production.INFO: ==8189== Releasing lock... [2025-02-06 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:01:25] Production.INFO: 57 MB #Memory Used# [2025-02-06 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:02:06 [end_date_ymd] => 2025-02-06 18:02:06 [RateCDR] => 1 ) [2025-02-06 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:02:06' and `end` < '2025-02-06 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:02:19] Production.INFO: count ==3883 [2025-02-06 18:02:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:02:06 - End Time 2025-02-06 18:02:06 [2025-02-06 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416737', 'tblTempUsageDetail_20' ) start [2025-02-06 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416737', 'tblTempUsageDetail_20' ) end [2025-02-06 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416737', 'tblTempVendorCDR_20' ) start [2025-02-06 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416737', 'tblTempVendorCDR_20' ) end [2025-02-06 18:02:21] Production.INFO: ProcessCDR(1,14416737,1,1,2) [2025-02-06 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416737', 'tblTempUsageDetail_20' ) start [2025-02-06 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416737', 'tblTempUsageDetail_20' ) end [2025-02-06 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:02:26] Production.INFO: ==8260== Releasing lock... [2025-02-06 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:02:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-06 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:03:05 [end_date_ymd] => 2025-02-06 18:03:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:03:05' and `end` < '2025-02-06 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-06 18:03:21] Production.INFO: count ==3879 [2025-02-06 18:03:22] Production.ERROR: pbx CDR StartTime 2025-02-06 15:03:05 - End Time 2025-02-06 18:03:05 [2025-02-06 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416742', 'tblTempUsageDetail_20' ) start [2025-02-06 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416742', 'tblTempUsageDetail_20' ) end [2025-02-06 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416742', 'tblTempVendorCDR_20' ) start [2025-02-06 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416742', 'tblTempVendorCDR_20' ) end [2025-02-06 18:03:22] Production.INFO: ProcessCDR(1,14416742,1,1,2) [2025-02-06 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416742', 'tblTempUsageDetail_20' ) start [2025-02-06 18:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416742', 'tblTempUsageDetail_20' ) end [2025-02-06 18:03:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:03:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:03:28] Production.INFO: ==8333== Releasing lock... [2025-02-06 18:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:03:28] Production.INFO: 57 MB #Memory Used# [2025-02-06 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:04:06 [end_date_ymd] => 2025-02-06 18:04:06 [RateCDR] => 1 ) [2025-02-06 18: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-06 15:04:06' and `end` < '2025-02-06 18: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-06 18:04:20] Production.INFO: count ==3869 [2025-02-06 18:04:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:04:06 - End Time 2025-02-06 18:04:06 [2025-02-06 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416747', 'tblTempUsageDetail_20' ) start [2025-02-06 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416747', 'tblTempUsageDetail_20' ) end [2025-02-06 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416747', 'tblTempVendorCDR_20' ) start [2025-02-06 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416747', 'tblTempVendorCDR_20' ) end [2025-02-06 18:04:21] Production.INFO: ProcessCDR(1,14416747,1,1,2) [2025-02-06 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416747', 'tblTempUsageDetail_20' ) start [2025-02-06 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416747', 'tblTempUsageDetail_20' ) end [2025-02-06 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:04:27] Production.INFO: ==8407== Releasing lock... [2025-02-06 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:04:27] Production.INFO: 57 MB #Memory Used# [2025-02-06 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:05:05 [end_date_ymd] => 2025-02-06 18:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:05:05' and `end` < '2025-02-06 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-06 18:05:19] Production.INFO: count ==3863 [2025-02-06 18:05:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:05:05 - End Time 2025-02-06 18:05:05 [2025-02-06 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416752', 'tblTempUsageDetail_20' ) start [2025-02-06 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416752', 'tblTempUsageDetail_20' ) end [2025-02-06 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416752', 'tblTempVendorCDR_20' ) start [2025-02-06 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416752', 'tblTempVendorCDR_20' ) end [2025-02-06 18:05:21] Production.INFO: ProcessCDR(1,14416752,1,1,2) [2025-02-06 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416752', 'tblTempUsageDetail_20' ) start [2025-02-06 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416752', 'tblTempUsageDetail_20' ) end [2025-02-06 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:05:26] Production.INFO: ==8479== Releasing lock... [2025-02-06 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:05:26] Production.INFO: 57 MB #Memory Used# [2025-02-06 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:06:06 [end_date_ymd] => 2025-02-06 18:06:06 [RateCDR] => 1 ) [2025-02-06 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:06:06' and `end` < '2025-02-06 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:06:20] Production.INFO: count ==3854 [2025-02-06 18:06:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:06:06 - End Time 2025-02-06 18:06:06 [2025-02-06 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416757', 'tblTempUsageDetail_20' ) start [2025-02-06 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416757', 'tblTempUsageDetail_20' ) end [2025-02-06 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416757', 'tblTempVendorCDR_20' ) start [2025-02-06 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416757', 'tblTempVendorCDR_20' ) end [2025-02-06 18:06:21] Production.INFO: ProcessCDR(1,14416757,1,1,2) [2025-02-06 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416757', 'tblTempUsageDetail_20' ) start [2025-02-06 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416757', 'tblTempUsageDetail_20' ) end [2025-02-06 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:06:26] Production.INFO: ==8554== Releasing lock... [2025-02-06 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:06:26] Production.INFO: 56.75 MB #Memory Used# [2025-02-06 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:07:04 [end_date_ymd] => 2025-02-06 18:07:04 [RateCDR] => 1 ) [2025-02-06 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-06 15:07:04' and `end` < '2025-02-06 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-06 18:07:18] Production.INFO: count ==3858 [2025-02-06 18:07:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:07:04 - End Time 2025-02-06 18:07:04 [2025-02-06 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416762', 'tblTempUsageDetail_20' ) start [2025-02-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416762', 'tblTempUsageDetail_20' ) end [2025-02-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416762', 'tblTempVendorCDR_20' ) start [2025-02-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416762', 'tblTempVendorCDR_20' ) end [2025-02-06 18:07:20] Production.INFO: ProcessCDR(1,14416762,1,1,2) [2025-02-06 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416762', 'tblTempUsageDetail_20' ) start [2025-02-06 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416762', 'tblTempUsageDetail_20' ) end [2025-02-06 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:07:25] Production.INFO: ==8629== Releasing lock... [2025-02-06 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:07:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-06 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:08:05 [end_date_ymd] => 2025-02-06 18:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:08:05' and `end` < '2025-02-06 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-06 18:08:19] Production.INFO: count ==3883 [2025-02-06 18:08:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:08:05 - End Time 2025-02-06 18:08:05 [2025-02-06 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416767', 'tblTempUsageDetail_20' ) start [2025-02-06 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416767', 'tblTempUsageDetail_20' ) end [2025-02-06 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416767', 'tblTempVendorCDR_20' ) start [2025-02-06 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416767', 'tblTempVendorCDR_20' ) end [2025-02-06 18:08:20] Production.INFO: ProcessCDR(1,14416767,1,1,2) [2025-02-06 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416767', 'tblTempUsageDetail_20' ) start [2025-02-06 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416767', 'tblTempUsageDetail_20' ) end [2025-02-06 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:08:25] Production.INFO: ==8701== Releasing lock... [2025-02-06 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:08:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-06 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:09:06 [end_date_ymd] => 2025-02-06 18:09:06 [RateCDR] => 1 ) [2025-02-06 18: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-06 15:09:06' and `end` < '2025-02-06 18: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-06 18:09:19] Production.INFO: count ==3877 [2025-02-06 18:09:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:09:06 - End Time 2025-02-06 18:09:06 [2025-02-06 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416772', 'tblTempUsageDetail_20' ) start [2025-02-06 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416772', 'tblTempUsageDetail_20' ) end [2025-02-06 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416772', 'tblTempVendorCDR_20' ) start [2025-02-06 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416772', 'tblTempVendorCDR_20' ) end [2025-02-06 18:09:21] Production.INFO: ProcessCDR(1,14416772,1,1,2) [2025-02-06 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416772', 'tblTempUsageDetail_20' ) start [2025-02-06 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416772', 'tblTempUsageDetail_20' ) end [2025-02-06 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:09:26] Production.INFO: ==8774== Releasing lock... [2025-02-06 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:09:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-06 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:10:06 [end_date_ymd] => 2025-02-06 18:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 15:10:06' and `end` < '2025-02-06 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-06 18:10:22] Production.INFO: count ==3896 [2025-02-06 18:10:24] Production.ERROR: pbx CDR StartTime 2025-02-06 15:10:06 - End Time 2025-02-06 18:10:06 [2025-02-06 18:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416778', 'tblTempUsageDetail_20' ) start [2025-02-06 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416778', 'tblTempUsageDetail_20' ) end [2025-02-06 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416778', 'tblTempVendorCDR_20' ) start [2025-02-06 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416778', 'tblTempVendorCDR_20' ) end [2025-02-06 18:10:24] Production.INFO: ProcessCDR(1,14416778,1,1,2) [2025-02-06 18:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416778', 'tblTempUsageDetail_20' ) start [2025-02-06 18:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416778', 'tblTempUsageDetail_20' ) end [2025-02-06 18:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:10:29] Production.INFO: ==8845== Releasing lock... [2025-02-06 18:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:10:29] Production.INFO: 57 MB #Memory Used# [2025-02-06 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:11:05 [end_date_ymd] => 2025-02-06 18:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:11:05' and `end` < '2025-02-06 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-06 18:11:21] Production.INFO: count ==3901 [2025-02-06 18:11:22] Production.ERROR: pbx CDR StartTime 2025-02-06 15:11:05 - End Time 2025-02-06 18:11:05 [2025-02-06 18:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416783', 'tblTempUsageDetail_20' ) start [2025-02-06 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416783', 'tblTempUsageDetail_20' ) end [2025-02-06 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416783', 'tblTempVendorCDR_20' ) start [2025-02-06 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416783', 'tblTempVendorCDR_20' ) end [2025-02-06 18:11:22] Production.INFO: ProcessCDR(1,14416783,1,1,2) [2025-02-06 18:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416783', 'tblTempUsageDetail_20' ) start [2025-02-06 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416783', 'tblTempUsageDetail_20' ) end [2025-02-06 18:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:11:27] Production.INFO: ==8928== Releasing lock... [2025-02-06 18:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:11:27] Production.INFO: 57.25 MB #Memory Used# [2025-02-06 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:12:05 [end_date_ymd] => 2025-02-06 18:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:12:05' and `end` < '2025-02-06 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-06 18:12:21] Production.INFO: count ==3894 [2025-02-06 18:12:23] Production.ERROR: pbx CDR StartTime 2025-02-06 15:12:05 - End Time 2025-02-06 18:12:05 [2025-02-06 18:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416788', 'tblTempUsageDetail_20' ) start [2025-02-06 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416788', 'tblTempUsageDetail_20' ) end [2025-02-06 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416788', 'tblTempVendorCDR_20' ) start [2025-02-06 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416788', 'tblTempVendorCDR_20' ) end [2025-02-06 18:12:23] Production.INFO: ProcessCDR(1,14416788,1,1,2) [2025-02-06 18:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416788', 'tblTempUsageDetail_20' ) start [2025-02-06 18:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416788', 'tblTempUsageDetail_20' ) end [2025-02-06 18:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:12:28] Production.INFO: ==8997== Releasing lock... [2025-02-06 18:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:12:28] Production.INFO: 57 MB #Memory Used# [2025-02-06 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:13:06 [end_date_ymd] => 2025-02-06 18:13:06 [RateCDR] => 1 ) [2025-02-06 18: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-06 15:13:06' and `end` < '2025-02-06 18: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-06 18:13:19] Production.INFO: count ==3871 [2025-02-06 18:13:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:13:06 - End Time 2025-02-06 18:13:06 [2025-02-06 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416793', 'tblTempUsageDetail_20' ) start [2025-02-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416793', 'tblTempUsageDetail_20' ) end [2025-02-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416793', 'tblTempVendorCDR_20' ) start [2025-02-06 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416793', 'tblTempVendorCDR_20' ) end [2025-02-06 18:13:21] Production.INFO: ProcessCDR(1,14416793,1,1,2) [2025-02-06 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416793', 'tblTempUsageDetail_20' ) start [2025-02-06 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416793', 'tblTempUsageDetail_20' ) end [2025-02-06 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:13:25] Production.INFO: ==9072== Releasing lock... [2025-02-06 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:13:25] Production.INFO: 57 MB #Memory Used# [2025-02-06 18:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:14:04 [end_date_ymd] => 2025-02-06 18:14:04 [RateCDR] => 1 ) [2025-02-06 18:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:14:04' and `end` < '2025-02-06 18:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:14:18] Production.INFO: count ==3876 [2025-02-06 18:14:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:14:04 - End Time 2025-02-06 18:14:04 [2025-02-06 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416798', 'tblTempUsageDetail_20' ) start [2025-02-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416798', 'tblTempUsageDetail_20' ) end [2025-02-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416798', 'tblTempVendorCDR_20' ) start [2025-02-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416798', 'tblTempVendorCDR_20' ) end [2025-02-06 18:14:20] Production.INFO: ProcessCDR(1,14416798,1,1,2) [2025-02-06 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416798', 'tblTempUsageDetail_20' ) start [2025-02-06 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416798', 'tblTempUsageDetail_20' ) end [2025-02-06 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:14:23] Production.INFO: ==9141== Releasing lock... [2025-02-06 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:14:23] Production.INFO: 57.5 MB #Memory Used# [2025-02-06 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:15:06 [end_date_ymd] => 2025-02-06 18:15:06 [RateCDR] => 1 ) [2025-02-06 18:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:15:06' and `end` < '2025-02-06 18:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:15:19] Production.INFO: count ==3841 [2025-02-06 18:15:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:15:06 - End Time 2025-02-06 18:15:06 [2025-02-06 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416803', 'tblTempUsageDetail_20' ) start [2025-02-06 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416803', 'tblTempUsageDetail_20' ) end [2025-02-06 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416803', 'tblTempVendorCDR_20' ) start [2025-02-06 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416803', 'tblTempVendorCDR_20' ) end [2025-02-06 18:15:21] Production.INFO: ProcessCDR(1,14416803,1,1,2) [2025-02-06 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416803', 'tblTempUsageDetail_20' ) start [2025-02-06 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416803', 'tblTempUsageDetail_20' ) end [2025-02-06 18:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:15:26] Production.INFO: ==9257== Releasing lock... [2025-02-06 18:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:15:26] Production.INFO: 57.75 MB #Memory Used# [2025-02-06 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:16:05 [end_date_ymd] => 2025-02-06 18:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:16:05' and `end` < '2025-02-06 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-06 18:16:19] Production.INFO: count ==3820 [2025-02-06 18:16:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:16:05 - End Time 2025-02-06 18:16:05 [2025-02-06 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416808', 'tblTempUsageDetail_20' ) start [2025-02-06 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416808', 'tblTempUsageDetail_20' ) end [2025-02-06 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416808', 'tblTempVendorCDR_20' ) start [2025-02-06 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416808', 'tblTempVendorCDR_20' ) end [2025-02-06 18:16:20] Production.INFO: ProcessCDR(1,14416808,1,1,2) [2025-02-06 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416808', 'tblTempUsageDetail_20' ) start [2025-02-06 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416808', 'tblTempUsageDetail_20' ) end [2025-02-06 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:16:23] Production.INFO: ==9329== Releasing lock... [2025-02-06 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:16:23] Production.INFO: 57.25 MB #Memory Used# [2025-02-06 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:17:05 [end_date_ymd] => 2025-02-06 18:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:17:05' and `end` < '2025-02-06 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-06 18:17:23] Production.INFO: count ==3814 [2025-02-06 18:17:24] Production.ERROR: pbx CDR StartTime 2025-02-06 15:17:05 - End Time 2025-02-06 18:17:05 [2025-02-06 18:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416813', 'tblTempUsageDetail_20' ) start [2025-02-06 18:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416813', 'tblTempUsageDetail_20' ) end [2025-02-06 18:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416813', 'tblTempVendorCDR_20' ) start [2025-02-06 18:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416813', 'tblTempVendorCDR_20' ) end [2025-02-06 18:17:24] Production.INFO: ProcessCDR(1,14416813,1,1,2) [2025-02-06 18:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416813', 'tblTempUsageDetail_20' ) start [2025-02-06 18:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416813', 'tblTempUsageDetail_20' ) end [2025-02-06 18:17:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:17:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:17:29] Production.INFO: ==9403== Releasing lock... [2025-02-06 18:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:17:29] Production.INFO: 57.25 MB #Memory Used# [2025-02-06 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:18:06 [end_date_ymd] => 2025-02-06 18:18:06 [RateCDR] => 1 ) [2025-02-06 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:18:06' and `end` < '2025-02-06 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:18:22] Production.INFO: count ==3802 [2025-02-06 18:18:23] Production.ERROR: pbx CDR StartTime 2025-02-06 15:18:06 - End Time 2025-02-06 18:18:06 [2025-02-06 18:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416818', 'tblTempUsageDetail_20' ) start [2025-02-06 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416818', 'tblTempUsageDetail_20' ) end [2025-02-06 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416818', 'tblTempVendorCDR_20' ) start [2025-02-06 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416818', 'tblTempVendorCDR_20' ) end [2025-02-06 18:18:23] Production.INFO: ProcessCDR(1,14416818,1,1,2) [2025-02-06 18:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416818', 'tblTempUsageDetail_20' ) start [2025-02-06 18:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416818', 'tblTempUsageDetail_20' ) end [2025-02-06 18:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:18:28] Production.INFO: ==9476== Releasing lock... [2025-02-06 18:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:18:28] Production.INFO: 56.5 MB #Memory Used# [2025-02-06 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:19:05 [end_date_ymd] => 2025-02-06 18:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:19:05' and `end` < '2025-02-06 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-06 18:19:21] Production.INFO: count ==3789 [2025-02-06 18:19:22] Production.ERROR: pbx CDR StartTime 2025-02-06 15:19:05 - End Time 2025-02-06 18:19:05 [2025-02-06 18:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416823', 'tblTempUsageDetail_20' ) start [2025-02-06 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416823', 'tblTempUsageDetail_20' ) end [2025-02-06 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416823', 'tblTempVendorCDR_20' ) start [2025-02-06 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416823', 'tblTempVendorCDR_20' ) end [2025-02-06 18:19:22] Production.INFO: ProcessCDR(1,14416823,1,1,2) [2025-02-06 18:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416823', 'tblTempUsageDetail_20' ) start [2025-02-06 18:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416823', 'tblTempUsageDetail_20' ) end [2025-02-06 18:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:19:28] Production.INFO: ==9552== Releasing lock... [2025-02-06 18:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:19:28] Production.INFO: 56.75 MB #Memory Used# [2025-02-06 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:20:06 [end_date_ymd] => 2025-02-06 18:20:06 [RateCDR] => 1 ) [2025-02-06 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-06 15:20:06' and `end` < '2025-02-06 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-06 18:20:19] Production.INFO: count ==3763 [2025-02-06 18:20:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:20:06 - End Time 2025-02-06 18:20:06 [2025-02-06 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416829', 'tblTempUsageDetail_20' ) start [2025-02-06 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416829', 'tblTempUsageDetail_20' ) end [2025-02-06 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416829', 'tblTempVendorCDR_20' ) start [2025-02-06 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416829', 'tblTempVendorCDR_20' ) end [2025-02-06 18:20:21] Production.INFO: ProcessCDR(1,14416829,1,1,2) [2025-02-06 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416829', 'tblTempUsageDetail_20' ) start [2025-02-06 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416829', 'tblTempUsageDetail_20' ) end [2025-02-06 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:20:26] Production.INFO: ==9642== Releasing lock... [2025-02-06 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:20:26] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:21:05 [end_date_ymd] => 2025-02-06 18:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:21:05' and `end` < '2025-02-06 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-06 18:21:18] Production.INFO: count ==3691 [2025-02-06 18:21:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:21:05 - End Time 2025-02-06 18:21:05 [2025-02-06 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416834', 'tblTempUsageDetail_20' ) start [2025-02-06 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416834', 'tblTempUsageDetail_20' ) end [2025-02-06 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416834', 'tblTempVendorCDR_20' ) start [2025-02-06 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416834', 'tblTempVendorCDR_20' ) end [2025-02-06 18:21:20] Production.INFO: ProcessCDR(1,14416834,1,1,2) [2025-02-06 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416834', 'tblTempUsageDetail_20' ) start [2025-02-06 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416834', 'tblTempUsageDetail_20' ) end [2025-02-06 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:21:24] Production.INFO: ==9716== Releasing lock... [2025-02-06 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:21:24] Production.INFO: 56 MB #Memory Used# [2025-02-06 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:22:05 [end_date_ymd] => 2025-02-06 18:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:22:05' and `end` < '2025-02-06 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-06 18:22:19] Production.INFO: count ==3679 [2025-02-06 18:22:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:22:05 - End Time 2025-02-06 18:22:05 [2025-02-06 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416839', 'tblTempUsageDetail_20' ) start [2025-02-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416839', 'tblTempUsageDetail_20' ) end [2025-02-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416839', 'tblTempVendorCDR_20' ) start [2025-02-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416839', 'tblTempVendorCDR_20' ) end [2025-02-06 18:22:20] Production.INFO: ProcessCDR(1,14416839,1,1,2) [2025-02-06 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416839', 'tblTempUsageDetail_20' ) start [2025-02-06 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416839', 'tblTempUsageDetail_20' ) end [2025-02-06 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:22:25] Production.INFO: ==9797== Releasing lock... [2025-02-06 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:22:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-06 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:23:05 [end_date_ymd] => 2025-02-06 18:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:23:05' and `end` < '2025-02-06 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-06 18:23:18] Production.INFO: count ==3688 [2025-02-06 18:23:19] Production.ERROR: pbx CDR StartTime 2025-02-06 15:23:05 - End Time 2025-02-06 18:23:05 [2025-02-06 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416844', 'tblTempUsageDetail_20' ) start [2025-02-06 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416844', 'tblTempUsageDetail_20' ) end [2025-02-06 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416844', 'tblTempVendorCDR_20' ) start [2025-02-06 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416844', 'tblTempVendorCDR_20' ) end [2025-02-06 18:23:19] Production.INFO: ProcessCDR(1,14416844,1,1,2) [2025-02-06 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416844', 'tblTempUsageDetail_20' ) start [2025-02-06 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416844', 'tblTempUsageDetail_20' ) end [2025-02-06 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:23:23] Production.INFO: ==9871== Releasing lock... [2025-02-06 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:23:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:24:05 [end_date_ymd] => 2025-02-06 18:24:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:24:05' and `end` < '2025-02-06 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-06 18:24:20] Production.INFO: count ==3706 [2025-02-06 18:24:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:24:05 - End Time 2025-02-06 18:24:05 [2025-02-06 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416849', 'tblTempUsageDetail_20' ) start [2025-02-06 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416849', 'tblTempUsageDetail_20' ) end [2025-02-06 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416849', 'tblTempVendorCDR_20' ) start [2025-02-06 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416849', 'tblTempVendorCDR_20' ) end [2025-02-06 18:24:21] Production.INFO: ProcessCDR(1,14416849,1,1,2) [2025-02-06 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416849', 'tblTempUsageDetail_20' ) start [2025-02-06 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416849', 'tblTempUsageDetail_20' ) end [2025-02-06 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:24:25] Production.INFO: ==9947== Releasing lock... [2025-02-06 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:24:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-06 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:25:05 [end_date_ymd] => 2025-02-06 18:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:25:05' and `end` < '2025-02-06 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-06 18:25:19] Production.INFO: count ==3672 [2025-02-06 18:25:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:25:05 - End Time 2025-02-06 18:25:05 [2025-02-06 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416854', 'tblTempUsageDetail_20' ) start [2025-02-06 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416854', 'tblTempUsageDetail_20' ) end [2025-02-06 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416854', 'tblTempVendorCDR_20' ) start [2025-02-06 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416854', 'tblTempVendorCDR_20' ) end [2025-02-06 18:25:20] Production.INFO: ProcessCDR(1,14416854,1,1,2) [2025-02-06 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416854', 'tblTempUsageDetail_20' ) start [2025-02-06 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416854', 'tblTempUsageDetail_20' ) end [2025-02-06 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:25:24] Production.INFO: ==10025== Releasing lock... [2025-02-06 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:25:24] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:26:05 [end_date_ymd] => 2025-02-06 18:26:05 [RateCDR] => 1 ) [2025-02-06 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:26:05' and `end` < '2025-02-06 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:26:18] Production.INFO: count ==3658 [2025-02-06 18:26:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:26:05 - End Time 2025-02-06 18:26:05 [2025-02-06 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416859', 'tblTempUsageDetail_20' ) start [2025-02-06 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416859', 'tblTempUsageDetail_20' ) end [2025-02-06 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416859', 'tblTempVendorCDR_20' ) start [2025-02-06 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416859', 'tblTempVendorCDR_20' ) end [2025-02-06 18:26:20] Production.INFO: ProcessCDR(1,14416859,1,1,2) [2025-02-06 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416859', 'tblTempUsageDetail_20' ) start [2025-02-06 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416859', 'tblTempUsageDetail_20' ) end [2025-02-06 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:26:24] Production.INFO: ==10105== Releasing lock... [2025-02-06 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:26:24] Production.INFO: 56 MB #Memory Used# [2025-02-06 18:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:27:05 [end_date_ymd] => 2025-02-06 18:27:05 [RateCDR] => 1 ) [2025-02-06 18: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-06 15:27:05' and `end` < '2025-02-06 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-06 18:27:20] Production.INFO: count ==3732 [2025-02-06 18:27:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:27:05 - End Time 2025-02-06 18:27:05 [2025-02-06 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416864', 'tblTempUsageDetail_20' ) start [2025-02-06 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416864', 'tblTempUsageDetail_20' ) end [2025-02-06 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416864', 'tblTempVendorCDR_20' ) start [2025-02-06 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416864', 'tblTempVendorCDR_20' ) end [2025-02-06 18:27:21] Production.INFO: ProcessCDR(1,14416864,1,1,2) [2025-02-06 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416864', 'tblTempUsageDetail_20' ) start [2025-02-06 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416864', 'tblTempUsageDetail_20' ) end [2025-02-06 18:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:27:25] Production.INFO: ==10182== Releasing lock... [2025-02-06 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:27:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-06 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:28:05 [end_date_ymd] => 2025-02-06 18:28:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:28:05' and `end` < '2025-02-06 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-06 18:28:19] Production.INFO: count ==3724 [2025-02-06 18:28:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:28:05 - End Time 2025-02-06 18:28:05 [2025-02-06 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416869', 'tblTempUsageDetail_20' ) start [2025-02-06 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416869', 'tblTempUsageDetail_20' ) end [2025-02-06 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416869', 'tblTempVendorCDR_20' ) start [2025-02-06 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416869', 'tblTempVendorCDR_20' ) end [2025-02-06 18:28:20] Production.INFO: ProcessCDR(1,14416869,1,1,2) [2025-02-06 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416869', 'tblTempUsageDetail_20' ) start [2025-02-06 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416869', 'tblTempUsageDetail_20' ) end [2025-02-06 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:28:23] Production.INFO: ==10261== Releasing lock... [2025-02-06 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:28:23] Production.INFO: 57 MB #Memory Used# [2025-02-06 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:29:05 [end_date_ymd] => 2025-02-06 18:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:29:05' and `end` < '2025-02-06 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-06 18:29:19] Production.INFO: count ==3697 [2025-02-06 18:29:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:29:05 - End Time 2025-02-06 18:29:05 [2025-02-06 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416874', 'tblTempUsageDetail_20' ) start [2025-02-06 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416874', 'tblTempUsageDetail_20' ) end [2025-02-06 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416874', 'tblTempVendorCDR_20' ) start [2025-02-06 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416874', 'tblTempVendorCDR_20' ) end [2025-02-06 18:29:20] Production.INFO: ProcessCDR(1,14416874,1,1,2) [2025-02-06 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416874', 'tblTempUsageDetail_20' ) start [2025-02-06 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416874', 'tblTempUsageDetail_20' ) end [2025-02-06 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:29:23] Production.INFO: ==10335== Releasing lock... [2025-02-06 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:29:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:30:06 [end_date_ymd] => 2025-02-06 18:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 15:30:06' and `end` < '2025-02-06 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-06 18:30:22] Production.INFO: count ==3699 [2025-02-06 18:30:23] Production.ERROR: pbx CDR StartTime 2025-02-06 15:30:06 - End Time 2025-02-06 18:30:06 [2025-02-06 18:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416880', 'tblTempUsageDetail_20' ) start [2025-02-06 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416880', 'tblTempUsageDetail_20' ) end [2025-02-06 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416880', 'tblTempVendorCDR_20' ) start [2025-02-06 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416880', 'tblTempVendorCDR_20' ) end [2025-02-06 18:30:24] Production.INFO: ProcessCDR(1,14416880,1,1,2) [2025-02-06 18:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416880', 'tblTempUsageDetail_20' ) start [2025-02-06 18:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416880', 'tblTempUsageDetail_20' ) end [2025-02-06 18:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:30:27] Production.INFO: ==10451== Releasing lock... [2025-02-06 18:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:30:27] Production.INFO: 55.75 MB #Memory Used# [2025-02-06 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:31:04 [end_date_ymd] => 2025-02-06 18:31:04 [RateCDR] => 1 ) [2025-02-06 18:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:31:04' and `end` < '2025-02-06 18:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:31:18] Production.INFO: count ==3665 [2025-02-06 18:31:19] Production.ERROR: pbx CDR StartTime 2025-02-06 15:31:04 - End Time 2025-02-06 18:31:04 [2025-02-06 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416885', 'tblTempUsageDetail_20' ) start [2025-02-06 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416885', 'tblTempUsageDetail_20' ) end [2025-02-06 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416885', 'tblTempVendorCDR_20' ) start [2025-02-06 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416885', 'tblTempVendorCDR_20' ) end [2025-02-06 18:31:19] Production.INFO: ProcessCDR(1,14416885,1,1,2) [2025-02-06 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416885', 'tblTempUsageDetail_20' ) start [2025-02-06 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416885', 'tblTempUsageDetail_20' ) end [2025-02-06 18:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:31:22] Production.INFO: ==10531== Releasing lock... [2025-02-06 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:31:22] Production.INFO: 55.5 MB #Memory Used# [2025-02-06 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:32:06 [end_date_ymd] => 2025-02-06 18:32:06 [RateCDR] => 1 ) [2025-02-06 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-06 15:32:06' and `end` < '2025-02-06 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-06 18:32:23] Production.INFO: count ==3643 [2025-02-06 18:32:24] Production.ERROR: pbx CDR StartTime 2025-02-06 15:32:06 - End Time 2025-02-06 18:32:06 [2025-02-06 18:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416890', 'tblTempUsageDetail_20' ) start [2025-02-06 18:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416890', 'tblTempUsageDetail_20' ) end [2025-02-06 18:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416890', 'tblTempVendorCDR_20' ) start [2025-02-06 18:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416890', 'tblTempVendorCDR_20' ) end [2025-02-06 18:32:24] Production.INFO: ProcessCDR(1,14416890,1,1,2) [2025-02-06 18:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416890', 'tblTempUsageDetail_20' ) start [2025-02-06 18:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416890', 'tblTempUsageDetail_20' ) end [2025-02-06 18:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:32:28] Production.INFO: ==10641== Releasing lock... [2025-02-06 18:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:32:28] Production.INFO: 55.25 MB #Memory Used# [2025-02-06 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:33:05 [end_date_ymd] => 2025-02-06 18:33:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:33:05' and `end` < '2025-02-06 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-06 18:33:20] Production.INFO: count ==3626 [2025-02-06 18:33:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:33:05 - End Time 2025-02-06 18:33:05 [2025-02-06 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416895', 'tblTempUsageDetail_20' ) start [2025-02-06 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416895', 'tblTempUsageDetail_20' ) end [2025-02-06 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416895', 'tblTempVendorCDR_20' ) start [2025-02-06 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416895', 'tblTempVendorCDR_20' ) end [2025-02-06 18:33:21] Production.INFO: ProcessCDR(1,14416895,1,1,2) [2025-02-06 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416895', 'tblTempUsageDetail_20' ) start [2025-02-06 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416895', 'tblTempUsageDetail_20' ) end [2025-02-06 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:33:24] Production.INFO: ==10755== Releasing lock... [2025-02-06 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:33:24] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:34:06 [end_date_ymd] => 2025-02-06 18:34:06 [RateCDR] => 1 ) [2025-02-06 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-06 15:34:06' and `end` < '2025-02-06 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-06 18:34:19] Production.INFO: count ==3617 [2025-02-06 18:34:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:34:06 - End Time 2025-02-06 18:34:06 [2025-02-06 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416900', 'tblTempUsageDetail_20' ) start [2025-02-06 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416900', 'tblTempUsageDetail_20' ) end [2025-02-06 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416900', 'tblTempVendorCDR_20' ) start [2025-02-06 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416900', 'tblTempVendorCDR_20' ) end [2025-02-06 18:34:21] Production.INFO: ProcessCDR(1,14416900,1,1,2) [2025-02-06 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416900', 'tblTempUsageDetail_20' ) start [2025-02-06 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416900', 'tblTempUsageDetail_20' ) end [2025-02-06 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:34:24] Production.INFO: ==10867== Releasing lock... [2025-02-06 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:34:24] Production.INFO: 55.25 MB #Memory Used# [2025-02-06 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:35:05 [end_date_ymd] => 2025-02-06 18:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:35:05' and `end` < '2025-02-06 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-06 18:35:20] Production.INFO: count ==3601 [2025-02-06 18:35:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:35:05 - End Time 2025-02-06 18:35:05 [2025-02-06 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416905', 'tblTempUsageDetail_20' ) start [2025-02-06 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416905', 'tblTempUsageDetail_20' ) end [2025-02-06 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416905', 'tblTempVendorCDR_20' ) start [2025-02-06 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416905', 'tblTempVendorCDR_20' ) end [2025-02-06 18:35:21] Production.INFO: ProcessCDR(1,14416905,1,1,2) [2025-02-06 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416905', 'tblTempUsageDetail_20' ) start [2025-02-06 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416905', 'tblTempUsageDetail_20' ) end [2025-02-06 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:35:24] Production.INFO: ==10943== Releasing lock... [2025-02-06 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:35:24] Production.INFO: 55.25 MB #Memory Used# [2025-02-06 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:36:05 [end_date_ymd] => 2025-02-06 18:36:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:36:05' and `end` < '2025-02-06 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-06 18:36:21] Production.INFO: count ==3580 [2025-02-06 18:36:22] Production.ERROR: pbx CDR StartTime 2025-02-06 15:36:05 - End Time 2025-02-06 18:36:05 [2025-02-06 18:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416910', 'tblTempUsageDetail_20' ) start [2025-02-06 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416910', 'tblTempUsageDetail_20' ) end [2025-02-06 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416910', 'tblTempVendorCDR_20' ) start [2025-02-06 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416910', 'tblTempVendorCDR_20' ) end [2025-02-06 18:36:22] Production.INFO: ProcessCDR(1,14416910,1,1,2) [2025-02-06 18:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416910', 'tblTempUsageDetail_20' ) start [2025-02-06 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416910', 'tblTempUsageDetail_20' ) end [2025-02-06 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:36:25] Production.INFO: ==11045== Releasing lock... [2025-02-06 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:36:25] Production.INFO: 55.5 MB #Memory Used# [2025-02-06 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:37:05 [end_date_ymd] => 2025-02-06 18:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:37:05' and `end` < '2025-02-06 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-06 18:37:22] Production.INFO: count ==3592 [2025-02-06 18:37:23] Production.ERROR: pbx CDR StartTime 2025-02-06 15:37:05 - End Time 2025-02-06 18:37:05 [2025-02-06 18:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416915', 'tblTempUsageDetail_20' ) start [2025-02-06 18:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416915', 'tblTempUsageDetail_20' ) end [2025-02-06 18:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416915', 'tblTempVendorCDR_20' ) start [2025-02-06 18:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416915', 'tblTempVendorCDR_20' ) end [2025-02-06 18:37:23] Production.INFO: ProcessCDR(1,14416915,1,1,2) [2025-02-06 18:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416915', 'tblTempUsageDetail_20' ) start [2025-02-06 18:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416915', 'tblTempUsageDetail_20' ) end [2025-02-06 18:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:37:27] Production.INFO: ==11130== Releasing lock... [2025-02-06 18:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:37:27] Production.INFO: 55.25 MB #Memory Used# [2025-02-06 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:38:05 [end_date_ymd] => 2025-02-06 18:38:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:38:05' and `end` < '2025-02-06 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-06 18:38:21] Production.INFO: count ==3598 [2025-02-06 18:38:22] Production.ERROR: pbx CDR StartTime 2025-02-06 15:38:05 - End Time 2025-02-06 18:38:05 [2025-02-06 18:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416920', 'tblTempUsageDetail_20' ) start [2025-02-06 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416920', 'tblTempUsageDetail_20' ) end [2025-02-06 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416920', 'tblTempVendorCDR_20' ) start [2025-02-06 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416920', 'tblTempVendorCDR_20' ) end [2025-02-06 18:38:22] Production.INFO: ProcessCDR(1,14416920,1,1,2) [2025-02-06 18:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416920', 'tblTempUsageDetail_20' ) start [2025-02-06 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416920', 'tblTempUsageDetail_20' ) end [2025-02-06 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:38:26] Production.INFO: ==11218== Releasing lock... [2025-02-06 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:38:26] Production.INFO: 55.25 MB #Memory Used# [2025-02-06 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:39:06 [end_date_ymd] => 2025-02-06 18:39:06 [RateCDR] => 1 ) [2025-02-06 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:39:06' and `end` < '2025-02-06 18:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:39:20] Production.INFO: count ==3594 [2025-02-06 18:39:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:39:06 - End Time 2025-02-06 18:39:06 [2025-02-06 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416925', 'tblTempUsageDetail_20' ) start [2025-02-06 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416925', 'tblTempUsageDetail_20' ) end [2025-02-06 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416925', 'tblTempVendorCDR_20' ) start [2025-02-06 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416925', 'tblTempVendorCDR_20' ) end [2025-02-06 18:39:21] Production.INFO: ProcessCDR(1,14416925,1,1,2) [2025-02-06 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416925', 'tblTempUsageDetail_20' ) start [2025-02-06 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416925', 'tblTempUsageDetail_20' ) end [2025-02-06 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:39:24] Production.INFO: ==11308== Releasing lock... [2025-02-06 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:39:24] Production.INFO: 55.5 MB #Memory Used# [2025-02-06 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:40:05 [end_date_ymd] => 2025-02-06 18:40:05 [RateCDR] => 1 ) [2025-02-06 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:40:05' and `end` < '2025-02-06 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:40:19] Production.INFO: count ==3585 [2025-02-06 18:40:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:40:05 - End Time 2025-02-06 18:40:05 [2025-02-06 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416931', 'tblTempUsageDetail_20' ) start [2025-02-06 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416931', 'tblTempUsageDetail_20' ) end [2025-02-06 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416931', 'tblTempVendorCDR_20' ) start [2025-02-06 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416931', 'tblTempVendorCDR_20' ) end [2025-02-06 18:40:21] Production.INFO: ProcessCDR(1,14416931,1,1,2) [2025-02-06 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416931', 'tblTempUsageDetail_20' ) start [2025-02-06 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416931', 'tblTempUsageDetail_20' ) end [2025-02-06 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:40:24] Production.INFO: ==11391== Releasing lock... [2025-02-06 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:40:24] Production.INFO: 55 MB #Memory Used# [2025-02-06 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:41:05 [end_date_ymd] => 2025-02-06 18:41:05 [RateCDR] => 1 ) [2025-02-06 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:41:05' and `end` < '2025-02-06 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:41:19] Production.INFO: count ==3548 [2025-02-06 18:41:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:41:05 - End Time 2025-02-06 18:41:05 [2025-02-06 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416936', 'tblTempUsageDetail_20' ) start [2025-02-06 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416936', 'tblTempUsageDetail_20' ) end [2025-02-06 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416936', 'tblTempVendorCDR_20' ) start [2025-02-06 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416936', 'tblTempVendorCDR_20' ) end [2025-02-06 18:41:20] Production.INFO: ProcessCDR(1,14416936,1,1,2) [2025-02-06 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416936', 'tblTempUsageDetail_20' ) start [2025-02-06 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416936', 'tblTempUsageDetail_20' ) end [2025-02-06 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:41:25] Production.INFO: ==11479== Releasing lock... [2025-02-06 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:41:25] Production.INFO: 55 MB #Memory Used# [2025-02-06 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:42:05 [end_date_ymd] => 2025-02-06 18:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:42:05' and `end` < '2025-02-06 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-06 18:42:24] Production.INFO: count ==3537 [2025-02-06 18:42:26] Production.ERROR: pbx CDR StartTime 2025-02-06 15:42:05 - End Time 2025-02-06 18:42:05 [2025-02-06 18:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416941', 'tblTempUsageDetail_20' ) start [2025-02-06 18:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416941', 'tblTempUsageDetail_20' ) end [2025-02-06 18:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416941', 'tblTempVendorCDR_20' ) start [2025-02-06 18:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416941', 'tblTempVendorCDR_20' ) end [2025-02-06 18:42:26] Production.INFO: ProcessCDR(1,14416941,1,1,2) [2025-02-06 18:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416941', 'tblTempUsageDetail_20' ) start [2025-02-06 18:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416941', 'tblTempUsageDetail_20' ) end [2025-02-06 18:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:42:30] Production.INFO: ==11579== Releasing lock... [2025-02-06 18:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:42:30] Production.INFO: 54.5 MB #Memory Used# [2025-02-06 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:43:05 [end_date_ymd] => 2025-02-06 18:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:43:05' and `end` < '2025-02-06 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-06 18:43:20] Production.INFO: count ==3516 [2025-02-06 18:43:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:43:05 - End Time 2025-02-06 18:43:05 [2025-02-06 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416946', 'tblTempUsageDetail_20' ) start [2025-02-06 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416946', 'tblTempUsageDetail_20' ) end [2025-02-06 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416946', 'tblTempVendorCDR_20' ) start [2025-02-06 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416946', 'tblTempVendorCDR_20' ) end [2025-02-06 18:43:21] Production.INFO: ProcessCDR(1,14416946,1,1,2) [2025-02-06 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416946', 'tblTempUsageDetail_20' ) start [2025-02-06 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416946', 'tblTempUsageDetail_20' ) end [2025-02-06 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:43:24] Production.INFO: ==11663== Releasing lock... [2025-02-06 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:43:24] Production.INFO: 54.75 MB #Memory Used# [2025-02-06 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:44:05 [end_date_ymd] => 2025-02-06 18:44:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:44:05' and `end` < '2025-02-06 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-06 18:44:20] Production.INFO: count ==3517 [2025-02-06 18:44:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:44:05 - End Time 2025-02-06 18:44:05 [2025-02-06 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416951', 'tblTempUsageDetail_20' ) start [2025-02-06 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416951', 'tblTempUsageDetail_20' ) end [2025-02-06 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416951', 'tblTempVendorCDR_20' ) start [2025-02-06 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416951', 'tblTempVendorCDR_20' ) end [2025-02-06 18:44:21] Production.INFO: ProcessCDR(1,14416951,1,1,2) [2025-02-06 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416951', 'tblTempUsageDetail_20' ) start [2025-02-06 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416951', 'tblTempUsageDetail_20' ) end [2025-02-06 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:44:24] Production.INFO: ==11741== Releasing lock... [2025-02-06 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:44:24] Production.INFO: 56.25 MB #Memory Used# [2025-02-06 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:45:05 [end_date_ymd] => 2025-02-06 18:45:05 [RateCDR] => 1 ) [2025-02-06 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:45:05' and `end` < '2025-02-06 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:45:19] Production.INFO: count ==3507 [2025-02-06 18:45:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:45:05 - End Time 2025-02-06 18:45:05 [2025-02-06 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416956', 'tblTempUsageDetail_20' ) start [2025-02-06 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416956', 'tblTempUsageDetail_20' ) end [2025-02-06 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416956', 'tblTempVendorCDR_20' ) start [2025-02-06 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416956', 'tblTempVendorCDR_20' ) end [2025-02-06 18:45:20] Production.INFO: ProcessCDR(1,14416956,1,1,2) [2025-02-06 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416956', 'tblTempUsageDetail_20' ) start [2025-02-06 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416956', 'tblTempUsageDetail_20' ) end [2025-02-06 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:45:23] Production.INFO: ==11830== Releasing lock... [2025-02-06 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:45:23] Production.INFO: 55.25 MB #Memory Used# [2025-02-06 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:46:05 [end_date_ymd] => 2025-02-06 18:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:46:05' and `end` < '2025-02-06 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-06 18:46:20] Production.INFO: count ==3494 [2025-02-06 18:46:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:46:05 - End Time 2025-02-06 18:46:05 [2025-02-06 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416961', 'tblTempUsageDetail_20' ) start [2025-02-06 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416961', 'tblTempUsageDetail_20' ) end [2025-02-06 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416961', 'tblTempVendorCDR_20' ) start [2025-02-06 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416961', 'tblTempVendorCDR_20' ) end [2025-02-06 18:46:21] Production.INFO: ProcessCDR(1,14416961,1,1,2) [2025-02-06 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416961', 'tblTempUsageDetail_20' ) start [2025-02-06 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416961', 'tblTempUsageDetail_20' ) end [2025-02-06 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:46:25] Production.INFO: ==11958== Releasing lock... [2025-02-06 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:46:25] Production.INFO: 54 MB #Memory Used# [2025-02-06 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:47:05 [end_date_ymd] => 2025-02-06 18:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:47:05' and `end` < '2025-02-06 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-06 18:47:19] Production.INFO: count ==3485 [2025-02-06 18:47:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:47:05 - End Time 2025-02-06 18:47:05 [2025-02-06 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416966', 'tblTempUsageDetail_20' ) start [2025-02-06 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416966', 'tblTempUsageDetail_20' ) end [2025-02-06 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416966', 'tblTempVendorCDR_20' ) start [2025-02-06 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416966', 'tblTempVendorCDR_20' ) end [2025-02-06 18:47:21] Production.INFO: ProcessCDR(1,14416966,1,1,2) [2025-02-06 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416966', 'tblTempUsageDetail_20' ) start [2025-02-06 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416966', 'tblTempUsageDetail_20' ) end [2025-02-06 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:47:24] Production.INFO: ==12039== Releasing lock... [2025-02-06 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:47:24] Production.INFO: 54 MB #Memory Used# [2025-02-06 18:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:48:04 [end_date_ymd] => 2025-02-06 18:48:04 [RateCDR] => 1 ) [2025-02-06 18:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:48:04' and `end` < '2025-02-06 18:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:48:18] Production.INFO: count ==3477 [2025-02-06 18:48:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:48:04 - End Time 2025-02-06 18:48:04 [2025-02-06 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416971', 'tblTempUsageDetail_20' ) start [2025-02-06 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416971', 'tblTempUsageDetail_20' ) end [2025-02-06 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416971', 'tblTempVendorCDR_20' ) start [2025-02-06 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416971', 'tblTempVendorCDR_20' ) end [2025-02-06 18:48:20] Production.INFO: ProcessCDR(1,14416971,1,1,2) [2025-02-06 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416971', 'tblTempUsageDetail_20' ) start [2025-02-06 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416971', 'tblTempUsageDetail_20' ) end [2025-02-06 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:48:23] Production.INFO: ==12128== Releasing lock... [2025-02-06 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:48:23] Production.INFO: 54.75 MB #Memory Used# [2025-02-06 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:49:05 [end_date_ymd] => 2025-02-06 18:49:05 [RateCDR] => 1 ) [2025-02-06 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:49:05' and `end` < '2025-02-06 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:49:19] Production.INFO: count ==3445 [2025-02-06 18:49:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:49:05 - End Time 2025-02-06 18:49:05 [2025-02-06 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416976', 'tblTempUsageDetail_20' ) start [2025-02-06 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416976', 'tblTempUsageDetail_20' ) end [2025-02-06 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416976', 'tblTempVendorCDR_20' ) start [2025-02-06 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416976', 'tblTempVendorCDR_20' ) end [2025-02-06 18:49:20] Production.INFO: ProcessCDR(1,14416976,1,1,2) [2025-02-06 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416976', 'tblTempUsageDetail_20' ) start [2025-02-06 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416976', 'tblTempUsageDetail_20' ) end [2025-02-06 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:49:23] Production.INFO: ==12217== Releasing lock... [2025-02-06 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:49:23] Production.INFO: 54.75 MB #Memory Used# [2025-02-06 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:50:06 [end_date_ymd] => 2025-02-06 18:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 15:50:06' and `end` < '2025-02-06 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:50:19] Production.INFO: count ==3447 [2025-02-06 18:50:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:50:06 - End Time 2025-02-06 18:50:06 [2025-02-06 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416982', 'tblTempUsageDetail_20' ) start [2025-02-06 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416982', 'tblTempUsageDetail_20' ) end [2025-02-06 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416982', 'tblTempVendorCDR_20' ) start [2025-02-06 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416982', 'tblTempVendorCDR_20' ) end [2025-02-06 18:50:21] Production.INFO: ProcessCDR(1,14416982,1,1,2) [2025-02-06 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416982', 'tblTempUsageDetail_20' ) start [2025-02-06 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416982', 'tblTempUsageDetail_20' ) end [2025-02-06 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:50:25] Production.INFO: ==12303== Releasing lock... [2025-02-06 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:50:25] Production.INFO: 54 MB #Memory Used# [2025-02-06 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:51:05 [end_date_ymd] => 2025-02-06 18:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:51:05' and `end` < '2025-02-06 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-06 18:51:20] Production.INFO: count ==3399 [2025-02-06 18:51:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:51:05 - End Time 2025-02-06 18:51:05 [2025-02-06 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416987', 'tblTempUsageDetail_20' ) start [2025-02-06 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416987', 'tblTempUsageDetail_20' ) end [2025-02-06 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416987', 'tblTempVendorCDR_20' ) start [2025-02-06 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416987', 'tblTempVendorCDR_20' ) end [2025-02-06 18:51:21] Production.INFO: ProcessCDR(1,14416987,1,1,2) [2025-02-06 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416987', 'tblTempUsageDetail_20' ) start [2025-02-06 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416987', 'tblTempUsageDetail_20' ) end [2025-02-06 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:51:24] Production.INFO: ==12389== Releasing lock... [2025-02-06 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:51:24] Production.INFO: 53.75 MB #Memory Used# [2025-02-06 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:52:05 [end_date_ymd] => 2025-02-06 18:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:52:05' and `end` < '2025-02-06 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-06 18:52:19] Production.INFO: count ==3380 [2025-02-06 18:52:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:52:05 - End Time 2025-02-06 18:52:05 [2025-02-06 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416992', 'tblTempUsageDetail_20' ) start [2025-02-06 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416992', 'tblTempUsageDetail_20' ) end [2025-02-06 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416992', 'tblTempVendorCDR_20' ) start [2025-02-06 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416992', 'tblTempVendorCDR_20' ) end [2025-02-06 18:52:20] Production.INFO: ProcessCDR(1,14416992,1,1,2) [2025-02-06 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416992', 'tblTempUsageDetail_20' ) start [2025-02-06 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416992', 'tblTempUsageDetail_20' ) end [2025-02-06 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:52:25] Production.INFO: ==12481== Releasing lock... [2025-02-06 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:52:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-06 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:53:04 [end_date_ymd] => 2025-02-06 18:53:04 [RateCDR] => 1 ) [2025-02-06 18: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-06 15:53:04' and `end` < '2025-02-06 18: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-06 18:53:19] Production.INFO: count ==3389 [2025-02-06 18:53:21] Production.ERROR: pbx CDR StartTime 2025-02-06 15:53:04 - End Time 2025-02-06 18:53:04 [2025-02-06 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416997', 'tblTempUsageDetail_20' ) start [2025-02-06 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14416997', 'tblTempUsageDetail_20' ) end [2025-02-06 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416997', 'tblTempVendorCDR_20' ) start [2025-02-06 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14416997', 'tblTempVendorCDR_20' ) end [2025-02-06 18:53:21] Production.INFO: ProcessCDR(1,14416997,1,1,2) [2025-02-06 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14416997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14416997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14416997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14416997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416997', 'tblTempUsageDetail_20' ) start [2025-02-06 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14416997', 'tblTempUsageDetail_20' ) end [2025-02-06 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:53:24] Production.INFO: ==12567== Releasing lock... [2025-02-06 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:53:24] Production.INFO: 54.25 MB #Memory Used# [2025-02-06 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:54:05 [end_date_ymd] => 2025-02-06 18:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:54:05' and `end` < '2025-02-06 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-06 18:54:19] Production.INFO: count ==3370 [2025-02-06 18:54:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:54:05 - End Time 2025-02-06 18:54:05 [2025-02-06 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417002', 'tblTempUsageDetail_20' ) start [2025-02-06 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417002', 'tblTempUsageDetail_20' ) end [2025-02-06 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417002', 'tblTempVendorCDR_20' ) start [2025-02-06 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417002', 'tblTempVendorCDR_20' ) end [2025-02-06 18:54:20] Production.INFO: ProcessCDR(1,14417002,1,1,2) [2025-02-06 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417002', 'tblTempUsageDetail_20' ) start [2025-02-06 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417002', 'tblTempUsageDetail_20' ) end [2025-02-06 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:54:24] Production.INFO: ==12657== Releasing lock... [2025-02-06 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:54:24] Production.INFO: 53.75 MB #Memory Used# [2025-02-06 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:55:05 [end_date_ymd] => 2025-02-06 18:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:55:05' and `end` < '2025-02-06 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-06 18:55:19] Production.INFO: count ==3356 [2025-02-06 18:55:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:55:05 - End Time 2025-02-06 18:55:05 [2025-02-06 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417007', 'tblTempUsageDetail_20' ) start [2025-02-06 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417007', 'tblTempUsageDetail_20' ) end [2025-02-06 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417007', 'tblTempVendorCDR_20' ) start [2025-02-06 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417007', 'tblTempVendorCDR_20' ) end [2025-02-06 18:55:20] Production.INFO: ProcessCDR(1,14417007,1,1,2) [2025-02-06 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417007', 'tblTempUsageDetail_20' ) start [2025-02-06 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417007', 'tblTempUsageDetail_20' ) end [2025-02-06 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:55:24] Production.INFO: ==12742== Releasing lock... [2025-02-06 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:55:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-06 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:56:05 [end_date_ymd] => 2025-02-06 18:56:05 [RateCDR] => 1 ) [2025-02-06 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 15:56:05' and `end` < '2025-02-06 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 18:56:19] Production.INFO: count ==3333 [2025-02-06 18:56:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:56:05 - End Time 2025-02-06 18:56:05 [2025-02-06 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417011', 'tblTempUsageDetail_20' ) start [2025-02-06 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417011', 'tblTempUsageDetail_20' ) end [2025-02-06 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417011', 'tblTempVendorCDR_20' ) start [2025-02-06 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417011', 'tblTempVendorCDR_20' ) end [2025-02-06 18:56:20] Production.INFO: ProcessCDR(1,14417011,1,1,2) [2025-02-06 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417011', 'tblTempUsageDetail_20' ) start [2025-02-06 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417011', 'tblTempUsageDetail_20' ) end [2025-02-06 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:56:23] Production.INFO: ==12830== Releasing lock... [2025-02-06 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:56:23] Production.INFO: 53.25 MB #Memory Used# [2025-02-06 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:57:05 [end_date_ymd] => 2025-02-06 18:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:57:05' and `end` < '2025-02-06 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-06 18:57:19] Production.INFO: count ==3294 [2025-02-06 18:57:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:57:05 - End Time 2025-02-06 18:57:05 [2025-02-06 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417017', 'tblTempUsageDetail_20' ) start [2025-02-06 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417017', 'tblTempUsageDetail_20' ) end [2025-02-06 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417017', 'tblTempVendorCDR_20' ) start [2025-02-06 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417017', 'tblTempVendorCDR_20' ) end [2025-02-06 18:57:20] Production.INFO: ProcessCDR(1,14417017,1,1,2) [2025-02-06 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417017', 'tblTempUsageDetail_20' ) start [2025-02-06 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417017', 'tblTempUsageDetail_20' ) end [2025-02-06 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:57:23] Production.INFO: ==12915== Releasing lock... [2025-02-06 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:57:23] Production.INFO: 52.5 MB #Memory Used# [2025-02-06 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:58:05 [end_date_ymd] => 2025-02-06 18:58:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:58:05' and `end` < '2025-02-06 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-06 18:58:21] Production.INFO: count ==3279 [2025-02-06 18:58:22] Production.ERROR: pbx CDR StartTime 2025-02-06 15:58:05 - End Time 2025-02-06 18:58:05 [2025-02-06 18:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417022', 'tblTempUsageDetail_20' ) start [2025-02-06 18:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417022', 'tblTempUsageDetail_20' ) end [2025-02-06 18:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417022', 'tblTempVendorCDR_20' ) start [2025-02-06 18:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417022', 'tblTempVendorCDR_20' ) end [2025-02-06 18:58:22] Production.INFO: ProcessCDR(1,14417022,1,1,2) [2025-02-06 18:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417022', 'tblTempUsageDetail_20' ) start [2025-02-06 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417022', 'tblTempUsageDetail_20' ) end [2025-02-06 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:58:25] Production.INFO: ==12999== Releasing lock... [2025-02-06 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:58:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-06 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 15:59:05 [end_date_ymd] => 2025-02-06 18:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 15:59:05' and `end` < '2025-02-06 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-06 18:59:19] Production.INFO: count ==3270 [2025-02-06 18:59:20] Production.ERROR: pbx CDR StartTime 2025-02-06 15:59:05 - End Time 2025-02-06 18:59:05 [2025-02-06 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417027', 'tblTempUsageDetail_20' ) start [2025-02-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417027', 'tblTempUsageDetail_20' ) end [2025-02-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417027', 'tblTempVendorCDR_20' ) start [2025-02-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417027', 'tblTempVendorCDR_20' ) end [2025-02-06 18:59:20] Production.INFO: ProcessCDR(1,14417027,1,1,2) [2025-02-06 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417027', 'tblTempUsageDetail_20' ) start [2025-02-06 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417027', 'tblTempUsageDetail_20' ) end [2025-02-06 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 18:59:24] Production.INFO: ==13085== Releasing lock... [2025-02-06 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 18:59:24] Production.INFO: 52.5 MB #Memory Used# [2025-02-06 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:00:06 [end_date_ymd] => 2025-02-06 19:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 16:00:06' and `end` < '2025-02-06 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-06 19:00:23] Production.INFO: count ==3273 [2025-02-06 19:00:24] Production.ERROR: pbx CDR StartTime 2025-02-06 16:00:06 - End Time 2025-02-06 19:00:06 [2025-02-06 19:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417033', 'tblTempUsageDetail_20' ) start [2025-02-06 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417033', 'tblTempUsageDetail_20' ) end [2025-02-06 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417033', 'tblTempVendorCDR_20' ) start [2025-02-06 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417033', 'tblTempVendorCDR_20' ) end [2025-02-06 19:00:24] Production.INFO: ProcessCDR(1,14417033,1,1,2) [2025-02-06 19:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417033', 'tblTempUsageDetail_20' ) start [2025-02-06 19:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417033', 'tblTempUsageDetail_20' ) end [2025-02-06 19:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:00:29] Production.INFO: ==13173== Releasing lock... [2025-02-06 19:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:00:29] Production.INFO: 52.75 MB #Memory Used# [2025-02-06 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:01:06 [end_date_ymd] => 2025-02-06 19:01:06 [RateCDR] => 1 ) [2025-02-06 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-06 16:01:06' and `end` < '2025-02-06 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-06 19:01:22] Production.INFO: count ==3235 [2025-02-06 19:01:23] Production.ERROR: pbx CDR StartTime 2025-02-06 16:01:06 - End Time 2025-02-06 19:01:06 [2025-02-06 19:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417038', 'tblTempUsageDetail_20' ) start [2025-02-06 19:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417038', 'tblTempUsageDetail_20' ) end [2025-02-06 19:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417038', 'tblTempVendorCDR_20' ) start [2025-02-06 19:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417038', 'tblTempVendorCDR_20' ) end [2025-02-06 19:01:23] Production.INFO: ProcessCDR(1,14417038,1,1,2) [2025-02-06 19:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417038', 'tblTempUsageDetail_20' ) start [2025-02-06 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417038', 'tblTempUsageDetail_20' ) end [2025-02-06 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:01:26] Production.INFO: ==13310== Releasing lock... [2025-02-06 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:01:26] Production.INFO: 52.25 MB #Memory Used# [2025-02-06 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:02:05 [end_date_ymd] => 2025-02-06 19:02:05 [RateCDR] => 1 ) [2025-02-06 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:02:05' and `end` < '2025-02-06 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:02:19] Production.INFO: count ==3224 [2025-02-06 19:02:21] Production.ERROR: pbx CDR StartTime 2025-02-06 16:02:05 - End Time 2025-02-06 19:02:05 [2025-02-06 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417043', 'tblTempUsageDetail_20' ) start [2025-02-06 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417043', 'tblTempUsageDetail_20' ) end [2025-02-06 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417043', 'tblTempVendorCDR_20' ) start [2025-02-06 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417043', 'tblTempVendorCDR_20' ) end [2025-02-06 19:02:21] Production.INFO: ProcessCDR(1,14417043,1,1,2) [2025-02-06 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417043', 'tblTempUsageDetail_20' ) start [2025-02-06 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417043', 'tblTempUsageDetail_20' ) end [2025-02-06 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:02:24] Production.INFO: ==13464== Releasing lock... [2025-02-06 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:02:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-06 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:03:05 [end_date_ymd] => 2025-02-06 19:03:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:03:05' and `end` < '2025-02-06 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-06 19:03:19] Production.INFO: count ==3216 [2025-02-06 19:03:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:03:05 - End Time 2025-02-06 19:03:05 [2025-02-06 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417048', 'tblTempUsageDetail_20' ) start [2025-02-06 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417048', 'tblTempUsageDetail_20' ) end [2025-02-06 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417048', 'tblTempVendorCDR_20' ) start [2025-02-06 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417048', 'tblTempVendorCDR_20' ) end [2025-02-06 19:03:20] Production.INFO: ProcessCDR(1,14417048,1,1,2) [2025-02-06 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417048', 'tblTempUsageDetail_20' ) start [2025-02-06 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417048', 'tblTempUsageDetail_20' ) end [2025-02-06 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:03:24] Production.INFO: ==13546== Releasing lock... [2025-02-06 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:03:24] Production.INFO: 52 MB #Memory Used# [2025-02-06 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:04:05 [end_date_ymd] => 2025-02-06 19:04:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:04:05' and `end` < '2025-02-06 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-06 19:04:20] Production.INFO: count ==3217 [2025-02-06 19:04:21] Production.ERROR: pbx CDR StartTime 2025-02-06 16:04:05 - End Time 2025-02-06 19:04:05 [2025-02-06 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417053', 'tblTempUsageDetail_20' ) start [2025-02-06 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417053', 'tblTempUsageDetail_20' ) end [2025-02-06 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417053', 'tblTempVendorCDR_20' ) start [2025-02-06 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417053', 'tblTempVendorCDR_20' ) end [2025-02-06 19:04:21] Production.INFO: ProcessCDR(1,14417053,1,1,2) [2025-02-06 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417053', 'tblTempUsageDetail_20' ) start [2025-02-06 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417053', 'tblTempUsageDetail_20' ) end [2025-02-06 19:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:04:26] Production.INFO: ==13624== Releasing lock... [2025-02-06 19:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:04:26] Production.INFO: 52 MB #Memory Used# [2025-02-06 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:05:05 [end_date_ymd] => 2025-02-06 19:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:05:05' and `end` < '2025-02-06 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-06 19:05:19] Production.INFO: count ==3206 [2025-02-06 19:05:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:05:05 - End Time 2025-02-06 19:05:05 [2025-02-06 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417058', 'tblTempUsageDetail_20' ) start [2025-02-06 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417058', 'tblTempUsageDetail_20' ) end [2025-02-06 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417058', 'tblTempVendorCDR_20' ) start [2025-02-06 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417058', 'tblTempVendorCDR_20' ) end [2025-02-06 19:05:20] Production.INFO: ProcessCDR(1,14417058,1,1,2) [2025-02-06 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417058', 'tblTempUsageDetail_20' ) start [2025-02-06 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417058', 'tblTempUsageDetail_20' ) end [2025-02-06 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:05:23] Production.INFO: ==13787== Releasing lock... [2025-02-06 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:05:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-06 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:06:06 [end_date_ymd] => 2025-02-06 19:06:06 [RateCDR] => 1 ) [2025-02-06 19: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-06 16:06:06' and `end` < '2025-02-06 19: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-06 19:06:20] Production.INFO: count ==3193 [2025-02-06 19:06:21] Production.ERROR: pbx CDR StartTime 2025-02-06 16:06:06 - End Time 2025-02-06 19:06:06 [2025-02-06 19:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417063', 'tblTempUsageDetail_20' ) start [2025-02-06 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417063', 'tblTempUsageDetail_20' ) end [2025-02-06 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417063', 'tblTempVendorCDR_20' ) start [2025-02-06 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417063', 'tblTempVendorCDR_20' ) end [2025-02-06 19:06:21] Production.INFO: ProcessCDR(1,14417063,1,1,2) [2025-02-06 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417063', 'tblTempUsageDetail_20' ) start [2025-02-06 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417063', 'tblTempUsageDetail_20' ) end [2025-02-06 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:06:24] Production.INFO: ==13870== Releasing lock... [2025-02-06 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:06:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-06 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:07:05 [end_date_ymd] => 2025-02-06 19:07:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:07:05' and `end` < '2025-02-06 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-06 19:07:19] Production.INFO: count ==3186 [2025-02-06 19:07:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:07:05 - End Time 2025-02-06 19:07:05 [2025-02-06 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417068', 'tblTempUsageDetail_20' ) start [2025-02-06 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417068', 'tblTempUsageDetail_20' ) end [2025-02-06 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417068', 'tblTempVendorCDR_20' ) start [2025-02-06 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417068', 'tblTempVendorCDR_20' ) end [2025-02-06 19:07:20] Production.INFO: ProcessCDR(1,14417068,1,1,2) [2025-02-06 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417068', 'tblTempUsageDetail_20' ) start [2025-02-06 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417068', 'tblTempUsageDetail_20' ) end [2025-02-06 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:07:25] Production.INFO: ==13948== Releasing lock... [2025-02-06 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:07:25] Production.INFO: 52 MB #Memory Used# [2025-02-06 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:08:05 [end_date_ymd] => 2025-02-06 19:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:08:05' and `end` < '2025-02-06 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-06 19:08:19] Production.INFO: count ==3183 [2025-02-06 19:08:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:08:05 - End Time 2025-02-06 19:08:05 [2025-02-06 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417073', 'tblTempUsageDetail_20' ) start [2025-02-06 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417073', 'tblTempUsageDetail_20' ) end [2025-02-06 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417073', 'tblTempVendorCDR_20' ) start [2025-02-06 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417073', 'tblTempVendorCDR_20' ) end [2025-02-06 19:08:20] Production.INFO: ProcessCDR(1,14417073,1,1,2) [2025-02-06 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417073', 'tblTempUsageDetail_20' ) start [2025-02-06 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417073', 'tblTempUsageDetail_20' ) end [2025-02-06 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:08:25] Production.INFO: ==14105== Releasing lock... [2025-02-06 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:08:25] Production.INFO: 52.5 MB #Memory Used# [2025-02-06 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:09:05 [end_date_ymd] => 2025-02-06 19:09:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:09:05' and `end` < '2025-02-06 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-06 19:09:20] Production.INFO: count ==3179 [2025-02-06 19:09:21] Production.ERROR: pbx CDR StartTime 2025-02-06 16:09:05 - End Time 2025-02-06 19:09:05 [2025-02-06 19:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417078', 'tblTempUsageDetail_20' ) start [2025-02-06 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417078', 'tblTempUsageDetail_20' ) end [2025-02-06 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417078', 'tblTempVendorCDR_20' ) start [2025-02-06 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417078', 'tblTempVendorCDR_20' ) end [2025-02-06 19:09:21] Production.INFO: ProcessCDR(1,14417078,1,1,2) [2025-02-06 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417078', 'tblTempUsageDetail_20' ) start [2025-02-06 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417078', 'tblTempUsageDetail_20' ) end [2025-02-06 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:09:24] Production.INFO: ==14181== Releasing lock... [2025-02-06 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:09:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-06 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:10:06 [end_date_ymd] => 2025-02-06 19:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 16:10:06' and `end` < '2025-02-06 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-06 19:10:23] Production.INFO: count ==3184 [2025-02-06 19:10:24] Production.ERROR: pbx CDR StartTime 2025-02-06 16:10:06 - End Time 2025-02-06 19:10:06 [2025-02-06 19:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417084', 'tblTempUsageDetail_20' ) start [2025-02-06 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417084', 'tblTempUsageDetail_20' ) end [2025-02-06 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417084', 'tblTempVendorCDR_20' ) start [2025-02-06 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417084', 'tblTempVendorCDR_20' ) end [2025-02-06 19:10:24] Production.INFO: ProcessCDR(1,14417084,1,1,2) [2025-02-06 19:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417084', 'tblTempUsageDetail_20' ) start [2025-02-06 19:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417084', 'tblTempUsageDetail_20' ) end [2025-02-06 19:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:10:28] Production.INFO: ==14258== Releasing lock... [2025-02-06 19:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:10:28] Production.INFO: 52.75 MB #Memory Used# [2025-02-06 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:11:05 [end_date_ymd] => 2025-02-06 19:11:05 [RateCDR] => 1 ) [2025-02-06 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:11:05' and `end` < '2025-02-06 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:11:22] Production.INFO: count ==3153 [2025-02-06 19:11:23] Production.ERROR: pbx CDR StartTime 2025-02-06 16:11:05 - End Time 2025-02-06 19:11:05 [2025-02-06 19:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417089', 'tblTempUsageDetail_20' ) start [2025-02-06 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417089', 'tblTempUsageDetail_20' ) end [2025-02-06 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417089', 'tblTempVendorCDR_20' ) start [2025-02-06 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417089', 'tblTempVendorCDR_20' ) end [2025-02-06 19:11:23] Production.INFO: ProcessCDR(1,14417089,1,1,2) [2025-02-06 19:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417089', 'tblTempUsageDetail_20' ) start [2025-02-06 19:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417089', 'tblTempUsageDetail_20' ) end [2025-02-06 19:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:11:27] Production.INFO: ==14334== Releasing lock... [2025-02-06 19:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:11:27] Production.INFO: 51.5 MB #Memory Used# [2025-02-06 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:12:05 [end_date_ymd] => 2025-02-06 19:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:12:05' and `end` < '2025-02-06 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-06 19:12:20] Production.INFO: count ==3143 [2025-02-06 19:12:21] Production.ERROR: pbx CDR StartTime 2025-02-06 16:12:05 - End Time 2025-02-06 19:12:05 [2025-02-06 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417094', 'tblTempUsageDetail_20' ) start [2025-02-06 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417094', 'tblTempUsageDetail_20' ) end [2025-02-06 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417094', 'tblTempVendorCDR_20' ) start [2025-02-06 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417094', 'tblTempVendorCDR_20' ) end [2025-02-06 19:12:21] Production.INFO: ProcessCDR(1,14417094,1,1,2) [2025-02-06 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417094', 'tblTempUsageDetail_20' ) start [2025-02-06 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417094', 'tblTempUsageDetail_20' ) end [2025-02-06 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:12:24] Production.INFO: ==14487== Releasing lock... [2025-02-06 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:12:24] Production.INFO: 51.5 MB #Memory Used# [2025-02-06 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:13:05 [end_date_ymd] => 2025-02-06 19:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:13:05' and `end` < '2025-02-06 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-06 19:13:19] Production.INFO: count ==3116 [2025-02-06 19:13:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:13:05 - End Time 2025-02-06 19:13:05 [2025-02-06 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417099', 'tblTempUsageDetail_20' ) start [2025-02-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417099', 'tblTempUsageDetail_20' ) end [2025-02-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417099', 'tblTempVendorCDR_20' ) start [2025-02-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417099', 'tblTempVendorCDR_20' ) end [2025-02-06 19:13:20] Production.INFO: ProcessCDR(1,14417099,1,1,2) [2025-02-06 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417099', 'tblTempUsageDetail_20' ) start [2025-02-06 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417099', 'tblTempUsageDetail_20' ) end [2025-02-06 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:13:23] Production.INFO: ==14560== Releasing lock... [2025-02-06 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:13:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-06 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:14:05 [end_date_ymd] => 2025-02-06 19:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:14:05' and `end` < '2025-02-06 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-06 19:14:19] Production.INFO: count ==3109 [2025-02-06 19:14:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:14:05 - End Time 2025-02-06 19:14:05 [2025-02-06 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417104', 'tblTempUsageDetail_20' ) start [2025-02-06 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417104', 'tblTempUsageDetail_20' ) end [2025-02-06 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417104', 'tblTempVendorCDR_20' ) start [2025-02-06 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417104', 'tblTempVendorCDR_20' ) end [2025-02-06 19:14:20] Production.INFO: ProcessCDR(1,14417104,1,1,2) [2025-02-06 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417104', 'tblTempUsageDetail_20' ) start [2025-02-06 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417104', 'tblTempUsageDetail_20' ) end [2025-02-06 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:14:24] Production.INFO: ==14636== Releasing lock... [2025-02-06 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:14:24] Production.INFO: 51.25 MB #Memory Used# [2025-02-06 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:15:06 [end_date_ymd] => 2025-02-06 19:15:06 [RateCDR] => 1 ) [2025-02-06 19:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:15:06' and `end` < '2025-02-06 19:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:15:20] Production.INFO: count ==3084 [2025-02-06 19:15:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:15:06 - End Time 2025-02-06 19:15:06 [2025-02-06 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417109', 'tblTempUsageDetail_20' ) start [2025-02-06 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417109', 'tblTempUsageDetail_20' ) end [2025-02-06 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417109', 'tblTempVendorCDR_20' ) start [2025-02-06 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417109', 'tblTempVendorCDR_20' ) end [2025-02-06 19:15:21] Production.INFO: ProcessCDR(1,14417109,1,1,2) [2025-02-06 19:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417109', 'tblTempUsageDetail_20' ) start [2025-02-06 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417109', 'tblTempUsageDetail_20' ) end [2025-02-06 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:15:25] Production.INFO: ==14788== Releasing lock... [2025-02-06 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:15:25] Production.INFO: 51.5 MB #Memory Used# [2025-02-06 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:16:05 [end_date_ymd] => 2025-02-06 19:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:16:05' and `end` < '2025-02-06 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-06 19:16:18] Production.INFO: count ==3075 [2025-02-06 19:16:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:16:05 - End Time 2025-02-06 19:16:05 [2025-02-06 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417114', 'tblTempUsageDetail_20' ) start [2025-02-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417114', 'tblTempUsageDetail_20' ) end [2025-02-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417114', 'tblTempVendorCDR_20' ) start [2025-02-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417114', 'tblTempVendorCDR_20' ) end [2025-02-06 19:16:19] Production.INFO: ProcessCDR(1,14417114,1,1,2) [2025-02-06 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417114', 'tblTempUsageDetail_20' ) start [2025-02-06 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417114', 'tblTempUsageDetail_20' ) end [2025-02-06 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:16:24] Production.INFO: ==14857== Releasing lock... [2025-02-06 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:16:24] Production.INFO: 51 MB #Memory Used# [2025-02-06 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:17:06 [end_date_ymd] => 2025-02-06 19:17:06 [RateCDR] => 1 ) [2025-02-06 19: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-06 16:17:06' and `end` < '2025-02-06 19: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-06 19:17:19] Production.INFO: count ==3066 [2025-02-06 19:17:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:17:06 - End Time 2025-02-06 19:17:06 [2025-02-06 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417119', 'tblTempUsageDetail_20' ) start [2025-02-06 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417119', 'tblTempUsageDetail_20' ) end [2025-02-06 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417119', 'tblTempVendorCDR_20' ) start [2025-02-06 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417119', 'tblTempVendorCDR_20' ) end [2025-02-06 19:17:20] Production.INFO: ProcessCDR(1,14417119,1,1,2) [2025-02-06 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417119', 'tblTempUsageDetail_20' ) start [2025-02-06 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417119', 'tblTempUsageDetail_20' ) end [2025-02-06 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:17:23] Production.INFO: ==14970== Releasing lock... [2025-02-06 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:17:23] Production.INFO: 51 MB #Memory Used# [2025-02-06 19:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:18:04 [end_date_ymd] => 2025-02-06 19:18:04 [RateCDR] => 1 ) [2025-02-06 19: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-06 16:18:04' and `end` < '2025-02-06 19: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-06 19:18:18] Production.INFO: count ==3056 [2025-02-06 19:18:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:18:04 - End Time 2025-02-06 19:18:04 [2025-02-06 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417124', 'tblTempUsageDetail_20' ) start [2025-02-06 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417124', 'tblTempUsageDetail_20' ) end [2025-02-06 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417124', 'tblTempVendorCDR_20' ) start [2025-02-06 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417124', 'tblTempVendorCDR_20' ) end [2025-02-06 19:18:19] Production.INFO: ProcessCDR(1,14417124,1,1,2) [2025-02-06 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417124', 'tblTempUsageDetail_20' ) start [2025-02-06 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417124', 'tblTempUsageDetail_20' ) end [2025-02-06 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:18:22] Production.INFO: ==15043== Releasing lock... [2025-02-06 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:18:22] Production.INFO: 50.75 MB #Memory Used# [2025-02-06 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:19:05 [end_date_ymd] => 2025-02-06 19:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:19:05' and `end` < '2025-02-06 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-06 19:19:20] Production.INFO: count ==3050 [2025-02-06 19:19:21] Production.ERROR: pbx CDR StartTime 2025-02-06 16:19:05 - End Time 2025-02-06 19:19:05 [2025-02-06 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417129', 'tblTempUsageDetail_20' ) start [2025-02-06 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417129', 'tblTempUsageDetail_20' ) end [2025-02-06 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417129', 'tblTempVendorCDR_20' ) start [2025-02-06 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417129', 'tblTempVendorCDR_20' ) end [2025-02-06 19:19:21] Production.INFO: ProcessCDR(1,14417129,1,1,2) [2025-02-06 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417129', 'tblTempUsageDetail_20' ) start [2025-02-06 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417129', 'tblTempUsageDetail_20' ) end [2025-02-06 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:19:25] Production.INFO: ==15122== Releasing lock... [2025-02-06 19:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:19:25] Production.INFO: 51.75 MB #Memory Used# [2025-02-06 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:20:05 [end_date_ymd] => 2025-02-06 19:20:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:20:05' and `end` < '2025-02-06 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-06 19:20:19] Production.INFO: count ==3031 [2025-02-06 19:20:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:20:05 - End Time 2025-02-06 19:20:05 [2025-02-06 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417135', 'tblTempUsageDetail_20' ) start [2025-02-06 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417135', 'tblTempUsageDetail_20' ) end [2025-02-06 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417135', 'tblTempVendorCDR_20' ) start [2025-02-06 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417135', 'tblTempVendorCDR_20' ) end [2025-02-06 19:20:20] Production.INFO: ProcessCDR(1,14417135,1,1,2) [2025-02-06 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417135', 'tblTempUsageDetail_20' ) start [2025-02-06 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417135', 'tblTempUsageDetail_20' ) end [2025-02-06 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:20:23] Production.INFO: ==15197== Releasing lock... [2025-02-06 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:20:23] Production.INFO: 50.75 MB #Memory Used# [2025-02-06 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:21:05 [end_date_ymd] => 2025-02-06 19:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:21:05' and `end` < '2025-02-06 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-06 19:21:18] Production.INFO: count ==2951 [2025-02-06 19:21:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:21:05 - End Time 2025-02-06 19:21:05 [2025-02-06 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417140', 'tblTempUsageDetail_20' ) start [2025-02-06 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417140', 'tblTempUsageDetail_20' ) end [2025-02-06 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417140', 'tblTempVendorCDR_20' ) start [2025-02-06 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417140', 'tblTempVendorCDR_20' ) end [2025-02-06 19:21:19] Production.INFO: ProcessCDR(1,14417140,1,1,2) [2025-02-06 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417140', 'tblTempUsageDetail_20' ) start [2025-02-06 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417140', 'tblTempUsageDetail_20' ) end [2025-02-06 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:21:24] Production.INFO: ==15271== Releasing lock... [2025-02-06 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:21:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-06 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:22:06 [end_date_ymd] => 2025-02-06 19:22:06 [RateCDR] => 1 ) [2025-02-06 19: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-06 16:22:06' and `end` < '2025-02-06 19: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-06 19:22:19] Production.INFO: count ==2925 [2025-02-06 19:22:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:22:06 - End Time 2025-02-06 19:22:06 [2025-02-06 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417145', 'tblTempUsageDetail_20' ) start [2025-02-06 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417145', 'tblTempUsageDetail_20' ) end [2025-02-06 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417145', 'tblTempVendorCDR_20' ) start [2025-02-06 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417145', 'tblTempVendorCDR_20' ) end [2025-02-06 19:22:20] Production.INFO: ProcessCDR(1,14417145,1,1,2) [2025-02-06 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417145', 'tblTempUsageDetail_20' ) start [2025-02-06 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417145', 'tblTempUsageDetail_20' ) end [2025-02-06 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:22:24] Production.INFO: ==15344== Releasing lock... [2025-02-06 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:22:24] Production.INFO: 50 MB #Memory Used# [2025-02-06 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:23:05 [end_date_ymd] => 2025-02-06 19:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:23:05' and `end` < '2025-02-06 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-06 19:23:19] Production.INFO: count ==2911 [2025-02-06 19:23:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:23:05 - End Time 2025-02-06 19:23:05 [2025-02-06 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417150', 'tblTempUsageDetail_20' ) start [2025-02-06 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417150', 'tblTempUsageDetail_20' ) end [2025-02-06 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417150', 'tblTempVendorCDR_20' ) start [2025-02-06 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417150', 'tblTempVendorCDR_20' ) end [2025-02-06 19:23:20] Production.INFO: ProcessCDR(1,14417150,1,1,2) [2025-02-06 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417150', 'tblTempUsageDetail_20' ) start [2025-02-06 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417150', 'tblTempUsageDetail_20' ) end [2025-02-06 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:23:24] Production.INFO: ==15417== Releasing lock... [2025-02-06 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:23:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-06 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:24:05 [end_date_ymd] => 2025-02-06 19:24:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:24:05' and `end` < '2025-02-06 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-06 19:24:20] Production.INFO: count ==2910 [2025-02-06 19:24:21] Production.ERROR: pbx CDR StartTime 2025-02-06 16:24:05 - End Time 2025-02-06 19:24:05 [2025-02-06 19:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417155', 'tblTempUsageDetail_20' ) start [2025-02-06 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417155', 'tblTempUsageDetail_20' ) end [2025-02-06 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417155', 'tblTempVendorCDR_20' ) start [2025-02-06 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417155', 'tblTempVendorCDR_20' ) end [2025-02-06 19:24:21] Production.INFO: ProcessCDR(1,14417155,1,1,2) [2025-02-06 19:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417155', 'tblTempUsageDetail_20' ) start [2025-02-06 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417155', 'tblTempUsageDetail_20' ) end [2025-02-06 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:24:24] Production.INFO: ==15493== Releasing lock... [2025-02-06 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:24:24] Production.INFO: 50 MB #Memory Used# [2025-02-06 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:25:05 [end_date_ymd] => 2025-02-06 19:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:25:05' and `end` < '2025-02-06 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-06 19:25:19] Production.INFO: count ==2902 [2025-02-06 19:25:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:25:05 - End Time 2025-02-06 19:25:05 [2025-02-06 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417160', 'tblTempUsageDetail_20' ) start [2025-02-06 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417160', 'tblTempUsageDetail_20' ) end [2025-02-06 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417160', 'tblTempVendorCDR_20' ) start [2025-02-06 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417160', 'tblTempVendorCDR_20' ) end [2025-02-06 19:25:20] Production.INFO: ProcessCDR(1,14417160,1,1,2) [2025-02-06 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417160', 'tblTempUsageDetail_20' ) start [2025-02-06 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417160', 'tblTempUsageDetail_20' ) end [2025-02-06 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:25:24] Production.INFO: ==15565== Releasing lock... [2025-02-06 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:25:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-06 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:26:05 [end_date_ymd] => 2025-02-06 19:26:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:26:05' and `end` < '2025-02-06 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-06 19:26:19] Production.INFO: count ==2897 [2025-02-06 19:26:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:26:05 - End Time 2025-02-06 19:26:05 [2025-02-06 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417165', 'tblTempUsageDetail_20' ) start [2025-02-06 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417165', 'tblTempUsageDetail_20' ) end [2025-02-06 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417165', 'tblTempVendorCDR_20' ) start [2025-02-06 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417165', 'tblTempVendorCDR_20' ) end [2025-02-06 19:26:20] Production.INFO: ProcessCDR(1,14417165,1,1,2) [2025-02-06 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417165', 'tblTempUsageDetail_20' ) start [2025-02-06 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417165', 'tblTempUsageDetail_20' ) end [2025-02-06 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:26:23] Production.INFO: ==15639== Releasing lock... [2025-02-06 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:26:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-06 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:27:05 [end_date_ymd] => 2025-02-06 19:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:27:05' and `end` < '2025-02-06 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-06 19:27:20] Production.INFO: count ==2885 [2025-02-06 19:27:21] Production.ERROR: pbx CDR StartTime 2025-02-06 16:27:05 - End Time 2025-02-06 19:27:05 [2025-02-06 19:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417170', 'tblTempUsageDetail_20' ) start [2025-02-06 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417170', 'tblTempUsageDetail_20' ) end [2025-02-06 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417170', 'tblTempVendorCDR_20' ) start [2025-02-06 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417170', 'tblTempVendorCDR_20' ) end [2025-02-06 19:27:21] Production.INFO: ProcessCDR(1,14417170,1,1,2) [2025-02-06 19:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417170', 'tblTempUsageDetail_20' ) start [2025-02-06 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417170', 'tblTempUsageDetail_20' ) end [2025-02-06 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:27:24] Production.INFO: ==15709== Releasing lock... [2025-02-06 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:27:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-06 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:28:05 [end_date_ymd] => 2025-02-06 19:28:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:28:05' and `end` < '2025-02-06 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-06 19:28:18] Production.INFO: count ==2881 [2025-02-06 19:28:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:28:05 - End Time 2025-02-06 19:28:05 [2025-02-06 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417175', 'tblTempUsageDetail_20' ) start [2025-02-06 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417175', 'tblTempUsageDetail_20' ) end [2025-02-06 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417175', 'tblTempVendorCDR_20' ) start [2025-02-06 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417175', 'tblTempVendorCDR_20' ) end [2025-02-06 19:28:19] Production.INFO: ProcessCDR(1,14417175,1,1,2) [2025-02-06 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417175', 'tblTempUsageDetail_20' ) start [2025-02-06 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417175', 'tblTempUsageDetail_20' ) end [2025-02-06 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:28:24] Production.INFO: ==15782== Releasing lock... [2025-02-06 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:28:24] Production.INFO: 50 MB #Memory Used# [2025-02-06 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:29:05 [end_date_ymd] => 2025-02-06 19:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:29:05' and `end` < '2025-02-06 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-06 19:29:18] Production.INFO: count ==2861 [2025-02-06 19:29:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:29:05 - End Time 2025-02-06 19:29:05 [2025-02-06 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417180', 'tblTempUsageDetail_20' ) start [2025-02-06 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417180', 'tblTempUsageDetail_20' ) end [2025-02-06 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417180', 'tblTempVendorCDR_20' ) start [2025-02-06 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417180', 'tblTempVendorCDR_20' ) end [2025-02-06 19:29:19] Production.INFO: ProcessCDR(1,14417180,1,1,2) [2025-02-06 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417180', 'tblTempUsageDetail_20' ) start [2025-02-06 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417180', 'tblTempUsageDetail_20' ) end [2025-02-06 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:29:22] Production.INFO: ==15856== Releasing lock... [2025-02-06 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:29:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-06 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:30:05 [end_date_ymd] => 2025-02-06 19:30:05 [RateCDR] => 1 ) [2025-02-06 19: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-06 16:30:05' and `end` < '2025-02-06 19: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-06 19:30:18] Production.INFO: count ==2838 [2025-02-06 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:30:05 - End Time 2025-02-06 19:30:05 [2025-02-06 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417185', 'tblTempUsageDetail_20' ) start [2025-02-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417185', 'tblTempUsageDetail_20' ) end [2025-02-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417185', 'tblTempVendorCDR_20' ) start [2025-02-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417185', 'tblTempVendorCDR_20' ) end [2025-02-06 19:30:19] Production.INFO: ProcessCDR(1,14417185,1,1,2) [2025-02-06 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417185', 'tblTempUsageDetail_20' ) start [2025-02-06 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417185', 'tblTempUsageDetail_20' ) end [2025-02-06 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:30:24] Production.INFO: ==15932== Releasing lock... [2025-02-06 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:30:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-06 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:31:05 [end_date_ymd] => 2025-02-06 19:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:31:05' and `end` < '2025-02-06 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-06 19:31:18] Production.INFO: count ==2752 [2025-02-06 19:31:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:31:05 - End Time 2025-02-06 19:31:05 [2025-02-06 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417191', 'tblTempUsageDetail_20' ) start [2025-02-06 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417191', 'tblTempUsageDetail_20' ) end [2025-02-06 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417191', 'tblTempVendorCDR_20' ) start [2025-02-06 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417191', 'tblTempVendorCDR_20' ) end [2025-02-06 19:31:19] Production.INFO: ProcessCDR(1,14417191,1,1,2) [2025-02-06 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417191', 'tblTempUsageDetail_20' ) start [2025-02-06 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417191', 'tblTempUsageDetail_20' ) end [2025-02-06 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:31:22] Production.INFO: ==16007== Releasing lock... [2025-02-06 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:31:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-06 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:32:05 [end_date_ymd] => 2025-02-06 19:32:05 [RateCDR] => 1 ) [2025-02-06 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:32:05' and `end` < '2025-02-06 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:32:19] Production.INFO: count ==2722 [2025-02-06 19:32:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:32:05 - End Time 2025-02-06 19:32:05 [2025-02-06 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417196', 'tblTempUsageDetail_20' ) start [2025-02-06 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417196', 'tblTempUsageDetail_20' ) end [2025-02-06 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417196', 'tblTempVendorCDR_20' ) start [2025-02-06 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417196', 'tblTempVendorCDR_20' ) end [2025-02-06 19:32:20] Production.INFO: ProcessCDR(1,14417196,1,1,2) [2025-02-06 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417196', 'tblTempUsageDetail_20' ) start [2025-02-06 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417196', 'tblTempUsageDetail_20' ) end [2025-02-06 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:32:24] Production.INFO: ==16120== Releasing lock... [2025-02-06 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:32:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-06 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:33:05 [end_date_ymd] => 2025-02-06 19:33:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:33:05' and `end` < '2025-02-06 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-06 19:33:18] Production.INFO: count ==2732 [2025-02-06 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:33:05 - End Time 2025-02-06 19:33:05 [2025-02-06 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417201', 'tblTempUsageDetail_20' ) start [2025-02-06 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417201', 'tblTempUsageDetail_20' ) end [2025-02-06 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417201', 'tblTempVendorCDR_20' ) start [2025-02-06 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417201', 'tblTempVendorCDR_20' ) end [2025-02-06 19:33:19] Production.INFO: ProcessCDR(1,14417201,1,1,2) [2025-02-06 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417201', 'tblTempUsageDetail_20' ) start [2025-02-06 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417201', 'tblTempUsageDetail_20' ) end [2025-02-06 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:33:22] Production.INFO: ==16197== Releasing lock... [2025-02-06 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:33:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-06 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:34:05 [end_date_ymd] => 2025-02-06 19:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:34:05' and `end` < '2025-02-06 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-06 19:34:20] Production.INFO: count ==2727 [2025-02-06 19:34:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:34:05 - End Time 2025-02-06 19:34:05 [2025-02-06 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417206', 'tblTempUsageDetail_20' ) start [2025-02-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417206', 'tblTempUsageDetail_20' ) end [2025-02-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417206', 'tblTempVendorCDR_20' ) start [2025-02-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417206', 'tblTempVendorCDR_20' ) end [2025-02-06 19:34:20] Production.INFO: ProcessCDR(1,14417206,1,1,2) [2025-02-06 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417206', 'tblTempUsageDetail_20' ) start [2025-02-06 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417206', 'tblTempUsageDetail_20' ) end [2025-02-06 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:34:23] Production.INFO: ==16272== Releasing lock... [2025-02-06 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:34:23] Production.INFO: 48.5 MB #Memory Used# [2025-02-06 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:35:05 [end_date_ymd] => 2025-02-06 19:35:05 [RateCDR] => 1 ) [2025-02-06 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:35:05' and `end` < '2025-02-06 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:35:18] Production.INFO: count ==2715 [2025-02-06 19:35:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:35:05 - End Time 2025-02-06 19:35:05 [2025-02-06 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417211', 'tblTempUsageDetail_20' ) start [2025-02-06 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417211', 'tblTempUsageDetail_20' ) end [2025-02-06 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417211', 'tblTempVendorCDR_20' ) start [2025-02-06 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417211', 'tblTempVendorCDR_20' ) end [2025-02-06 19:35:19] Production.INFO: ProcessCDR(1,14417211,1,1,2) [2025-02-06 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417211', 'tblTempUsageDetail_20' ) start [2025-02-06 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417211', 'tblTempUsageDetail_20' ) end [2025-02-06 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:35:24] Production.INFO: ==16345== Releasing lock... [2025-02-06 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:35:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-06 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:36:05 [end_date_ymd] => 2025-02-06 19:36:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:36:05' and `end` < '2025-02-06 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-06 19:36:18] Production.INFO: count ==2709 [2025-02-06 19:36:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:36:05 - End Time 2025-02-06 19:36:05 [2025-02-06 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417216', 'tblTempUsageDetail_20' ) start [2025-02-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417216', 'tblTempUsageDetail_20' ) end [2025-02-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417216', 'tblTempVendorCDR_20' ) start [2025-02-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417216', 'tblTempVendorCDR_20' ) end [2025-02-06 19:36:19] Production.INFO: ProcessCDR(1,14417216,1,1,2) [2025-02-06 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417216', 'tblTempUsageDetail_20' ) start [2025-02-06 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417216', 'tblTempUsageDetail_20' ) end [2025-02-06 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:36:24] Production.INFO: ==16416== Releasing lock... [2025-02-06 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:36:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-06 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:37:05 [end_date_ymd] => 2025-02-06 19:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:37:05' and `end` < '2025-02-06 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-06 19:37:19] Production.INFO: count ==2702 [2025-02-06 19:37:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:37:05 - End Time 2025-02-06 19:37:05 [2025-02-06 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417221', 'tblTempUsageDetail_20' ) start [2025-02-06 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417221', 'tblTempUsageDetail_20' ) end [2025-02-06 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417221', 'tblTempVendorCDR_20' ) start [2025-02-06 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417221', 'tblTempVendorCDR_20' ) end [2025-02-06 19:37:19] Production.INFO: ProcessCDR(1,14417221,1,1,2) [2025-02-06 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417221', 'tblTempUsageDetail_20' ) start [2025-02-06 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417221', 'tblTempUsageDetail_20' ) end [2025-02-06 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:37:24] Production.INFO: ==16498== Releasing lock... [2025-02-06 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:37:24] Production.INFO: 48.25 MB #Memory Used# [2025-02-06 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:38:04 [end_date_ymd] => 2025-02-06 19:38:04 [RateCDR] => 1 ) [2025-02-06 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-06 16:38:04' and `end` < '2025-02-06 19: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-06 19:38:18] Production.INFO: count ==2705 [2025-02-06 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:38:04 - End Time 2025-02-06 19:38:04 [2025-02-06 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417226', 'tblTempUsageDetail_20' ) start [2025-02-06 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417226', 'tblTempUsageDetail_20' ) end [2025-02-06 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417226', 'tblTempVendorCDR_20' ) start [2025-02-06 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417226', 'tblTempVendorCDR_20' ) end [2025-02-06 19:38:19] Production.INFO: ProcessCDR(1,14417226,1,1,2) [2025-02-06 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417226', 'tblTempUsageDetail_20' ) start [2025-02-06 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417226', 'tblTempUsageDetail_20' ) end [2025-02-06 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:38:23] Production.INFO: ==16576== Releasing lock... [2025-02-06 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:38:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-06 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:39:05 [end_date_ymd] => 2025-02-06 19:39:05 [RateCDR] => 1 ) [2025-02-06 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:39:05' and `end` < '2025-02-06 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-06 19:39:19] Production.INFO: count ==2697 [2025-02-06 19:39:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:39:05 - End Time 2025-02-06 19:39:05 [2025-02-06 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417231', 'tblTempUsageDetail_20' ) start [2025-02-06 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417231', 'tblTempUsageDetail_20' ) end [2025-02-06 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417231', 'tblTempVendorCDR_20' ) start [2025-02-06 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417231', 'tblTempVendorCDR_20' ) end [2025-02-06 19:39:20] Production.INFO: ProcessCDR(1,14417231,1,1,2) [2025-02-06 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417231', 'tblTempUsageDetail_20' ) start [2025-02-06 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417231', 'tblTempUsageDetail_20' ) end [2025-02-06 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:39:23] Production.INFO: ==16651== Releasing lock... [2025-02-06 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:39:23] Production.INFO: 48 MB #Memory Used# [2025-02-06 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:40:05 [end_date_ymd] => 2025-02-06 19:40:05 [RateCDR] => 1 ) [2025-02-06 19: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-06 16:40:05' and `end` < '2025-02-06 19: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-06 19:40:19] Production.INFO: count ==2691 [2025-02-06 19:40:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:40:05 - End Time 2025-02-06 19:40:05 [2025-02-06 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417237', 'tblTempUsageDetail_20' ) start [2025-02-06 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417237', 'tblTempUsageDetail_20' ) end [2025-02-06 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417237', 'tblTempVendorCDR_20' ) start [2025-02-06 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417237', 'tblTempVendorCDR_20' ) end [2025-02-06 19:40:20] Production.INFO: ProcessCDR(1,14417237,1,1,2) [2025-02-06 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417237', 'tblTempUsageDetail_20' ) start [2025-02-06 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417237', 'tblTempUsageDetail_20' ) end [2025-02-06 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:40:23] Production.INFO: ==16723== Releasing lock... [2025-02-06 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:40:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-06 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:41:05 [end_date_ymd] => 2025-02-06 19:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:41:05' and `end` < '2025-02-06 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-06 19:41:18] Production.INFO: count ==2655 [2025-02-06 19:41:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:41:05 - End Time 2025-02-06 19:41:05 [2025-02-06 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417242', 'tblTempUsageDetail_20' ) start [2025-02-06 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417242', 'tblTempUsageDetail_20' ) end [2025-02-06 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417242', 'tblTempVendorCDR_20' ) start [2025-02-06 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417242', 'tblTempVendorCDR_20' ) end [2025-02-06 19:41:19] Production.INFO: ProcessCDR(1,14417242,1,1,2) [2025-02-06 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417242', 'tblTempUsageDetail_20' ) start [2025-02-06 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417242', 'tblTempUsageDetail_20' ) end [2025-02-06 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:41:22] Production.INFO: ==16800== Releasing lock... [2025-02-06 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:41:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-06 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:42:04 [end_date_ymd] => 2025-02-06 19:42:04 [RateCDR] => 1 ) [2025-02-06 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-06 16:42:04' and `end` < '2025-02-06 19:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:42:18] Production.INFO: count ==2637 [2025-02-06 19:42:18] Production.ERROR: pbx CDR StartTime 2025-02-06 16:42:04 - End Time 2025-02-06 19:42:04 [2025-02-06 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417247', 'tblTempUsageDetail_20' ) start [2025-02-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417247', 'tblTempUsageDetail_20' ) end [2025-02-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417247', 'tblTempVendorCDR_20' ) start [2025-02-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417247', 'tblTempVendorCDR_20' ) end [2025-02-06 19:42:19] Production.INFO: ProcessCDR(1,14417247,1,1,2) [2025-02-06 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417247', 'tblTempUsageDetail_20' ) start [2025-02-06 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417247', 'tblTempUsageDetail_20' ) end [2025-02-06 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:42:22] Production.INFO: ==16884== Releasing lock... [2025-02-06 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:42:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-06 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:43:05 [end_date_ymd] => 2025-02-06 19:43:05 [RateCDR] => 1 ) [2025-02-06 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:43:05' and `end` < '2025-02-06 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:43:19] Production.INFO: count ==2629 [2025-02-06 19:43:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:43:05 - End Time 2025-02-06 19:43:05 [2025-02-06 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417252', 'tblTempUsageDetail_20' ) start [2025-02-06 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417252', 'tblTempUsageDetail_20' ) end [2025-02-06 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417252', 'tblTempVendorCDR_20' ) start [2025-02-06 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417252', 'tblTempVendorCDR_20' ) end [2025-02-06 19:43:20] Production.INFO: ProcessCDR(1,14417252,1,1,2) [2025-02-06 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417252', 'tblTempUsageDetail_20' ) start [2025-02-06 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417252', 'tblTempUsageDetail_20' ) end [2025-02-06 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:43:23] Production.INFO: ==16959== Releasing lock... [2025-02-06 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:43:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-06 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:44:05 [end_date_ymd] => 2025-02-06 19:44:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:44:05' and `end` < '2025-02-06 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-06 19:44:18] Production.INFO: count ==2621 [2025-02-06 19:44:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:44:05 - End Time 2025-02-06 19:44:05 [2025-02-06 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417257', 'tblTempUsageDetail_20' ) start [2025-02-06 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417257', 'tblTempUsageDetail_20' ) end [2025-02-06 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417257', 'tblTempVendorCDR_20' ) start [2025-02-06 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417257', 'tblTempVendorCDR_20' ) end [2025-02-06 19:44:19] Production.INFO: ProcessCDR(1,14417257,1,1,2) [2025-02-06 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417257', 'tblTempUsageDetail_20' ) start [2025-02-06 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417257', 'tblTempUsageDetail_20' ) end [2025-02-06 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:44:22] Production.INFO: ==17032== Releasing lock... [2025-02-06 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:44:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-06 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:45:05 [end_date_ymd] => 2025-02-06 19:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:45:05' and `end` < '2025-02-06 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-06 19:45:18] Production.INFO: count ==2613 [2025-02-06 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:45:05 - End Time 2025-02-06 19:45:05 [2025-02-06 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417262', 'tblTempUsageDetail_20' ) start [2025-02-06 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417262', 'tblTempUsageDetail_20' ) end [2025-02-06 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417262', 'tblTempVendorCDR_20' ) start [2025-02-06 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417262', 'tblTempVendorCDR_20' ) end [2025-02-06 19:45:19] Production.INFO: ProcessCDR(1,14417262,1,1,2) [2025-02-06 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417262', 'tblTempUsageDetail_20' ) start [2025-02-06 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417262', 'tblTempUsageDetail_20' ) end [2025-02-06 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:45:22] Production.INFO: ==17110== Releasing lock... [2025-02-06 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:45:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-06 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:46:05 [end_date_ymd] => 2025-02-06 19:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:46:05' and `end` < '2025-02-06 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-06 19:46:19] Production.INFO: count ==2598 [2025-02-06 19:46:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:46:05 - End Time 2025-02-06 19:46:05 [2025-02-06 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417267', 'tblTempUsageDetail_20' ) start [2025-02-06 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417267', 'tblTempUsageDetail_20' ) end [2025-02-06 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417267', 'tblTempVendorCDR_20' ) start [2025-02-06 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417267', 'tblTempVendorCDR_20' ) end [2025-02-06 19:46:20] Production.INFO: ProcessCDR(1,14417267,1,1,2) [2025-02-06 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417267', 'tblTempUsageDetail_20' ) start [2025-02-06 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417267', 'tblTempUsageDetail_20' ) end [2025-02-06 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:46:23] Production.INFO: ==17189== Releasing lock... [2025-02-06 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:46:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-06 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:47:05 [end_date_ymd] => 2025-02-06 19:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:47:05' and `end` < '2025-02-06 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-06 19:47:18] Production.INFO: count ==2569 [2025-02-06 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:47:05 - End Time 2025-02-06 19:47:05 [2025-02-06 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417272', 'tblTempUsageDetail_20' ) start [2025-02-06 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417272', 'tblTempUsageDetail_20' ) end [2025-02-06 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417272', 'tblTempVendorCDR_20' ) start [2025-02-06 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417272', 'tblTempVendorCDR_20' ) end [2025-02-06 19:47:19] Production.INFO: ProcessCDR(1,14417272,1,1,2) [2025-02-06 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417272', 'tblTempUsageDetail_20' ) start [2025-02-06 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417272', 'tblTempUsageDetail_20' ) end [2025-02-06 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:47:22] Production.INFO: ==17269== Releasing lock... [2025-02-06 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:47:22] Production.INFO: 47.25 MB #Memory Used# [2025-02-06 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:48:05 [end_date_ymd] => 2025-02-06 19:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:48:05' and `end` < '2025-02-06 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-06 19:48:19] Production.INFO: count ==2536 [2025-02-06 19:48:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:48:05 - End Time 2025-02-06 19:48:05 [2025-02-06 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417277', 'tblTempUsageDetail_20' ) start [2025-02-06 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417277', 'tblTempUsageDetail_20' ) end [2025-02-06 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417277', 'tblTempVendorCDR_20' ) start [2025-02-06 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417277', 'tblTempVendorCDR_20' ) end [2025-02-06 19:48:20] Production.INFO: ProcessCDR(1,14417277,1,1,2) [2025-02-06 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417277', 'tblTempUsageDetail_20' ) start [2025-02-06 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417277', 'tblTempUsageDetail_20' ) end [2025-02-06 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:48:23] Production.INFO: ==17388== Releasing lock... [2025-02-06 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:48:23] Production.INFO: 47.25 MB #Memory Used# [2025-02-06 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:49:05 [end_date_ymd] => 2025-02-06 19:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:49:05' and `end` < '2025-02-06 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-06 19:49:18] Production.INFO: count ==2531 [2025-02-06 19:49:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:49:05 - End Time 2025-02-06 19:49:05 [2025-02-06 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417282', 'tblTempUsageDetail_20' ) start [2025-02-06 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417282', 'tblTempUsageDetail_20' ) end [2025-02-06 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417282', 'tblTempVendorCDR_20' ) start [2025-02-06 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417282', 'tblTempVendorCDR_20' ) end [2025-02-06 19:49:19] Production.INFO: ProcessCDR(1,14417282,1,1,2) [2025-02-06 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417282', 'tblTempUsageDetail_20' ) start [2025-02-06 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417282', 'tblTempUsageDetail_20' ) end [2025-02-06 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:49:22] Production.INFO: ==17461== Releasing lock... [2025-02-06 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:49:22] Production.INFO: 47 MB #Memory Used# [2025-02-06 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:50:06 [end_date_ymd] => 2025-02-06 19:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 16:50:06' and `end` < '2025-02-06 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-06 19:50:19] Production.INFO: count ==2519 [2025-02-06 19:50:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:50:06 - End Time 2025-02-06 19:50:06 [2025-02-06 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417288', 'tblTempUsageDetail_20' ) start [2025-02-06 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417288', 'tblTempUsageDetail_20' ) end [2025-02-06 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417288', 'tblTempVendorCDR_20' ) start [2025-02-06 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417288', 'tblTempVendorCDR_20' ) end [2025-02-06 19:50:20] Production.INFO: ProcessCDR(1,14417288,1,1,2) [2025-02-06 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417288', 'tblTempUsageDetail_20' ) start [2025-02-06 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417288', 'tblTempUsageDetail_20' ) end [2025-02-06 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:50:23] Production.INFO: ==17540== Releasing lock... [2025-02-06 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:50:23] Production.INFO: 47 MB #Memory Used# [2025-02-06 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:51:05 [end_date_ymd] => 2025-02-06 19:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:51:05' and `end` < '2025-02-06 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-06 19:51:19] Production.INFO: count ==2475 [2025-02-06 19:51:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:51:05 - End Time 2025-02-06 19:51:05 [2025-02-06 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417293', 'tblTempUsageDetail_20' ) start [2025-02-06 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417293', 'tblTempUsageDetail_20' ) end [2025-02-06 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417293', 'tblTempVendorCDR_20' ) start [2025-02-06 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417293', 'tblTempVendorCDR_20' ) end [2025-02-06 19:51:20] Production.INFO: ProcessCDR(1,14417293,1,1,2) [2025-02-06 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417293', 'tblTempUsageDetail_20' ) start [2025-02-06 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417293', 'tblTempUsageDetail_20' ) end [2025-02-06 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:51:23] Production.INFO: ==17626== Releasing lock... [2025-02-06 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:51:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-06 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:52:05 [end_date_ymd] => 2025-02-06 19:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:52:05' and `end` < '2025-02-06 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-06 19:52:19] Production.INFO: count ==2469 [2025-02-06 19:52:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:52:05 - End Time 2025-02-06 19:52:05 [2025-02-06 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417298', 'tblTempUsageDetail_20' ) start [2025-02-06 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417298', 'tblTempUsageDetail_20' ) end [2025-02-06 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417298', 'tblTempVendorCDR_20' ) start [2025-02-06 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417298', 'tblTempVendorCDR_20' ) end [2025-02-06 19:52:20] Production.INFO: ProcessCDR(1,14417298,1,1,2) [2025-02-06 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417298', 'tblTempUsageDetail_20' ) start [2025-02-06 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417298', 'tblTempUsageDetail_20' ) end [2025-02-06 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:52:24] Production.INFO: ==17712== Releasing lock... [2025-02-06 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:52:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-06 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:53:05 [end_date_ymd] => 2025-02-06 19:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 16:53:05' and `end` < '2025-02-06 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-06 19:53:19] Production.INFO: count ==2456 [2025-02-06 19:53:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:53:05 - End Time 2025-02-06 19:53:05 [2025-02-06 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417303', 'tblTempUsageDetail_20' ) start [2025-02-06 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417303', 'tblTempUsageDetail_20' ) end [2025-02-06 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417303', 'tblTempVendorCDR_20' ) start [2025-02-06 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417303', 'tblTempVendorCDR_20' ) end [2025-02-06 19:53:19] Production.INFO: ProcessCDR(1,14417303,1,1,2) [2025-02-06 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417303', 'tblTempUsageDetail_20' ) start [2025-02-06 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417303', 'tblTempUsageDetail_20' ) end [2025-02-06 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:53:22] Production.INFO: ==17790== Releasing lock... [2025-02-06 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:53:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-06 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:54:05 [end_date_ymd] => 2025-02-06 19:54:05 [RateCDR] => 1 ) [2025-02-06 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:54:05' and `end` < '2025-02-06 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:54:20] Production.INFO: count ==2437 [2025-02-06 19:54:20] Production.ERROR: pbx CDR StartTime 2025-02-06 16:54:05 - End Time 2025-02-06 19:54:05 [2025-02-06 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417308', 'tblTempUsageDetail_20' ) start [2025-02-06 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417308', 'tblTempUsageDetail_20' ) end [2025-02-06 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417308', 'tblTempVendorCDR_20' ) start [2025-02-06 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417308', 'tblTempVendorCDR_20' ) end [2025-02-06 19:54:20] Production.INFO: ProcessCDR(1,14417308,1,1,2) [2025-02-06 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417308', 'tblTempUsageDetail_20' ) start [2025-02-06 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417308', 'tblTempUsageDetail_20' ) end [2025-02-06 19:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:54:25] Production.INFO: ==17871== Releasing lock... [2025-02-06 19:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:54:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-06 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:55:06 [end_date_ymd] => 2025-02-06 19:55:06 [RateCDR] => 1 ) [2025-02-06 19: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-06 16:55:06' and `end` < '2025-02-06 19: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-06 19:55:20] Production.INFO: count ==2435 [2025-02-06 19:55:21] Production.ERROR: pbx CDR StartTime 2025-02-06 16:55:06 - End Time 2025-02-06 19:55:06 [2025-02-06 19:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417313', 'tblTempUsageDetail_20' ) start [2025-02-06 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417313', 'tblTempUsageDetail_20' ) end [2025-02-06 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417313', 'tblTempVendorCDR_20' ) start [2025-02-06 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417313', 'tblTempVendorCDR_20' ) end [2025-02-06 19:55:21] Production.INFO: ProcessCDR(1,14417313,1,1,2) [2025-02-06 19:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417313', 'tblTempUsageDetail_20' ) start [2025-02-06 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417313', 'tblTempUsageDetail_20' ) end [2025-02-06 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:55:24] Production.INFO: ==17950== Releasing lock... [2025-02-06 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:55:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-06 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:56:05 [end_date_ymd] => 2025-02-06 19:56:05 [RateCDR] => 1 ) [2025-02-06 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:56:05' and `end` < '2025-02-06 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:56:18] Production.INFO: count ==2402 [2025-02-06 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:56:05 - End Time 2025-02-06 19:56:05 [2025-02-06 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417318', 'tblTempUsageDetail_20' ) start [2025-02-06 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417318', 'tblTempUsageDetail_20' ) end [2025-02-06 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417318', 'tblTempVendorCDR_20' ) start [2025-02-06 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417318', 'tblTempVendorCDR_20' ) end [2025-02-06 19:56:19] Production.INFO: ProcessCDR(1,14417318,1,1,2) [2025-02-06 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417318', 'tblTempUsageDetail_20' ) start [2025-02-06 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417318', 'tblTempUsageDetail_20' ) end [2025-02-06 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:56:23] Production.INFO: ==18044== Releasing lock... [2025-02-06 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:56:23] Production.INFO: 46 MB #Memory Used# [2025-02-06 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:57:05 [end_date_ymd] => 2025-02-06 19:57:05 [RateCDR] => 1 ) [2025-02-06 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:57:05' and `end` < '2025-02-06 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:57:18] Production.INFO: count ==2375 [2025-02-06 19:57:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:57:05 - End Time 2025-02-06 19:57:05 [2025-02-06 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417323', 'tblTempUsageDetail_20' ) start [2025-02-06 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417323', 'tblTempUsageDetail_20' ) end [2025-02-06 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417323', 'tblTempVendorCDR_20' ) start [2025-02-06 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417323', 'tblTempVendorCDR_20' ) end [2025-02-06 19:57:19] Production.INFO: ProcessCDR(1,14417323,1,1,2) [2025-02-06 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417323', 'tblTempUsageDetail_20' ) start [2025-02-06 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417323', 'tblTempUsageDetail_20' ) end [2025-02-06 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:57:23] Production.INFO: ==18131== Releasing lock... [2025-02-06 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:57:23] Production.INFO: 46 MB #Memory Used# [2025-02-06 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:58:04 [end_date_ymd] => 2025-02-06 19:58:04 [RateCDR] => 1 ) [2025-02-06 19: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-06 16:58:04' and `end` < '2025-02-06 19: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-06 19:58:17] Production.INFO: count ==2364 [2025-02-06 19:58:18] Production.ERROR: pbx CDR StartTime 2025-02-06 16:58:04 - End Time 2025-02-06 19:58:04 [2025-02-06 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417328', 'tblTempUsageDetail_20' ) start [2025-02-06 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417328', 'tblTempUsageDetail_20' ) end [2025-02-06 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417328', 'tblTempVendorCDR_20' ) start [2025-02-06 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417328', 'tblTempVendorCDR_20' ) end [2025-02-06 19:58:18] Production.INFO: ProcessCDR(1,14417328,1,1,2) [2025-02-06 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417328', 'tblTempUsageDetail_20' ) start [2025-02-06 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417328', 'tblTempUsageDetail_20' ) end [2025-02-06 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:58:21] Production.INFO: ==18214== Releasing lock... [2025-02-06 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:58:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-06 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 16:59:05 [end_date_ymd] => 2025-02-06 19:59:05 [RateCDR] => 1 ) [2025-02-06 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 16:59:05' and `end` < '2025-02-06 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 19:59:19] Production.INFO: count ==2357 [2025-02-06 19:59:19] Production.ERROR: pbx CDR StartTime 2025-02-06 16:59:05 - End Time 2025-02-06 19:59:05 [2025-02-06 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417333', 'tblTempUsageDetail_20' ) start [2025-02-06 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417333', 'tblTempUsageDetail_20' ) end [2025-02-06 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417333', 'tblTempVendorCDR_20' ) start [2025-02-06 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417333', 'tblTempVendorCDR_20' ) end [2025-02-06 19:59:19] Production.INFO: ProcessCDR(1,14417333,1,1,2) [2025-02-06 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417333', 'tblTempUsageDetail_20' ) start [2025-02-06 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417333', 'tblTempUsageDetail_20' ) end [2025-02-06 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 19:59:24] Production.INFO: ==18296== Releasing lock... [2025-02-06 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 19:59:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-06 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:00:06 [end_date_ymd] => 2025-02-06 20:00:06 [RateCDR] => 1 ) [2025-02-06 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:00:06' and `end` < '2025-02-06 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:00:20] Production.INFO: count ==2347 [2025-02-06 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:00:06 - End Time 2025-02-06 20:00:06 [2025-02-06 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417339', 'tblTempUsageDetail_20' ) start [2025-02-06 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417339', 'tblTempUsageDetail_20' ) end [2025-02-06 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417339', 'tblTempVendorCDR_20' ) start [2025-02-06 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417339', 'tblTempVendorCDR_20' ) end [2025-02-06 20:00:20] Production.INFO: ProcessCDR(1,14417339,1,1,2) [2025-02-06 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417339', 'tblTempUsageDetail_20' ) start [2025-02-06 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417339', 'tblTempUsageDetail_20' ) end [2025-02-06 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:00:23] Production.INFO: ==18418== Releasing lock... [2025-02-06 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:00:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-06 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:01:05 [end_date_ymd] => 2025-02-06 20:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:01:05' and `end` < '2025-02-06 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-06 20:01:19] Production.INFO: count ==2309 [2025-02-06 20:01:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:01:05 - End Time 2025-02-06 20:01:05 [2025-02-06 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417344', 'tblTempUsageDetail_20' ) start [2025-02-06 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417344', 'tblTempUsageDetail_20' ) end [2025-02-06 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417344', 'tblTempVendorCDR_20' ) start [2025-02-06 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417344', 'tblTempVendorCDR_20' ) end [2025-02-06 20:01:19] Production.INFO: ProcessCDR(1,14417344,1,1,2) [2025-02-06 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417344', 'tblTempUsageDetail_20' ) start [2025-02-06 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417344', 'tblTempUsageDetail_20' ) end [2025-02-06 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:01:22] Production.INFO: ==18519== Releasing lock... [2025-02-06 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:01:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-06 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:02:05 [end_date_ymd] => 2025-02-06 20:02:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:02:05' and `end` < '2025-02-06 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-06 20:02:19] Production.INFO: count ==2289 [2025-02-06 20:02:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:02:05 - End Time 2025-02-06 20:02:05 [2025-02-06 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417349', 'tblTempUsageDetail_20' ) start [2025-02-06 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417349', 'tblTempUsageDetail_20' ) end [2025-02-06 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417349', 'tblTempVendorCDR_20' ) start [2025-02-06 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417349', 'tblTempVendorCDR_20' ) end [2025-02-06 20:02:20] Production.INFO: ProcessCDR(1,14417349,1,1,2) [2025-02-06 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417349', 'tblTempUsageDetail_20' ) start [2025-02-06 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417349', 'tblTempUsageDetail_20' ) end [2025-02-06 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:02:23] Production.INFO: ==18600== Releasing lock... [2025-02-06 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:02:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-06 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:03:05 [end_date_ymd] => 2025-02-06 20:03:05 [RateCDR] => 1 ) [2025-02-06 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:03:05' and `end` < '2025-02-06 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:03:18] Production.INFO: count ==2263 [2025-02-06 20:03:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:03:05 - End Time 2025-02-06 20:03:05 [2025-02-06 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417354', 'tblTempUsageDetail_20' ) start [2025-02-06 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417354', 'tblTempUsageDetail_20' ) end [2025-02-06 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417354', 'tblTempVendorCDR_20' ) start [2025-02-06 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417354', 'tblTempVendorCDR_20' ) end [2025-02-06 20:03:19] Production.INFO: ProcessCDR(1,14417354,1,1,2) [2025-02-06 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417354', 'tblTempUsageDetail_20' ) start [2025-02-06 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417354', 'tblTempUsageDetail_20' ) end [2025-02-06 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:03:22] Production.INFO: ==18733== Releasing lock... [2025-02-06 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:03:22] Production.INFO: 45 MB #Memory Used# [2025-02-06 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:04:05 [end_date_ymd] => 2025-02-06 20:04:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:04:05' and `end` < '2025-02-06 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-06 20:04:18] Production.INFO: count ==2250 [2025-02-06 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:04:05 - End Time 2025-02-06 20:04:05 [2025-02-06 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417359', 'tblTempUsageDetail_20' ) start [2025-02-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417359', 'tblTempUsageDetail_20' ) end [2025-02-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417359', 'tblTempVendorCDR_20' ) start [2025-02-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417359', 'tblTempVendorCDR_20' ) end [2025-02-06 20:04:19] Production.INFO: ProcessCDR(1,14417359,1,1,2) [2025-02-06 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417359', 'tblTempUsageDetail_20' ) start [2025-02-06 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417359', 'tblTempUsageDetail_20' ) end [2025-02-06 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:04:22] Production.INFO: ==18820== Releasing lock... [2025-02-06 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:04:22] Production.INFO: 45 MB #Memory Used# [2025-02-06 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:05:05 [end_date_ymd] => 2025-02-06 20:05:05 [RateCDR] => 1 ) [2025-02-06 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:05:05' and `end` < '2025-02-06 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:05:18] Production.INFO: count ==2231 [2025-02-06 20:05:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:05:05 - End Time 2025-02-06 20:05:05 [2025-02-06 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417364', 'tblTempUsageDetail_20' ) start [2025-02-06 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417364', 'tblTempUsageDetail_20' ) end [2025-02-06 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417364', 'tblTempVendorCDR_20' ) start [2025-02-06 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417364', 'tblTempVendorCDR_20' ) end [2025-02-06 20:05:19] Production.INFO: ProcessCDR(1,14417364,1,1,2) [2025-02-06 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417364', 'tblTempUsageDetail_20' ) start [2025-02-06 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417364', 'tblTempUsageDetail_20' ) end [2025-02-06 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:05:22] Production.INFO: ==18898== Releasing lock... [2025-02-06 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:05:22] Production.INFO: 45 MB #Memory Used# [2025-02-06 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:06:06 [end_date_ymd] => 2025-02-06 20:06:06 [RateCDR] => 1 ) [2025-02-06 20:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:06:06' and `end` < '2025-02-06 20:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:06:19] Production.INFO: count ==2208 [2025-02-06 20:06:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:06:06 - End Time 2025-02-06 20:06:06 [2025-02-06 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417369', 'tblTempUsageDetail_20' ) start [2025-02-06 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417369', 'tblTempUsageDetail_20' ) end [2025-02-06 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417369', 'tblTempVendorCDR_20' ) start [2025-02-06 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417369', 'tblTempVendorCDR_20' ) end [2025-02-06 20:06:20] Production.INFO: ProcessCDR(1,14417369,1,1,2) [2025-02-06 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417369', 'tblTempUsageDetail_20' ) start [2025-02-06 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417369', 'tblTempUsageDetail_20' ) end [2025-02-06 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:06:23] Production.INFO: ==18983== Releasing lock... [2025-02-06 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:06:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-06 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:07:06 [end_date_ymd] => 2025-02-06 20:07:06 [RateCDR] => 1 ) [2025-02-06 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-06 17:07:06' and `end` < '2025-02-06 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-06 20:07:19] Production.INFO: count ==2198 [2025-02-06 20:07:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:07:06 - End Time 2025-02-06 20:07:06 [2025-02-06 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417374', 'tblTempUsageDetail_20' ) start [2025-02-06 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417374', 'tblTempUsageDetail_20' ) end [2025-02-06 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417374', 'tblTempVendorCDR_20' ) start [2025-02-06 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417374', 'tblTempVendorCDR_20' ) end [2025-02-06 20:07:20] Production.INFO: ProcessCDR(1,14417374,1,1,2) [2025-02-06 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417374', 'tblTempUsageDetail_20' ) start [2025-02-06 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417374', 'tblTempUsageDetail_20' ) end [2025-02-06 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:07:23] Production.INFO: ==19074== Releasing lock... [2025-02-06 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:07:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-06 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:08:05 [end_date_ymd] => 2025-02-06 20:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:08:05' and `end` < '2025-02-06 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-06 20:08:19] Production.INFO: count ==2201 [2025-02-06 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:08:05 - End Time 2025-02-06 20:08:05 [2025-02-06 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417379', 'tblTempUsageDetail_20' ) start [2025-02-06 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417379', 'tblTempUsageDetail_20' ) end [2025-02-06 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417379', 'tblTempVendorCDR_20' ) start [2025-02-06 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417379', 'tblTempVendorCDR_20' ) end [2025-02-06 20:08:19] Production.INFO: ProcessCDR(1,14417379,1,1,2) [2025-02-06 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417379', 'tblTempUsageDetail_20' ) start [2025-02-06 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417379', 'tblTempUsageDetail_20' ) end [2025-02-06 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:08:23] Production.INFO: ==19171== Releasing lock... [2025-02-06 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:08:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-06 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:09:05 [end_date_ymd] => 2025-02-06 20:09:05 [RateCDR] => 1 ) [2025-02-06 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:09:05' and `end` < '2025-02-06 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:09:19] Production.INFO: count ==2193 [2025-02-06 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:09:05 - End Time 2025-02-06 20:09:05 [2025-02-06 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417384', 'tblTempUsageDetail_20' ) start [2025-02-06 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417384', 'tblTempUsageDetail_20' ) end [2025-02-06 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417384', 'tblTempVendorCDR_20' ) start [2025-02-06 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417384', 'tblTempVendorCDR_20' ) end [2025-02-06 20:09:19] Production.INFO: ProcessCDR(1,14417384,1,1,2) [2025-02-06 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417384', 'tblTempUsageDetail_20' ) start [2025-02-06 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417384', 'tblTempUsageDetail_20' ) end [2025-02-06 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:09:24] Production.INFO: ==19258== Releasing lock... [2025-02-06 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:09:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-06 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:10:06 [end_date_ymd] => 2025-02-06 20:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 17:10:06' and `end` < '2025-02-06 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-06 20:10:19] Production.INFO: count ==2190 [2025-02-06 20:10:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:10:06 - End Time 2025-02-06 20:10:06 [2025-02-06 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417390', 'tblTempUsageDetail_20' ) start [2025-02-06 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417390', 'tblTempUsageDetail_20' ) end [2025-02-06 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417390', 'tblTempVendorCDR_20' ) start [2025-02-06 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417390', 'tblTempVendorCDR_20' ) end [2025-02-06 20:10:20] Production.INFO: ProcessCDR(1,14417390,1,1,2) [2025-02-06 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417390', 'tblTempUsageDetail_20' ) start [2025-02-06 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417390', 'tblTempUsageDetail_20' ) end [2025-02-06 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:10:25] Production.INFO: ==19345== Releasing lock... [2025-02-06 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:10:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-06 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:11:06 [end_date_ymd] => 2025-02-06 20:11:06 [RateCDR] => 1 ) [2025-02-06 20: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-06 17:11:06' and `end` < '2025-02-06 20: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-06 20:11:19] Production.INFO: count ==2144 [2025-02-06 20:11:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:11:06 - End Time 2025-02-06 20:11:06 [2025-02-06 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417395', 'tblTempUsageDetail_20' ) start [2025-02-06 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417395', 'tblTempUsageDetail_20' ) end [2025-02-06 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417395', 'tblTempVendorCDR_20' ) start [2025-02-06 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417395', 'tblTempVendorCDR_20' ) end [2025-02-06 20:11:20] Production.INFO: ProcessCDR(1,14417395,1,1,2) [2025-02-06 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417395', 'tblTempUsageDetail_20' ) start [2025-02-06 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417395', 'tblTempUsageDetail_20' ) end [2025-02-06 20:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:11:25] Production.INFO: ==19431== Releasing lock... [2025-02-06 20:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:11:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-06 20:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:12:04 [end_date_ymd] => 2025-02-06 20:12:04 [RateCDR] => 1 ) [2025-02-06 20:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:12:04' and `end` < '2025-02-06 20:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:12:18] Production.INFO: count ==2142 [2025-02-06 20:12:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:12:04 - End Time 2025-02-06 20:12:04 [2025-02-06 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417400', 'tblTempUsageDetail_20' ) start [2025-02-06 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417400', 'tblTempUsageDetail_20' ) end [2025-02-06 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417400', 'tblTempVendorCDR_20' ) start [2025-02-06 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417400', 'tblTempVendorCDR_20' ) end [2025-02-06 20:12:18] Production.INFO: ProcessCDR(1,14417400,1,1,2) [2025-02-06 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417400', 'tblTempUsageDetail_20' ) start [2025-02-06 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417400', 'tblTempUsageDetail_20' ) end [2025-02-06 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:12:21] Production.INFO: ==19514== Releasing lock... [2025-02-06 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:12:21] Production.INFO: 44 MB #Memory Used# [2025-02-06 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:13:05 [end_date_ymd] => 2025-02-06 20:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:13:05' and `end` < '2025-02-06 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-06 20:13:18] Production.INFO: count ==2137 [2025-02-06 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:13:05 - End Time 2025-02-06 20:13:05 [2025-02-06 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417405', 'tblTempUsageDetail_20' ) start [2025-02-06 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417405', 'tblTempUsageDetail_20' ) end [2025-02-06 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417405', 'tblTempVendorCDR_20' ) start [2025-02-06 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417405', 'tblTempVendorCDR_20' ) end [2025-02-06 20:13:19] Production.INFO: ProcessCDR(1,14417405,1,1,2) [2025-02-06 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417405', 'tblTempUsageDetail_20' ) start [2025-02-06 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417405', 'tblTempUsageDetail_20' ) end [2025-02-06 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:13:23] Production.INFO: ==19602== Releasing lock... [2025-02-06 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:13:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-06 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:14:05 [end_date_ymd] => 2025-02-06 20:14:05 [RateCDR] => 1 ) [2025-02-06 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:14:05' and `end` < '2025-02-06 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:14:18] Production.INFO: count ==2132 [2025-02-06 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:14:05 - End Time 2025-02-06 20:14:05 [2025-02-06 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417410', 'tblTempUsageDetail_20' ) start [2025-02-06 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417410', 'tblTempUsageDetail_20' ) end [2025-02-06 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417410', 'tblTempVendorCDR_20' ) start [2025-02-06 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417410', 'tblTempVendorCDR_20' ) end [2025-02-06 20:14:19] Production.INFO: ProcessCDR(1,14417410,1,1,2) [2025-02-06 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417410', 'tblTempUsageDetail_20' ) start [2025-02-06 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417410', 'tblTempUsageDetail_20' ) end [2025-02-06 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:14:22] Production.INFO: ==19691== Releasing lock... [2025-02-06 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:14:22] Production.INFO: 44 MB #Memory Used# [2025-02-06 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:15:05 [end_date_ymd] => 2025-02-06 20:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:15:05' and `end` < '2025-02-06 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-06 20:15:18] Production.INFO: count ==2128 [2025-02-06 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:15:05 - End Time 2025-02-06 20:15:05 [2025-02-06 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417415', 'tblTempUsageDetail_20' ) start [2025-02-06 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417415', 'tblTempUsageDetail_20' ) end [2025-02-06 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417415', 'tblTempVendorCDR_20' ) start [2025-02-06 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417415', 'tblTempVendorCDR_20' ) end [2025-02-06 20:15:19] Production.INFO: ProcessCDR(1,14417415,1,1,2) [2025-02-06 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417415', 'tblTempUsageDetail_20' ) start [2025-02-06 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417415', 'tblTempUsageDetail_20' ) end [2025-02-06 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:15:24] Production.INFO: ==19778== Releasing lock... [2025-02-06 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:15:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-06 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:16:05 [end_date_ymd] => 2025-02-06 20:16:05 [RateCDR] => 1 ) [2025-02-06 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:16:05' and `end` < '2025-02-06 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:16:19] Production.INFO: count ==2131 [2025-02-06 20:16:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:16:05 - End Time 2025-02-06 20:16:05 [2025-02-06 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417420', 'tblTempUsageDetail_20' ) start [2025-02-06 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417420', 'tblTempUsageDetail_20' ) end [2025-02-06 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417420', 'tblTempVendorCDR_20' ) start [2025-02-06 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417420', 'tblTempVendorCDR_20' ) end [2025-02-06 20:16:19] Production.INFO: ProcessCDR(1,14417420,1,1,2) [2025-02-06 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417420', 'tblTempUsageDetail_20' ) start [2025-02-06 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417420', 'tblTempUsageDetail_20' ) end [2025-02-06 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:16:24] Production.INFO: ==19863== Releasing lock... [2025-02-06 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:16:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-06 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:17:05 [end_date_ymd] => 2025-02-06 20:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:17:05' and `end` < '2025-02-06 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-06 20:17:18] Production.INFO: count ==2119 [2025-02-06 20:17:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:17:05 - End Time 2025-02-06 20:17:05 [2025-02-06 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417421', 'tblTempUsageDetail_20' ) start [2025-02-06 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417421', 'tblTempUsageDetail_20' ) end [2025-02-06 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417421', 'tblTempVendorCDR_20' ) start [2025-02-06 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417421', 'tblTempVendorCDR_20' ) end [2025-02-06 20:17:19] Production.INFO: ProcessCDR(1,14417421,1,1,2) [2025-02-06 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417421', 'tblTempUsageDetail_20' ) start [2025-02-06 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417421', 'tblTempUsageDetail_20' ) end [2025-02-06 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:17:23] Production.INFO: ==19954== Releasing lock... [2025-02-06 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:17:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-06 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:18:05 [end_date_ymd] => 2025-02-06 20:18:05 [RateCDR] => 1 ) [2025-02-06 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:18:05' and `end` < '2025-02-06 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:18:18] Production.INFO: count ==2087 [2025-02-06 20:18:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:18:05 - End Time 2025-02-06 20:18:05 [2025-02-06 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417429', 'tblTempUsageDetail_20' ) start [2025-02-06 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417429', 'tblTempUsageDetail_20' ) end [2025-02-06 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417429', 'tblTempVendorCDR_20' ) start [2025-02-06 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417429', 'tblTempVendorCDR_20' ) end [2025-02-06 20:18:19] Production.INFO: ProcessCDR(1,14417429,1,1,2) [2025-02-06 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417429', 'tblTempUsageDetail_20' ) start [2025-02-06 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417429', 'tblTempUsageDetail_20' ) end [2025-02-06 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:18:24] Production.INFO: ==20058== Releasing lock... [2025-02-06 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:18:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-06 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:19:05 [end_date_ymd] => 2025-02-06 20:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:19:05' and `end` < '2025-02-06 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-06 20:19:18] Production.INFO: count ==2084 [2025-02-06 20:19:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:19:05 - End Time 2025-02-06 20:19:05 [2025-02-06 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417435', 'tblTempUsageDetail_20' ) start [2025-02-06 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417435', 'tblTempUsageDetail_20' ) end [2025-02-06 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417435', 'tblTempVendorCDR_20' ) start [2025-02-06 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417435', 'tblTempVendorCDR_20' ) end [2025-02-06 20:19:18] Production.INFO: ProcessCDR(1,14417435,1,1,2) [2025-02-06 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417435', 'tblTempUsageDetail_20' ) start [2025-02-06 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417435', 'tblTempUsageDetail_20' ) end [2025-02-06 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:19:23] Production.INFO: ==20183== Releasing lock... [2025-02-06 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:19:23] Production.INFO: 44 MB #Memory Used# [2025-02-06 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:20:06 [end_date_ymd] => 2025-02-06 20:20:06 [RateCDR] => 1 ) [2025-02-06 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-06 17:20:06' and `end` < '2025-02-06 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-06 20:20:19] Production.INFO: count ==2077 [2025-02-06 20:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:20:06 - End Time 2025-02-06 20:20:06 [2025-02-06 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417440', 'tblTempUsageDetail_20' ) start [2025-02-06 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417440', 'tblTempUsageDetail_20' ) end [2025-02-06 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417440', 'tblTempVendorCDR_20' ) start [2025-02-06 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417440', 'tblTempVendorCDR_20' ) end [2025-02-06 20:20:19] Production.INFO: ProcessCDR(1,14417440,1,1,2) [2025-02-06 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417440', 'tblTempUsageDetail_20' ) start [2025-02-06 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417440', 'tblTempUsageDetail_20' ) end [2025-02-06 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:20:22] Production.INFO: ==20271== Releasing lock... [2025-02-06 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:20:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-06 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:21:05 [end_date_ymd] => 2025-02-06 20:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:21:05' and `end` < '2025-02-06 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-06 20:21:18] Production.INFO: count ==2014 [2025-02-06 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:21:05 - End Time 2025-02-06 20:21:05 [2025-02-06 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417446', 'tblTempUsageDetail_20' ) start [2025-02-06 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417446', 'tblTempUsageDetail_20' ) end [2025-02-06 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417446', 'tblTempVendorCDR_20' ) start [2025-02-06 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417446', 'tblTempVendorCDR_20' ) end [2025-02-06 20:21:19] Production.INFO: ProcessCDR(1,14417446,1,1,2) [2025-02-06 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417446', 'tblTempUsageDetail_20' ) start [2025-02-06 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417446', 'tblTempUsageDetail_20' ) end [2025-02-06 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:21:22] Production.INFO: ==20357== Releasing lock... [2025-02-06 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:21:22] Production.INFO: 43 MB #Memory Used# [2025-02-06 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:22:05 [end_date_ymd] => 2025-02-06 20:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:22:05' and `end` < '2025-02-06 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-06 20:22:19] Production.INFO: count ==2014 [2025-02-06 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:22:05 - End Time 2025-02-06 20:22:05 [2025-02-06 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417451', 'tblTempUsageDetail_20' ) start [2025-02-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417451', 'tblTempUsageDetail_20' ) end [2025-02-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417451', 'tblTempVendorCDR_20' ) start [2025-02-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417451', 'tblTempVendorCDR_20' ) end [2025-02-06 20:22:19] Production.INFO: ProcessCDR(1,14417451,1,1,2) [2025-02-06 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417451', 'tblTempUsageDetail_20' ) start [2025-02-06 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417451', 'tblTempUsageDetail_20' ) end [2025-02-06 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:22:22] Production.INFO: ==20442== Releasing lock... [2025-02-06 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:22:22] Production.INFO: 43 MB #Memory Used# [2025-02-06 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:23:06 [end_date_ymd] => 2025-02-06 20:23:06 [RateCDR] => 1 ) [2025-02-06 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-06 17:23:06' and `end` < '2025-02-06 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-06 20:23:20] Production.INFO: count ==2010 [2025-02-06 20:23:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:23:06 - End Time 2025-02-06 20:23:06 [2025-02-06 20:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417456', 'tblTempUsageDetail_20' ) start [2025-02-06 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417456', 'tblTempUsageDetail_20' ) end [2025-02-06 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417456', 'tblTempVendorCDR_20' ) start [2025-02-06 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417456', 'tblTempVendorCDR_20' ) end [2025-02-06 20:23:20] Production.INFO: ProcessCDR(1,14417456,1,1,2) [2025-02-06 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417456', 'tblTempUsageDetail_20' ) start [2025-02-06 20:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417456', 'tblTempUsageDetail_20' ) end [2025-02-06 20:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:23:25] Production.INFO: ==20527== Releasing lock... [2025-02-06 20:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:23:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-06 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:24:05 [end_date_ymd] => 2025-02-06 20:24:05 [RateCDR] => 1 ) [2025-02-06 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:24:05' and `end` < '2025-02-06 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:24:20] Production.INFO: count ==2009 [2025-02-06 20:24:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:24:05 - End Time 2025-02-06 20:24:05 [2025-02-06 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417461', 'tblTempUsageDetail_20' ) start [2025-02-06 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417461', 'tblTempUsageDetail_20' ) end [2025-02-06 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417461', 'tblTempVendorCDR_20' ) start [2025-02-06 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417461', 'tblTempVendorCDR_20' ) end [2025-02-06 20:24:20] Production.INFO: ProcessCDR(1,14417461,1,1,2) [2025-02-06 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417461', 'tblTempUsageDetail_20' ) start [2025-02-06 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417461', 'tblTempUsageDetail_20' ) end [2025-02-06 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:24:23] Production.INFO: ==20615== Releasing lock... [2025-02-06 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:24:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-06 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:25:06 [end_date_ymd] => 2025-02-06 20:25:06 [RateCDR] => 1 ) [2025-02-06 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:25:06' and `end` < '2025-02-06 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:25:19] Production.INFO: count ==2001 [2025-02-06 20:25:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:25:06 - End Time 2025-02-06 20:25:06 [2025-02-06 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417466', 'tblTempUsageDetail_20' ) start [2025-02-06 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417466', 'tblTempUsageDetail_20' ) end [2025-02-06 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417466', 'tblTempVendorCDR_20' ) start [2025-02-06 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417466', 'tblTempVendorCDR_20' ) end [2025-02-06 20:25:20] Production.INFO: ProcessCDR(1,14417466,1,1,2) [2025-02-06 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417466', 'tblTempUsageDetail_20' ) start [2025-02-06 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417466', 'tblTempUsageDetail_20' ) end [2025-02-06 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:25:23] Production.INFO: ==20696== Releasing lock... [2025-02-06 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:25:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-06 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:26:05 [end_date_ymd] => 2025-02-06 20:26:05 [RateCDR] => 1 ) [2025-02-06 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:26:05' and `end` < '2025-02-06 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:26:18] Production.INFO: count ==2000 [2025-02-06 20:26:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:26:05 - End Time 2025-02-06 20:26:05 [2025-02-06 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417471', 'tblTempUsageDetail_20' ) start [2025-02-06 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417471', 'tblTempUsageDetail_20' ) end [2025-02-06 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417471', 'tblTempVendorCDR_20' ) start [2025-02-06 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417471', 'tblTempVendorCDR_20' ) end [2025-02-06 20:26:19] Production.INFO: ProcessCDR(1,14417471,1,1,2) [2025-02-06 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417471', 'tblTempUsageDetail_20' ) start [2025-02-06 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417471', 'tblTempUsageDetail_20' ) end [2025-02-06 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:26:22] Production.INFO: ==20783== Releasing lock... [2025-02-06 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:26:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-06 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:27:05 [end_date_ymd] => 2025-02-06 20:27:05 [RateCDR] => 1 ) [2025-02-06 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:27:05' and `end` < '2025-02-06 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:27:19] Production.INFO: count ==1999 [2025-02-06 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:27:05 - End Time 2025-02-06 20:27:05 [2025-02-06 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417476', 'tblTempUsageDetail_20' ) start [2025-02-06 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417476', 'tblTempUsageDetail_20' ) end [2025-02-06 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417476', 'tblTempVendorCDR_20' ) start [2025-02-06 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417476', 'tblTempVendorCDR_20' ) end [2025-02-06 20:27:19] Production.INFO: ProcessCDR(1,14417476,1,1,2) [2025-02-06 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417476', 'tblTempUsageDetail_20' ) start [2025-02-06 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417476', 'tblTempUsageDetail_20' ) end [2025-02-06 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:27:24] Production.INFO: ==20863== Releasing lock... [2025-02-06 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:27:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-06 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:28:04 [end_date_ymd] => 2025-02-06 20:28:04 [RateCDR] => 1 ) [2025-02-06 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:28:04' and `end` < '2025-02-06 20:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:28:18] Production.INFO: count ==1995 [2025-02-06 20:28:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:28:04 - End Time 2025-02-06 20:28:04 [2025-02-06 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417481', 'tblTempUsageDetail_20' ) start [2025-02-06 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417481', 'tblTempUsageDetail_20' ) end [2025-02-06 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417481', 'tblTempVendorCDR_20' ) start [2025-02-06 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417481', 'tblTempVendorCDR_20' ) end [2025-02-06 20:28:18] Production.INFO: ProcessCDR(1,14417481,1,1,2) [2025-02-06 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417481', 'tblTempUsageDetail_20' ) start [2025-02-06 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417481', 'tblTempUsageDetail_20' ) end [2025-02-06 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:28:21] Production.INFO: ==20944== Releasing lock... [2025-02-06 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:28:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-06 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:29:05 [end_date_ymd] => 2025-02-06 20:29:05 [RateCDR] => 1 ) [2025-02-06 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:29:05' and `end` < '2025-02-06 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:29:19] Production.INFO: count ==1993 [2025-02-06 20:29:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:29:05 - End Time 2025-02-06 20:29:05 [2025-02-06 20:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417486', 'tblTempUsageDetail_20' ) start [2025-02-06 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417486', 'tblTempUsageDetail_20' ) end [2025-02-06 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417486', 'tblTempVendorCDR_20' ) start [2025-02-06 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417486', 'tblTempVendorCDR_20' ) end [2025-02-06 20:29:20] Production.INFO: ProcessCDR(1,14417486,1,1,2) [2025-02-06 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417486', 'tblTempUsageDetail_20' ) start [2025-02-06 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417486', 'tblTempUsageDetail_20' ) end [2025-02-06 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:29:23] Production.INFO: ==21031== Releasing lock... [2025-02-06 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:29:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-06 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:30:06 [end_date_ymd] => 2025-02-06 20:30:06 [RateCDR] => 1 ) [2025-02-06 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-06 17:30:06' and `end` < '2025-02-06 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-06 20:30:19] Production.INFO: count ==1987 [2025-02-06 20:30:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:30:06 - End Time 2025-02-06 20:30:06 [2025-02-06 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417491', 'tblTempUsageDetail_20' ) start [2025-02-06 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417491', 'tblTempUsageDetail_20' ) end [2025-02-06 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417491', 'tblTempVendorCDR_20' ) start [2025-02-06 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417491', 'tblTempVendorCDR_20' ) end [2025-02-06 20:30:20] Production.INFO: ProcessCDR(1,14417491,1,1,2) [2025-02-06 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417491', 'tblTempUsageDetail_20' ) start [2025-02-06 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417491', 'tblTempUsageDetail_20' ) end [2025-02-06 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:30:24] Production.INFO: ==21116== Releasing lock... [2025-02-06 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:30:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-06 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:31:05 [end_date_ymd] => 2025-02-06 20:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:31:05' and `end` < '2025-02-06 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-06 20:31:18] Production.INFO: count ==1907 [2025-02-06 20:31:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:31:05 - End Time 2025-02-06 20:31:05 [2025-02-06 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417497', 'tblTempUsageDetail_20' ) start [2025-02-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417497', 'tblTempUsageDetail_20' ) end [2025-02-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417497', 'tblTempVendorCDR_20' ) start [2025-02-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417497', 'tblTempVendorCDR_20' ) end [2025-02-06 20:31:18] Production.INFO: ProcessCDR(1,14417497,1,1,2) [2025-02-06 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417497', 'tblTempUsageDetail_20' ) start [2025-02-06 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417497', 'tblTempUsageDetail_20' ) end [2025-02-06 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:31:21] Production.INFO: ==21205== Releasing lock... [2025-02-06 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:31:21] Production.INFO: 42 MB #Memory Used# [2025-02-06 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:32:06 [end_date_ymd] => 2025-02-06 20:32:06 [RateCDR] => 1 ) [2025-02-06 20:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:32:06' and `end` < '2025-02-06 20:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:32:20] Production.INFO: count ==1905 [2025-02-06 20:32:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:32:06 - End Time 2025-02-06 20:32:06 [2025-02-06 20:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417502', 'tblTempUsageDetail_20' ) start [2025-02-06 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417502', 'tblTempUsageDetail_20' ) end [2025-02-06 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417502', 'tblTempVendorCDR_20' ) start [2025-02-06 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417502', 'tblTempVendorCDR_20' ) end [2025-02-06 20:32:20] Production.INFO: ProcessCDR(1,14417502,1,1,2) [2025-02-06 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417502', 'tblTempUsageDetail_20' ) start [2025-02-06 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417502', 'tblTempUsageDetail_20' ) end [2025-02-06 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:32:23] Production.INFO: ==21283== Releasing lock... [2025-02-06 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:32:23] Production.INFO: 42 MB #Memory Used# [2025-02-06 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:33:05 [end_date_ymd] => 2025-02-06 20:33:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:33:05' and `end` < '2025-02-06 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-06 20:33:18] Production.INFO: count ==1898 [2025-02-06 20:33:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:33:05 - End Time 2025-02-06 20:33:05 [2025-02-06 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417507', 'tblTempUsageDetail_20' ) start [2025-02-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417507', 'tblTempUsageDetail_20' ) end [2025-02-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417507', 'tblTempVendorCDR_20' ) start [2025-02-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417507', 'tblTempVendorCDR_20' ) end [2025-02-06 20:33:19] Production.INFO: ProcessCDR(1,14417507,1,1,2) [2025-02-06 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417507', 'tblTempUsageDetail_20' ) start [2025-02-06 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417507', 'tblTempUsageDetail_20' ) end [2025-02-06 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:33:22] Production.INFO: ==21360== Releasing lock... [2025-02-06 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:33:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-06 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:34:05 [end_date_ymd] => 2025-02-06 20:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:34:05' and `end` < '2025-02-06 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-06 20:34:18] Production.INFO: count ==1891 [2025-02-06 20:34:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:34:05 - End Time 2025-02-06 20:34:05 [2025-02-06 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417512', 'tblTempUsageDetail_20' ) start [2025-02-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417512', 'tblTempUsageDetail_20' ) end [2025-02-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417512', 'tblTempVendorCDR_20' ) start [2025-02-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417512', 'tblTempVendorCDR_20' ) end [2025-02-06 20:34:18] Production.INFO: ProcessCDR(1,14417512,1,1,2) [2025-02-06 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417512', 'tblTempUsageDetail_20' ) start [2025-02-06 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417512', 'tblTempUsageDetail_20' ) end [2025-02-06 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:34:21] Production.INFO: ==21479== Releasing lock... [2025-02-06 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:34:21] Production.INFO: 42 MB #Memory Used# [2025-02-06 20:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:35:04 [end_date_ymd] => 2025-02-06 20:35:04 [RateCDR] => 1 ) [2025-02-06 20:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:35:04' and `end` < '2025-02-06 20:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:35:18] Production.INFO: count ==1889 [2025-02-06 20:35:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:35:04 - End Time 2025-02-06 20:35:04 [2025-02-06 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417517', 'tblTempUsageDetail_20' ) start [2025-02-06 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417517', 'tblTempUsageDetail_20' ) end [2025-02-06 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417517', 'tblTempVendorCDR_20' ) start [2025-02-06 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417517', 'tblTempVendorCDR_20' ) end [2025-02-06 20:35:18] Production.INFO: ProcessCDR(1,14417517,1,1,2) [2025-02-06 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417517', 'tblTempUsageDetail_20' ) start [2025-02-06 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417517', 'tblTempUsageDetail_20' ) end [2025-02-06 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:35:21] Production.INFO: ==21551== Releasing lock... [2025-02-06 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:35:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-06 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:36:05 [end_date_ymd] => 2025-02-06 20:36:05 [RateCDR] => 1 ) [2025-02-06 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:36:05' and `end` < '2025-02-06 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:36:18] Production.INFO: count ==1888 [2025-02-06 20:36:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:36:05 - End Time 2025-02-06 20:36:05 [2025-02-06 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417522', 'tblTempUsageDetail_20' ) start [2025-02-06 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417522', 'tblTempUsageDetail_20' ) end [2025-02-06 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417522', 'tblTempVendorCDR_20' ) start [2025-02-06 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417522', 'tblTempVendorCDR_20' ) end [2025-02-06 20:36:19] Production.INFO: ProcessCDR(1,14417522,1,1,2) [2025-02-06 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417522', 'tblTempUsageDetail_20' ) start [2025-02-06 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417522', 'tblTempUsageDetail_20' ) end [2025-02-06 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:36:22] Production.INFO: ==21628== Releasing lock... [2025-02-06 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:36:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-06 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:37:05 [end_date_ymd] => 2025-02-06 20:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:37:05' and `end` < '2025-02-06 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-06 20:37:19] Production.INFO: count ==1885 [2025-02-06 20:37:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:37:05 - End Time 2025-02-06 20:37:05 [2025-02-06 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417527', 'tblTempUsageDetail_20' ) start [2025-02-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417527', 'tblTempUsageDetail_20' ) end [2025-02-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417527', 'tblTempVendorCDR_20' ) start [2025-02-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417527', 'tblTempVendorCDR_20' ) end [2025-02-06 20:37:19] Production.INFO: ProcessCDR(1,14417527,1,1,2) [2025-02-06 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417527', 'tblTempUsageDetail_20' ) start [2025-02-06 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417527', 'tblTempUsageDetail_20' ) end [2025-02-06 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:37:23] Production.INFO: ==21705== Releasing lock... [2025-02-06 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:37:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-06 20:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:38:04 [end_date_ymd] => 2025-02-06 20:38:04 [RateCDR] => 1 ) [2025-02-06 20: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-06 17:38:04' and `end` < '2025-02-06 20: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-06 20:38:18] Production.INFO: count ==1882 [2025-02-06 20:38:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:38:04 - End Time 2025-02-06 20:38:04 [2025-02-06 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417532', 'tblTempUsageDetail_20' ) start [2025-02-06 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417532', 'tblTempUsageDetail_20' ) end [2025-02-06 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417532', 'tblTempVendorCDR_20' ) start [2025-02-06 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417532', 'tblTempVendorCDR_20' ) end [2025-02-06 20:38:18] Production.INFO: ProcessCDR(1,14417532,1,1,2) [2025-02-06 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417532', 'tblTempUsageDetail_20' ) start [2025-02-06 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417532', 'tblTempUsageDetail_20' ) end [2025-02-06 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:38:21] Production.INFO: ==21779== Releasing lock... [2025-02-06 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:38:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-06 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:39:05 [end_date_ymd] => 2025-02-06 20:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:39:05' and `end` < '2025-02-06 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-06 20:39:18] Production.INFO: count ==1873 [2025-02-06 20:39:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:39:05 - End Time 2025-02-06 20:39:05 [2025-02-06 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417537', 'tblTempUsageDetail_20' ) start [2025-02-06 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417537', 'tblTempUsageDetail_20' ) end [2025-02-06 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417537', 'tblTempVendorCDR_20' ) start [2025-02-06 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417537', 'tblTempVendorCDR_20' ) end [2025-02-06 20:39:19] Production.INFO: ProcessCDR(1,14417537,1,1,2) [2025-02-06 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417537', 'tblTempUsageDetail_20' ) start [2025-02-06 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417537', 'tblTempUsageDetail_20' ) end [2025-02-06 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:39:22] Production.INFO: ==21856== Releasing lock... [2025-02-06 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:39:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-06 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:40:05 [end_date_ymd] => 2025-02-06 20:40:05 [RateCDR] => 1 ) [2025-02-06 20: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-06 17:40:05' and `end` < '2025-02-06 20: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-06 20:40:18] Production.INFO: count ==1870 [2025-02-06 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:40:05 - End Time 2025-02-06 20:40:05 [2025-02-06 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417542', 'tblTempUsageDetail_20' ) start [2025-02-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417542', 'tblTempUsageDetail_20' ) end [2025-02-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417542', 'tblTempVendorCDR_20' ) start [2025-02-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417542', 'tblTempVendorCDR_20' ) end [2025-02-06 20:40:19] Production.INFO: ProcessCDR(1,14417542,1,1,2) [2025-02-06 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417542', 'tblTempUsageDetail_20' ) start [2025-02-06 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417542', 'tblTempUsageDetail_20' ) end [2025-02-06 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:40:22] Production.INFO: ==21938== Releasing lock... [2025-02-06 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:40:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-06 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:41:05 [end_date_ymd] => 2025-02-06 20:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:41:05' and `end` < '2025-02-06 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-06 20:41:18] Production.INFO: count ==1860 [2025-02-06 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:41:05 - End Time 2025-02-06 20:41:05 [2025-02-06 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417548', 'tblTempUsageDetail_20' ) start [2025-02-06 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417548', 'tblTempUsageDetail_20' ) end [2025-02-06 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417548', 'tblTempVendorCDR_20' ) start [2025-02-06 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417548', 'tblTempVendorCDR_20' ) end [2025-02-06 20:41:19] Production.INFO: ProcessCDR(1,14417548,1,1,2) [2025-02-06 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417548', 'tblTempUsageDetail_20' ) start [2025-02-06 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417548', 'tblTempUsageDetail_20' ) end [2025-02-06 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:41:22] Production.INFO: ==22022== Releasing lock... [2025-02-06 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:41:22] Production.INFO: 42 MB #Memory Used# [2025-02-06 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:42:05 [end_date_ymd] => 2025-02-06 20:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:42:05' and `end` < '2025-02-06 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-06 20:42:20] Production.INFO: count ==1855 [2025-02-06 20:42:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:42:05 - End Time 2025-02-06 20:42:05 [2025-02-06 20:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417553', 'tblTempUsageDetail_20' ) start [2025-02-06 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417553', 'tblTempUsageDetail_20' ) end [2025-02-06 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417553', 'tblTempVendorCDR_20' ) start [2025-02-06 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417553', 'tblTempVendorCDR_20' ) end [2025-02-06 20:42:20] Production.INFO: ProcessCDR(1,14417553,1,1,2) [2025-02-06 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417553', 'tblTempUsageDetail_20' ) start [2025-02-06 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417553', 'tblTempUsageDetail_20' ) end [2025-02-06 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:42:23] Production.INFO: ==22099== Releasing lock... [2025-02-06 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:42:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-06 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:43:05 [end_date_ymd] => 2025-02-06 20:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:43:05' and `end` < '2025-02-06 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-06 20:43:18] Production.INFO: count ==1853 [2025-02-06 20:43:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:43:05 - End Time 2025-02-06 20:43:05 [2025-02-06 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417558', 'tblTempUsageDetail_20' ) start [2025-02-06 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417558', 'tblTempUsageDetail_20' ) end [2025-02-06 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417558', 'tblTempVendorCDR_20' ) start [2025-02-06 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417558', 'tblTempVendorCDR_20' ) end [2025-02-06 20:43:19] Production.INFO: ProcessCDR(1,14417558,1,1,2) [2025-02-06 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417558', 'tblTempUsageDetail_20' ) start [2025-02-06 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417558', 'tblTempUsageDetail_20' ) end [2025-02-06 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:43:22] Production.INFO: ==22185== Releasing lock... [2025-02-06 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:43:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-06 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:44:06 [end_date_ymd] => 2025-02-06 20:44:06 [RateCDR] => 1 ) [2025-02-06 20:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:44:06' and `end` < '2025-02-06 20:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:44:19] Production.INFO: count ==1850 [2025-02-06 20:44:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:44:06 - End Time 2025-02-06 20:44:06 [2025-02-06 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417563', 'tblTempUsageDetail_20' ) start [2025-02-06 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417563', 'tblTempUsageDetail_20' ) end [2025-02-06 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417563', 'tblTempVendorCDR_20' ) start [2025-02-06 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417563', 'tblTempVendorCDR_20' ) end [2025-02-06 20:44:20] Production.INFO: ProcessCDR(1,14417563,1,1,2) [2025-02-06 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417563', 'tblTempUsageDetail_20' ) start [2025-02-06 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417563', 'tblTempUsageDetail_20' ) end [2025-02-06 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:44:23] Production.INFO: ==22267== Releasing lock... [2025-02-06 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:44:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-06 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:45:04 [end_date_ymd] => 2025-02-06 20:45:04 [RateCDR] => 1 ) [2025-02-06 20: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-06 17:45:04' and `end` < '2025-02-06 20: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-06 20:45:18] Production.INFO: count ==1854 [2025-02-06 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:45:04 - End Time 2025-02-06 20:45:04 [2025-02-06 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417568', 'tblTempUsageDetail_20' ) start [2025-02-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417568', 'tblTempUsageDetail_20' ) end [2025-02-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417568', 'tblTempVendorCDR_20' ) start [2025-02-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417568', 'tblTempVendorCDR_20' ) end [2025-02-06 20:45:18] Production.INFO: ProcessCDR(1,14417568,1,1,2) [2025-02-06 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417568', 'tblTempUsageDetail_20' ) start [2025-02-06 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417568', 'tblTempUsageDetail_20' ) end [2025-02-06 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:45:23] Production.INFO: ==22344== Releasing lock... [2025-02-06 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:45:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-06 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:46:05 [end_date_ymd] => 2025-02-06 20:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:46:05' and `end` < '2025-02-06 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-06 20:46:18] Production.INFO: count ==1836 [2025-02-06 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:46:05 - End Time 2025-02-06 20:46:05 [2025-02-06 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417573', 'tblTempUsageDetail_20' ) start [2025-02-06 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417573', 'tblTempUsageDetail_20' ) end [2025-02-06 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417573', 'tblTempVendorCDR_20' ) start [2025-02-06 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417573', 'tblTempVendorCDR_20' ) end [2025-02-06 20:46:19] Production.INFO: ProcessCDR(1,14417573,1,1,2) [2025-02-06 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417573', 'tblTempUsageDetail_20' ) start [2025-02-06 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417573', 'tblTempUsageDetail_20' ) end [2025-02-06 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:46:22] Production.INFO: ==22422== Releasing lock... [2025-02-06 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:46:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-06 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:47:05 [end_date_ymd] => 2025-02-06 20:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:47:05' and `end` < '2025-02-06 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-06 20:47:18] Production.INFO: count ==1827 [2025-02-06 20:47:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:47:05 - End Time 2025-02-06 20:47:05 [2025-02-06 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417578', 'tblTempUsageDetail_20' ) start [2025-02-06 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417578', 'tblTempUsageDetail_20' ) end [2025-02-06 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417578', 'tblTempVendorCDR_20' ) start [2025-02-06 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417578', 'tblTempVendorCDR_20' ) end [2025-02-06 20:47:19] Production.INFO: ProcessCDR(1,14417578,1,1,2) [2025-02-06 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417578', 'tblTempUsageDetail_20' ) start [2025-02-06 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417578', 'tblTempUsageDetail_20' ) end [2025-02-06 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:47:22] Production.INFO: ==22495== Releasing lock... [2025-02-06 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:47:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-06 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:48:05 [end_date_ymd] => 2025-02-06 20:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:48:05' and `end` < '2025-02-06 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-06 20:48:19] Production.INFO: count ==1818 [2025-02-06 20:48:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:48:05 - End Time 2025-02-06 20:48:05 [2025-02-06 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417583', 'tblTempUsageDetail_20' ) start [2025-02-06 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417583', 'tblTempUsageDetail_20' ) end [2025-02-06 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417583', 'tblTempVendorCDR_20' ) start [2025-02-06 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417583', 'tblTempVendorCDR_20' ) end [2025-02-06 20:48:20] Production.INFO: ProcessCDR(1,14417583,1,1,2) [2025-02-06 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417583', 'tblTempUsageDetail_20' ) start [2025-02-06 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417583', 'tblTempUsageDetail_20' ) end [2025-02-06 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:48:23] Production.INFO: ==22571== Releasing lock... [2025-02-06 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:48:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-06 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:49:06 [end_date_ymd] => 2025-02-06 20:49:06 [RateCDR] => 1 ) [2025-02-06 20:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:49:06' and `end` < '2025-02-06 20:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:49:20] Production.INFO: count ==1815 [2025-02-06 20:49:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:49:06 - End Time 2025-02-06 20:49:06 [2025-02-06 20:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417588', 'tblTempUsageDetail_20' ) start [2025-02-06 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417588', 'tblTempUsageDetail_20' ) end [2025-02-06 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417588', 'tblTempVendorCDR_20' ) start [2025-02-06 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417588', 'tblTempVendorCDR_20' ) end [2025-02-06 20:49:20] Production.INFO: ProcessCDR(1,14417588,1,1,2) [2025-02-06 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417588', 'tblTempUsageDetail_20' ) start [2025-02-06 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417588', 'tblTempUsageDetail_20' ) end [2025-02-06 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:49:24] Production.INFO: ==22687== Releasing lock... [2025-02-06 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:49:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-06 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:50:05 [end_date_ymd] => 2025-02-06 20:50:05 [RateCDR] => 1 ) [2025-02-06 20: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-06 17:50:05' and `end` < '2025-02-06 20: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-06 20:50:18] Production.INFO: count ==1810 [2025-02-06 20:50:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:50:05 - End Time 2025-02-06 20:50:05 [2025-02-06 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417593', 'tblTempUsageDetail_20' ) start [2025-02-06 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417593', 'tblTempUsageDetail_20' ) end [2025-02-06 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417593', 'tblTempVendorCDR_20' ) start [2025-02-06 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417593', 'tblTempVendorCDR_20' ) end [2025-02-06 20:50:19] Production.INFO: ProcessCDR(1,14417593,1,1,2) [2025-02-06 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417593', 'tblTempUsageDetail_20' ) start [2025-02-06 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417593', 'tblTempUsageDetail_20' ) end [2025-02-06 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:50:22] Production.INFO: ==22763== Releasing lock... [2025-02-06 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:50:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-06 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:51:05 [end_date_ymd] => 2025-02-06 20:51:05 [RateCDR] => 1 ) [2025-02-06 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:51:05' and `end` < '2025-02-06 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:51:19] Production.INFO: count ==1740 [2025-02-06 20:51:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:51:05 - End Time 2025-02-06 20:51:05 [2025-02-06 20:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417599', 'tblTempUsageDetail_20' ) start [2025-02-06 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417599', 'tblTempUsageDetail_20' ) end [2025-02-06 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417599', 'tblTempVendorCDR_20' ) start [2025-02-06 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417599', 'tblTempVendorCDR_20' ) end [2025-02-06 20:51:20] Production.INFO: ProcessCDR(1,14417599,1,1,2) [2025-02-06 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417599', 'tblTempUsageDetail_20' ) start [2025-02-06 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417599', 'tblTempUsageDetail_20' ) end [2025-02-06 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:51:23] Production.INFO: ==22839== Releasing lock... [2025-02-06 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:51:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-06 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:52:05 [end_date_ymd] => 2025-02-06 20:52:05 [RateCDR] => 1 ) [2025-02-06 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:52:05' and `end` < '2025-02-06 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:52:18] Production.INFO: count ==1734 [2025-02-06 20:52:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:52:05 - End Time 2025-02-06 20:52:05 [2025-02-06 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417604', 'tblTempUsageDetail_20' ) start [2025-02-06 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417604', 'tblTempUsageDetail_20' ) end [2025-02-06 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417604', 'tblTempVendorCDR_20' ) start [2025-02-06 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417604', 'tblTempVendorCDR_20' ) end [2025-02-06 20:52:19] Production.INFO: ProcessCDR(1,14417604,1,1,2) [2025-02-06 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417604', 'tblTempUsageDetail_20' ) start [2025-02-06 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417604', 'tblTempUsageDetail_20' ) end [2025-02-06 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:52:22] Production.INFO: ==22914== Releasing lock... [2025-02-06 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:52:22] Production.INFO: 41 MB #Memory Used# [2025-02-06 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:53:05 [end_date_ymd] => 2025-02-06 20:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:53:05' and `end` < '2025-02-06 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-06 20:53:18] Production.INFO: count ==1734 [2025-02-06 20:53:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:53:05 - End Time 2025-02-06 20:53:05 [2025-02-06 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417609', 'tblTempUsageDetail_20' ) start [2025-02-06 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417609', 'tblTempUsageDetail_20' ) end [2025-02-06 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417609', 'tblTempVendorCDR_20' ) start [2025-02-06 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417609', 'tblTempVendorCDR_20' ) end [2025-02-06 20:53:18] Production.INFO: ProcessCDR(1,14417609,1,1,2) [2025-02-06 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417609', 'tblTempUsageDetail_20' ) start [2025-02-06 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417609', 'tblTempUsageDetail_20' ) end [2025-02-06 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:53:23] Production.INFO: ==22988== Releasing lock... [2025-02-06 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:53:23] Production.INFO: 41 MB #Memory Used# [2025-02-06 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:54:06 [end_date_ymd] => 2025-02-06 20:54:06 [RateCDR] => 1 ) [2025-02-06 20:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:54:06' and `end` < '2025-02-06 20:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:54:20] Production.INFO: count ==1734 [2025-02-06 20:54:20] Production.ERROR: pbx CDR StartTime 2025-02-06 17:54:06 - End Time 2025-02-06 20:54:06 [2025-02-06 20:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417614', 'tblTempUsageDetail_20' ) start [2025-02-06 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417614', 'tblTempUsageDetail_20' ) end [2025-02-06 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417614', 'tblTempVendorCDR_20' ) start [2025-02-06 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417614', 'tblTempVendorCDR_20' ) end [2025-02-06 20:54:20] Production.INFO: ProcessCDR(1,14417614,1,1,2) [2025-02-06 20:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417614', 'tblTempUsageDetail_20' ) start [2025-02-06 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417614', 'tblTempUsageDetail_20' ) end [2025-02-06 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:54:25] Production.INFO: ==23059== Releasing lock... [2025-02-06 20:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:54:25] Production.INFO: 41 MB #Memory Used# [2025-02-06 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:55:05 [end_date_ymd] => 2025-02-06 20:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:55:05' and `end` < '2025-02-06 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-06 20:55:18] Production.INFO: count ==1730 [2025-02-06 20:55:18] Production.ERROR: pbx CDR StartTime 2025-02-06 17:55:05 - End Time 2025-02-06 20:55:05 [2025-02-06 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417619', 'tblTempUsageDetail_20' ) start [2025-02-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417619', 'tblTempUsageDetail_20' ) end [2025-02-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417619', 'tblTempVendorCDR_20' ) start [2025-02-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417619', 'tblTempVendorCDR_20' ) end [2025-02-06 20:55:18] Production.INFO: ProcessCDR(1,14417619,1,1,2) [2025-02-06 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417619', 'tblTempUsageDetail_20' ) start [2025-02-06 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417619', 'tblTempUsageDetail_20' ) end [2025-02-06 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:55:21] Production.INFO: ==23132== Releasing lock... [2025-02-06 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:55:21] Production.INFO: 41 MB #Memory Used# [2025-02-06 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:56:05 [end_date_ymd] => 2025-02-06 20:56:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:56:05' and `end` < '2025-02-06 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-06 20:56:19] Production.INFO: count ==1732 [2025-02-06 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:56:05 - End Time 2025-02-06 20:56:05 [2025-02-06 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417624', 'tblTempUsageDetail_20' ) start [2025-02-06 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417624', 'tblTempUsageDetail_20' ) end [2025-02-06 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417624', 'tblTempVendorCDR_20' ) start [2025-02-06 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417624', 'tblTempVendorCDR_20' ) end [2025-02-06 20:56:19] Production.INFO: ProcessCDR(1,14417624,1,1,2) [2025-02-06 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417624', 'tblTempUsageDetail_20' ) start [2025-02-06 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417624', 'tblTempUsageDetail_20' ) end [2025-02-06 20:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:56:24] Production.INFO: ==23206== Releasing lock... [2025-02-06 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:56:24] Production.INFO: 41 MB #Memory Used# [2025-02-06 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:57:05 [end_date_ymd] => 2025-02-06 20:57:05 [RateCDR] => 1 ) [2025-02-06 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:57:05' and `end` < '2025-02-06 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:57:19] Production.INFO: count ==1731 [2025-02-06 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:57:05 - End Time 2025-02-06 20:57:05 [2025-02-06 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417629', 'tblTempUsageDetail_20' ) start [2025-02-06 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417629', 'tblTempUsageDetail_20' ) end [2025-02-06 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417629', 'tblTempVendorCDR_20' ) start [2025-02-06 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417629', 'tblTempVendorCDR_20' ) end [2025-02-06 20:57:19] Production.INFO: ProcessCDR(1,14417629,1,1,2) [2025-02-06 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417629', 'tblTempUsageDetail_20' ) start [2025-02-06 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417629', 'tblTempUsageDetail_20' ) end [2025-02-06 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:57:24] Production.INFO: ==23280== Releasing lock... [2025-02-06 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:57:24] Production.INFO: 41 MB #Memory Used# [2025-02-06 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:58:05 [end_date_ymd] => 2025-02-06 20:58:05 [RateCDR] => 1 ) [2025-02-06 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-06 17:58:05' and `end` < '2025-02-06 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-06 20:58:19] Production.INFO: count ==1727 [2025-02-06 20:58:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:58:05 - End Time 2025-02-06 20:58:05 [2025-02-06 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417634', 'tblTempUsageDetail_20' ) start [2025-02-06 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417634', 'tblTempUsageDetail_20' ) end [2025-02-06 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417634', 'tblTempVendorCDR_20' ) start [2025-02-06 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417634', 'tblTempVendorCDR_20' ) end [2025-02-06 20:58:19] Production.INFO: ProcessCDR(1,14417634,1,1,2) [2025-02-06 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417634', 'tblTempUsageDetail_20' ) start [2025-02-06 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417634', 'tblTempUsageDetail_20' ) end [2025-02-06 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:58:22] Production.INFO: ==23354== Releasing lock... [2025-02-06 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:58:22] Production.INFO: 41 MB #Memory Used# [2025-02-06 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 17:59:06 [end_date_ymd] => 2025-02-06 20:59:06 [RateCDR] => 1 ) [2025-02-06 20:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 17:59:06' and `end` < '2025-02-06 20:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 20:59:19] Production.INFO: count ==1723 [2025-02-06 20:59:19] Production.ERROR: pbx CDR StartTime 2025-02-06 17:59:06 - End Time 2025-02-06 20:59:06 [2025-02-06 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417639', 'tblTempUsageDetail_20' ) start [2025-02-06 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417639', 'tblTempUsageDetail_20' ) end [2025-02-06 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417639', 'tblTempVendorCDR_20' ) start [2025-02-06 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417639', 'tblTempVendorCDR_20' ) end [2025-02-06 20:59:19] Production.INFO: ProcessCDR(1,14417639,1,1,2) [2025-02-06 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417639', 'tblTempUsageDetail_20' ) start [2025-02-06 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417639', 'tblTempUsageDetail_20' ) end [2025-02-06 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 20:59:22] Production.INFO: ==23428== Releasing lock... [2025-02-06 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 20:59:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-06 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:00:05 [end_date_ymd] => 2025-02-06 21:00:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:00:05' and `end` < '2025-02-06 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-06 21:00:18] Production.INFO: count ==1723 [2025-02-06 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:00:05 - End Time 2025-02-06 21:00:05 [2025-02-06 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417645', 'tblTempUsageDetail_20' ) start [2025-02-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417645', 'tblTempUsageDetail_20' ) end [2025-02-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417645', 'tblTempVendorCDR_20' ) start [2025-02-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417645', 'tblTempVendorCDR_20' ) end [2025-02-06 21:00:19] Production.INFO: ProcessCDR(1,14417645,1,1,2) [2025-02-06 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417645', 'tblTempUsageDetail_20' ) start [2025-02-06 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417645', 'tblTempUsageDetail_20' ) end [2025-02-06 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:00:22] Production.INFO: ==23505== Releasing lock... [2025-02-06 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:00:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-06 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:01:05 [end_date_ymd] => 2025-02-06 21:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:01:05' and `end` < '2025-02-06 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-06 21:01:18] Production.INFO: count ==1688 [2025-02-06 21:01:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:01:05 - End Time 2025-02-06 21:01:05 [2025-02-06 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417648', 'tblTempUsageDetail_20' ) start [2025-02-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417648', 'tblTempUsageDetail_20' ) end [2025-02-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417648', 'tblTempVendorCDR_20' ) start [2025-02-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417648', 'tblTempVendorCDR_20' ) end [2025-02-06 21:01:18] Production.INFO: ProcessCDR(1,14417648,1,1,2) [2025-02-06 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417648', 'tblTempUsageDetail_20' ) start [2025-02-06 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417648', 'tblTempUsageDetail_20' ) end [2025-02-06 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:01:23] Production.INFO: ==23597== Releasing lock... [2025-02-06 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:01:23] Production.INFO: 41 MB #Memory Used# [2025-02-06 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:02:05 [end_date_ymd] => 2025-02-06 21:02:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:02:05' and `end` < '2025-02-06 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-06 21:02:18] Production.INFO: count ==1685 [2025-02-06 21:02:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:02:05 - End Time 2025-02-06 21:02:05 [2025-02-06 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417655', 'tblTempUsageDetail_20' ) start [2025-02-06 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417655', 'tblTempUsageDetail_20' ) end [2025-02-06 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417655', 'tblTempVendorCDR_20' ) start [2025-02-06 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417655', 'tblTempVendorCDR_20' ) end [2025-02-06 21:02:18] Production.INFO: ProcessCDR(1,14417655,1,1,2) [2025-02-06 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417655', 'tblTempUsageDetail_20' ) start [2025-02-06 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417655', 'tblTempUsageDetail_20' ) end [2025-02-06 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:02:22] Production.INFO: ==23669== Releasing lock... [2025-02-06 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:02:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-06 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:03:05 [end_date_ymd] => 2025-02-06 21:03:05 [RateCDR] => 1 ) [2025-02-06 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:03:05' and `end` < '2025-02-06 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:03:20] Production.INFO: count ==1683 [2025-02-06 21:03:21] Production.ERROR: pbx CDR StartTime 2025-02-06 18:03:05 - End Time 2025-02-06 21:03:05 [2025-02-06 21:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417660', 'tblTempUsageDetail_20' ) start [2025-02-06 21:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417660', 'tblTempUsageDetail_20' ) end [2025-02-06 21:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417660', 'tblTempVendorCDR_20' ) start [2025-02-06 21:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417660', 'tblTempVendorCDR_20' ) end [2025-02-06 21:03:21] Production.INFO: ProcessCDR(1,14417660,1,1,2) [2025-02-06 21:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417660', 'tblTempUsageDetail_20' ) start [2025-02-06 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417660', 'tblTempUsageDetail_20' ) end [2025-02-06 21:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:03:24] Production.INFO: ==23745== Releasing lock... [2025-02-06 21:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:03:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-06 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:04:05 [end_date_ymd] => 2025-02-06 21:04:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:04:05' and `end` < '2025-02-06 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-06 21:04:19] Production.INFO: count ==1679 [2025-02-06 21:04:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:04:05 - End Time 2025-02-06 21:04:05 [2025-02-06 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417665', 'tblTempUsageDetail_20' ) start [2025-02-06 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417665', 'tblTempUsageDetail_20' ) end [2025-02-06 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417665', 'tblTempVendorCDR_20' ) start [2025-02-06 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417665', 'tblTempVendorCDR_20' ) end [2025-02-06 21:04:19] Production.INFO: ProcessCDR(1,14417665,1,1,2) [2025-02-06 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417665', 'tblTempUsageDetail_20' ) start [2025-02-06 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417665', 'tblTempUsageDetail_20' ) end [2025-02-06 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:04:22] Production.INFO: ==23821== Releasing lock... [2025-02-06 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:04:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-06 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:05:05 [end_date_ymd] => 2025-02-06 21:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:05:05' and `end` < '2025-02-06 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-06 21:05:18] Production.INFO: count ==1671 [2025-02-06 21:05:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:05:05 - End Time 2025-02-06 21:05:05 [2025-02-06 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417670', 'tblTempUsageDetail_20' ) start [2025-02-06 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417670', 'tblTempUsageDetail_20' ) end [2025-02-06 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417670', 'tblTempVendorCDR_20' ) start [2025-02-06 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417670', 'tblTempVendorCDR_20' ) end [2025-02-06 21:05:19] Production.INFO: ProcessCDR(1,14417670,1,1,2) [2025-02-06 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417670', 'tblTempUsageDetail_20' ) start [2025-02-06 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417670', 'tblTempUsageDetail_20' ) end [2025-02-06 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:05:23] Production.INFO: ==23930== Releasing lock... [2025-02-06 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:05:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-06 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:06:06 [end_date_ymd] => 2025-02-06 21:06:06 [RateCDR] => 1 ) [2025-02-06 21: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-06 18:06:06' and `end` < '2025-02-06 21: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-06 21:06:19] Production.INFO: count ==1659 [2025-02-06 21:06:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:06:06 - End Time 2025-02-06 21:06:06 [2025-02-06 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417675', 'tblTempUsageDetail_20' ) start [2025-02-06 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417675', 'tblTempUsageDetail_20' ) end [2025-02-06 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417675', 'tblTempVendorCDR_20' ) start [2025-02-06 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417675', 'tblTempVendorCDR_20' ) end [2025-02-06 21:06:19] Production.INFO: ProcessCDR(1,14417675,1,1,2) [2025-02-06 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417675', 'tblTempUsageDetail_20' ) start [2025-02-06 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417675', 'tblTempUsageDetail_20' ) end [2025-02-06 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:06:24] Production.INFO: ==24007== Releasing lock... [2025-02-06 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:06:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-06 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:07:05 [end_date_ymd] => 2025-02-06 21:07:05 [RateCDR] => 1 ) [2025-02-06 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:07:05' and `end` < '2025-02-06 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:07:18] Production.INFO: count ==1643 [2025-02-06 21:07:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:07:05 - End Time 2025-02-06 21:07:05 [2025-02-06 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417680', 'tblTempUsageDetail_20' ) start [2025-02-06 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417680', 'tblTempUsageDetail_20' ) end [2025-02-06 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417680', 'tblTempVendorCDR_20' ) start [2025-02-06 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417680', 'tblTempVendorCDR_20' ) end [2025-02-06 21:07:18] Production.INFO: ProcessCDR(1,14417680,1,1,2) [2025-02-06 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417680', 'tblTempUsageDetail_20' ) start [2025-02-06 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417680', 'tblTempUsageDetail_20' ) end [2025-02-06 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:07:21] Production.INFO: ==24080== Releasing lock... [2025-02-06 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:07:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-06 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:08:05 [end_date_ymd] => 2025-02-06 21:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:08:05' and `end` < '2025-02-06 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-06 21:08:19] Production.INFO: count ==1637 [2025-02-06 21:08:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:08:05 - End Time 2025-02-06 21:08:05 [2025-02-06 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417685', 'tblTempUsageDetail_20' ) start [2025-02-06 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417685', 'tblTempUsageDetail_20' ) end [2025-02-06 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417685', 'tblTempVendorCDR_20' ) start [2025-02-06 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417685', 'tblTempVendorCDR_20' ) end [2025-02-06 21:08:19] Production.INFO: ProcessCDR(1,14417685,1,1,2) [2025-02-06 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417685', 'tblTempUsageDetail_20' ) start [2025-02-06 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417685', 'tblTempUsageDetail_20' ) end [2025-02-06 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:08:22] Production.INFO: ==24153== Releasing lock... [2025-02-06 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:08:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-06 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:09:05 [end_date_ymd] => 2025-02-06 21:09:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:09:05' and `end` < '2025-02-06 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-06 21:09:18] Production.INFO: count ==1626 [2025-02-06 21:09:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:09:05 - End Time 2025-02-06 21:09:05 [2025-02-06 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417690', 'tblTempUsageDetail_20' ) start [2025-02-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417690', 'tblTempUsageDetail_20' ) end [2025-02-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417690', 'tblTempVendorCDR_20' ) start [2025-02-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417690', 'tblTempVendorCDR_20' ) end [2025-02-06 21:09:18] Production.INFO: ProcessCDR(1,14417690,1,1,2) [2025-02-06 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417690', 'tblTempUsageDetail_20' ) start [2025-02-06 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417690', 'tblTempUsageDetail_20' ) end [2025-02-06 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:09:23] Production.INFO: ==24228== Releasing lock... [2025-02-06 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:09:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-06 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:10:06 [end_date_ymd] => 2025-02-06 21:10:06 [RateCDR] => 1 ) [2025-02-06 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:10:06' and `end` < '2025-02-06 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:10:19] Production.INFO: count ==1610 [2025-02-06 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:10:06 - End Time 2025-02-06 21:10:06 [2025-02-06 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417696', 'tblTempUsageDetail_20' ) start [2025-02-06 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417696', 'tblTempUsageDetail_20' ) end [2025-02-06 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417696', 'tblTempVendorCDR_20' ) start [2025-02-06 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417696', 'tblTempVendorCDR_20' ) end [2025-02-06 21:10:19] Production.INFO: ProcessCDR(1,14417696,1,1,2) [2025-02-06 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417696', 'tblTempUsageDetail_20' ) start [2025-02-06 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417696', 'tblTempUsageDetail_20' ) end [2025-02-06 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:10:23] Production.INFO: ==24302== Releasing lock... [2025-02-06 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:10:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-06 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:11:05 [end_date_ymd] => 2025-02-06 21:11:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:11:05' and `end` < '2025-02-06 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-06 21:11:19] Production.INFO: count ==1536 [2025-02-06 21:11:20] Production.ERROR: pbx CDR StartTime 2025-02-06 18:11:05 - End Time 2025-02-06 21:11:05 [2025-02-06 21:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417701', 'tblTempUsageDetail_20' ) start [2025-02-06 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417701', 'tblTempUsageDetail_20' ) end [2025-02-06 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417701', 'tblTempVendorCDR_20' ) start [2025-02-06 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417701', 'tblTempVendorCDR_20' ) end [2025-02-06 21:11:20] Production.INFO: ProcessCDR(1,14417701,1,1,2) [2025-02-06 21:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417701', 'tblTempUsageDetail_20' ) start [2025-02-06 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417701', 'tblTempUsageDetail_20' ) end [2025-02-06 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:11:24] Production.INFO: ==24376== Releasing lock... [2025-02-06 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:11:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-06 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:12:04 [end_date_ymd] => 2025-02-06 21:12:04 [RateCDR] => 1 ) [2025-02-06 21:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:12:04' and `end` < '2025-02-06 21:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:12:17] Production.INFO: count ==1524 [2025-02-06 21:12:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:12:04 - End Time 2025-02-06 21:12:04 [2025-02-06 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417706', 'tblTempUsageDetail_20' ) start [2025-02-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417706', 'tblTempUsageDetail_20' ) end [2025-02-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417706', 'tblTempVendorCDR_20' ) start [2025-02-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417706', 'tblTempVendorCDR_20' ) end [2025-02-06 21:12:18] Production.INFO: ProcessCDR(1,14417706,1,1,2) [2025-02-06 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417706', 'tblTempUsageDetail_20' ) start [2025-02-06 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417706', 'tblTempUsageDetail_20' ) end [2025-02-06 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:12:22] Production.INFO: ==24452== Releasing lock... [2025-02-06 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:12:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-06 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:13:05 [end_date_ymd] => 2025-02-06 21:13:05 [RateCDR] => 1 ) [2025-02-06 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:13:05' and `end` < '2025-02-06 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:13:18] Production.INFO: count ==1518 [2025-02-06 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:13:05 - End Time 2025-02-06 21:13:05 [2025-02-06 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417711', 'tblTempUsageDetail_20' ) start [2025-02-06 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417711', 'tblTempUsageDetail_20' ) end [2025-02-06 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417711', 'tblTempVendorCDR_20' ) start [2025-02-06 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417711', 'tblTempVendorCDR_20' ) end [2025-02-06 21:13:19] Production.INFO: ProcessCDR(1,14417711,1,1,2) [2025-02-06 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417711', 'tblTempUsageDetail_20' ) start [2025-02-06 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417711', 'tblTempUsageDetail_20' ) end [2025-02-06 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:13:22] Production.INFO: ==24528== Releasing lock... [2025-02-06 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:13:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-06 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:14:05 [end_date_ymd] => 2025-02-06 21:14:05 [RateCDR] => 1 ) [2025-02-06 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:14:05' and `end` < '2025-02-06 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:14:18] Production.INFO: count ==1519 [2025-02-06 21:14:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:14:05 - End Time 2025-02-06 21:14:05 [2025-02-06 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417716', 'tblTempUsageDetail_20' ) start [2025-02-06 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417716', 'tblTempUsageDetail_20' ) end [2025-02-06 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417716', 'tblTempVendorCDR_20' ) start [2025-02-06 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417716', 'tblTempVendorCDR_20' ) end [2025-02-06 21:14:18] Production.INFO: ProcessCDR(1,14417716,1,1,2) [2025-02-06 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417716', 'tblTempUsageDetail_20' ) start [2025-02-06 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417716', 'tblTempUsageDetail_20' ) end [2025-02-06 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:14:21] Production.INFO: ==24599== Releasing lock... [2025-02-06 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:14:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-06 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:15:05 [end_date_ymd] => 2025-02-06 21:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:15:05' and `end` < '2025-02-06 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-06 21:15:18] Production.INFO: count ==1517 [2025-02-06 21:15:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:15:05 - End Time 2025-02-06 21:15:05 [2025-02-06 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417721', 'tblTempUsageDetail_20' ) start [2025-02-06 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417721', 'tblTempUsageDetail_20' ) end [2025-02-06 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417721', 'tblTempVendorCDR_20' ) start [2025-02-06 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417721', 'tblTempVendorCDR_20' ) end [2025-02-06 21:15:19] Production.INFO: ProcessCDR(1,14417721,1,1,2) [2025-02-06 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417721', 'tblTempUsageDetail_20' ) start [2025-02-06 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417721', 'tblTempUsageDetail_20' ) end [2025-02-06 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:15:22] Production.INFO: ==24672== Releasing lock... [2025-02-06 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:15:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-06 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:16:06 [end_date_ymd] => 2025-02-06 21:16:06 [RateCDR] => 1 ) [2025-02-06 21: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-06 18:16:06' and `end` < '2025-02-06 21: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-06 21:16:19] Production.INFO: count ==1512 [2025-02-06 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:16:06 - End Time 2025-02-06 21:16:06 [2025-02-06 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417726', 'tblTempUsageDetail_20' ) start [2025-02-06 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417726', 'tblTempUsageDetail_20' ) end [2025-02-06 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417726', 'tblTempVendorCDR_20' ) start [2025-02-06 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417726', 'tblTempVendorCDR_20' ) end [2025-02-06 21:16:19] Production.INFO: ProcessCDR(1,14417726,1,1,2) [2025-02-06 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417726', 'tblTempUsageDetail_20' ) start [2025-02-06 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417726', 'tblTempUsageDetail_20' ) end [2025-02-06 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:16:22] Production.INFO: ==24746== Releasing lock... [2025-02-06 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:16:22] Production.INFO: 39 MB #Memory Used# [2025-02-06 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:17:05 [end_date_ymd] => 2025-02-06 21:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:17:05' and `end` < '2025-02-06 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-06 21:17:19] Production.INFO: count ==1498 [2025-02-06 21:17:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:17:05 - End Time 2025-02-06 21:17:05 [2025-02-06 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417731', 'tblTempUsageDetail_20' ) start [2025-02-06 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417731', 'tblTempUsageDetail_20' ) end [2025-02-06 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417731', 'tblTempVendorCDR_20' ) start [2025-02-06 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417731', 'tblTempVendorCDR_20' ) end [2025-02-06 21:17:19] Production.INFO: ProcessCDR(1,14417731,1,1,2) [2025-02-06 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417731', 'tblTempUsageDetail_20' ) start [2025-02-06 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417731', 'tblTempUsageDetail_20' ) end [2025-02-06 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:17:22] Production.INFO: ==24821== Releasing lock... [2025-02-06 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:17:22] Production.INFO: 39 MB #Memory Used# [2025-02-06 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:18:05 [end_date_ymd] => 2025-02-06 21:18:05 [RateCDR] => 1 ) [2025-02-06 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:18:05' and `end` < '2025-02-06 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:18:19] Production.INFO: count ==1489 [2025-02-06 21:18:20] Production.ERROR: pbx CDR StartTime 2025-02-06 18:18:05 - End Time 2025-02-06 21:18:05 [2025-02-06 21:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417736', 'tblTempUsageDetail_20' ) start [2025-02-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417736', 'tblTempUsageDetail_20' ) end [2025-02-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417736', 'tblTempVendorCDR_20' ) start [2025-02-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417736', 'tblTempVendorCDR_20' ) end [2025-02-06 21:18:20] Production.INFO: ProcessCDR(1,14417736,1,1,2) [2025-02-06 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417736', 'tblTempUsageDetail_20' ) start [2025-02-06 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417736', 'tblTempUsageDetail_20' ) end [2025-02-06 21:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:18:24] Production.INFO: ==24895== Releasing lock... [2025-02-06 21:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:18:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-06 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:19:05 [end_date_ymd] => 2025-02-06 21:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:19:05' and `end` < '2025-02-06 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-06 21:19:19] Production.INFO: count ==1479 [2025-02-06 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:19:05 - End Time 2025-02-06 21:19:05 [2025-02-06 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417741', 'tblTempUsageDetail_20' ) start [2025-02-06 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417741', 'tblTempUsageDetail_20' ) end [2025-02-06 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417741', 'tblTempVendorCDR_20' ) start [2025-02-06 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417741', 'tblTempVendorCDR_20' ) end [2025-02-06 21:19:19] Production.INFO: ProcessCDR(1,14417741,1,1,2) [2025-02-06 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417741', 'tblTempUsageDetail_20' ) start [2025-02-06 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417741', 'tblTempUsageDetail_20' ) end [2025-02-06 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:19:22] Production.INFO: ==24966== Releasing lock... [2025-02-06 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:19:22] Production.INFO: 39 MB #Memory Used# [2025-02-06 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:20:06 [end_date_ymd] => 2025-02-06 21:20:06 [RateCDR] => 1 ) [2025-02-06 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:20:06' and `end` < '2025-02-06 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:20:19] Production.INFO: count ==1466 [2025-02-06 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:20:06 - End Time 2025-02-06 21:20:06 [2025-02-06 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417745', 'tblTempUsageDetail_20' ) start [2025-02-06 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417745', 'tblTempUsageDetail_20' ) end [2025-02-06 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417745', 'tblTempVendorCDR_20' ) start [2025-02-06 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417745', 'tblTempVendorCDR_20' ) end [2025-02-06 21:20:19] Production.INFO: ProcessCDR(1,14417745,1,1,2) [2025-02-06 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417745', 'tblTempUsageDetail_20' ) start [2025-02-06 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417745', 'tblTempUsageDetail_20' ) end [2025-02-06 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:20:22] Production.INFO: ==25083== Releasing lock... [2025-02-06 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:20:22] Production.INFO: 39 MB #Memory Used# [2025-02-06 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:21:05 [end_date_ymd] => 2025-02-06 21:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:21:05' and `end` < '2025-02-06 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-06 21:21:19] Production.INFO: count ==1414 [2025-02-06 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:21:05 - End Time 2025-02-06 21:21:05 [2025-02-06 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417752', 'tblTempUsageDetail_20' ) start [2025-02-06 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417752', 'tblTempUsageDetail_20' ) end [2025-02-06 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417752', 'tblTempVendorCDR_20' ) start [2025-02-06 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417752', 'tblTempVendorCDR_20' ) end [2025-02-06 21:21:19] Production.INFO: ProcessCDR(1,14417752,1,1,2) [2025-02-06 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417752', 'tblTempUsageDetail_20' ) start [2025-02-06 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417752', 'tblTempUsageDetail_20' ) end [2025-02-06 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:21:22] Production.INFO: ==25157== Releasing lock... [2025-02-06 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:21:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-06 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:22:05 [end_date_ymd] => 2025-02-06 21:22:05 [RateCDR] => 1 ) [2025-02-06 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:22:05' and `end` < '2025-02-06 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:22:19] Production.INFO: count ==1401 [2025-02-06 21:22:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:22:05 - End Time 2025-02-06 21:22:05 [2025-02-06 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417757', 'tblTempUsageDetail_20' ) start [2025-02-06 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417757', 'tblTempUsageDetail_20' ) end [2025-02-06 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417757', 'tblTempVendorCDR_20' ) start [2025-02-06 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417757', 'tblTempVendorCDR_20' ) end [2025-02-06 21:22:19] Production.INFO: ProcessCDR(1,14417757,1,1,2) [2025-02-06 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417757', 'tblTempUsageDetail_20' ) start [2025-02-06 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417757', 'tblTempUsageDetail_20' ) end [2025-02-06 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:22:22] Production.INFO: ==25228== Releasing lock... [2025-02-06 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:22:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-06 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:23:04 [end_date_ymd] => 2025-02-06 21:23:04 [RateCDR] => 1 ) [2025-02-06 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-06 18:23:04' and `end` < '2025-02-06 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-06 21:23:17] Production.INFO: count ==1389 [2025-02-06 21:23:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:23:04 - End Time 2025-02-06 21:23:04 [2025-02-06 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417762', 'tblTempUsageDetail_20' ) start [2025-02-06 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417762', 'tblTempUsageDetail_20' ) end [2025-02-06 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417762', 'tblTempVendorCDR_20' ) start [2025-02-06 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417762', 'tblTempVendorCDR_20' ) end [2025-02-06 21:23:18] Production.INFO: ProcessCDR(1,14417762,1,1,2) [2025-02-06 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417762', 'tblTempUsageDetail_20' ) start [2025-02-06 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417762', 'tblTempUsageDetail_20' ) end [2025-02-06 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:23:21] Production.INFO: ==25300== Releasing lock... [2025-02-06 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:23:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-06 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:24:05 [end_date_ymd] => 2025-02-06 21:24:05 [RateCDR] => 1 ) [2025-02-06 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:24:05' and `end` < '2025-02-06 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:24:18] Production.INFO: count ==1376 [2025-02-06 21:24:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:24:05 - End Time 2025-02-06 21:24:05 [2025-02-06 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417767', 'tblTempUsageDetail_20' ) start [2025-02-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417767', 'tblTempUsageDetail_20' ) end [2025-02-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417767', 'tblTempVendorCDR_20' ) start [2025-02-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417767', 'tblTempVendorCDR_20' ) end [2025-02-06 21:24:18] Production.INFO: ProcessCDR(1,14417767,1,1,2) [2025-02-06 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417767', 'tblTempUsageDetail_20' ) start [2025-02-06 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417767', 'tblTempUsageDetail_20' ) end [2025-02-06 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:24:23] Production.INFO: ==25372== Releasing lock... [2025-02-06 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:24:23] Production.INFO: 38 MB #Memory Used# [2025-02-06 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:25:05 [end_date_ymd] => 2025-02-06 21:25:05 [RateCDR] => 1 ) [2025-02-06 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:25:05' and `end` < '2025-02-06 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:25:18] Production.INFO: count ==1363 [2025-02-06 21:25:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:25:05 - End Time 2025-02-06 21:25:05 [2025-02-06 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417772', 'tblTempUsageDetail_20' ) start [2025-02-06 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417772', 'tblTempUsageDetail_20' ) end [2025-02-06 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417772', 'tblTempVendorCDR_20' ) start [2025-02-06 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417772', 'tblTempVendorCDR_20' ) end [2025-02-06 21:25:19] Production.INFO: ProcessCDR(1,14417772,1,1,2) [2025-02-06 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417772', 'tblTempUsageDetail_20' ) start [2025-02-06 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417772', 'tblTempUsageDetail_20' ) end [2025-02-06 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:25:23] Production.INFO: ==25447== Releasing lock... [2025-02-06 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:25:23] Production.INFO: 38 MB #Memory Used# [2025-02-06 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:26:05 [end_date_ymd] => 2025-02-06 21:26:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:26:05' and `end` < '2025-02-06 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-06 21:26:18] Production.INFO: count ==1353 [2025-02-06 21:26:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:26:05 - End Time 2025-02-06 21:26:05 [2025-02-06 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417777', 'tblTempUsageDetail_20' ) start [2025-02-06 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417777', 'tblTempUsageDetail_20' ) end [2025-02-06 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417777', 'tblTempVendorCDR_20' ) start [2025-02-06 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417777', 'tblTempVendorCDR_20' ) end [2025-02-06 21:26:18] Production.INFO: ProcessCDR(1,14417777,1,1,2) [2025-02-06 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417777', 'tblTempUsageDetail_20' ) start [2025-02-06 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417777', 'tblTempUsageDetail_20' ) end [2025-02-06 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:26:21] Production.INFO: ==25525== Releasing lock... [2025-02-06 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:26:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-06 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:27:05 [end_date_ymd] => 2025-02-06 21:27:05 [RateCDR] => 1 ) [2025-02-06 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:27:05' and `end` < '2025-02-06 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:27:18] Production.INFO: count ==1342 [2025-02-06 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:27:05 - End Time 2025-02-06 21:27:05 [2025-02-06 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417782', 'tblTempUsageDetail_20' ) start [2025-02-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417782', 'tblTempUsageDetail_20' ) end [2025-02-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417782', 'tblTempVendorCDR_20' ) start [2025-02-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417782', 'tblTempVendorCDR_20' ) end [2025-02-06 21:27:18] Production.INFO: ProcessCDR(1,14417782,1,1,2) [2025-02-06 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417782', 'tblTempUsageDetail_20' ) start [2025-02-06 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417782', 'tblTempUsageDetail_20' ) end [2025-02-06 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:27:21] Production.INFO: ==25594== Releasing lock... [2025-02-06 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:27:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-06 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:28:05 [end_date_ymd] => 2025-02-06 21:28:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:28:05' and `end` < '2025-02-06 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-06 21:28:19] Production.INFO: count ==1327 [2025-02-06 21:28:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:28:05 - End Time 2025-02-06 21:28:05 [2025-02-06 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417787', 'tblTempUsageDetail_20' ) start [2025-02-06 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417787', 'tblTempUsageDetail_20' ) end [2025-02-06 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417787', 'tblTempVendorCDR_20' ) start [2025-02-06 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417787', 'tblTempVendorCDR_20' ) end [2025-02-06 21:28:19] Production.INFO: ProcessCDR(1,14417787,1,1,2) [2025-02-06 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417787', 'tblTempUsageDetail_20' ) start [2025-02-06 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417787', 'tblTempUsageDetail_20' ) end [2025-02-06 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:28:22] Production.INFO: ==25666== Releasing lock... [2025-02-06 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:28:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-06 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:29:05 [end_date_ymd] => 2025-02-06 21:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:29:05' and `end` < '2025-02-06 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-06 21:29:19] Production.INFO: count ==1316 [2025-02-06 21:29:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:29:05 - End Time 2025-02-06 21:29:05 [2025-02-06 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417792', 'tblTempUsageDetail_20' ) start [2025-02-06 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417792', 'tblTempUsageDetail_20' ) end [2025-02-06 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417792', 'tblTempVendorCDR_20' ) start [2025-02-06 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417792', 'tblTempVendorCDR_20' ) end [2025-02-06 21:29:19] Production.INFO: ProcessCDR(1,14417792,1,1,2) [2025-02-06 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417792', 'tblTempUsageDetail_20' ) start [2025-02-06 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417792', 'tblTempUsageDetail_20' ) end [2025-02-06 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:29:22] Production.INFO: ==25740== Releasing lock... [2025-02-06 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:29:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-06 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:30:05 [end_date_ymd] => 2025-02-06 21:30:05 [RateCDR] => 1 ) [2025-02-06 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:30:05' and `end` < '2025-02-06 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:30:18] Production.INFO: count ==1311 [2025-02-06 21:30:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:30:05 - End Time 2025-02-06 21:30:05 [2025-02-06 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417795', 'tblTempUsageDetail_20' ) start [2025-02-06 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417795', 'tblTempUsageDetail_20' ) end [2025-02-06 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417795', 'tblTempVendorCDR_20' ) start [2025-02-06 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417795', 'tblTempVendorCDR_20' ) end [2025-02-06 21:30:18] Production.INFO: ProcessCDR(1,14417795,1,1,2) [2025-02-06 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417795', 'tblTempUsageDetail_20' ) start [2025-02-06 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417795', 'tblTempUsageDetail_20' ) end [2025-02-06 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:30:22] Production.INFO: ==25817== Releasing lock... [2025-02-06 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:30:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-06 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:31:05 [end_date_ymd] => 2025-02-06 21:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:31:05' and `end` < '2025-02-06 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-06 21:31:18] Production.INFO: count ==1274 [2025-02-06 21:31:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:31:05 - End Time 2025-02-06 21:31:05 [2025-02-06 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417803', 'tblTempUsageDetail_20' ) start [2025-02-06 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417803', 'tblTempUsageDetail_20' ) end [2025-02-06 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417803', 'tblTempVendorCDR_20' ) start [2025-02-06 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417803', 'tblTempVendorCDR_20' ) end [2025-02-06 21:31:19] Production.INFO: ProcessCDR(1,14417803,1,1,2) [2025-02-06 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417803', 'tblTempUsageDetail_20' ) start [2025-02-06 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417803', 'tblTempUsageDetail_20' ) end [2025-02-06 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:31:22] Production.INFO: ==25890== Releasing lock... [2025-02-06 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:31:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-06 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:32:04 [end_date_ymd] => 2025-02-06 21:32:04 [RateCDR] => 1 ) [2025-02-06 21:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:32:04' and `end` < '2025-02-06 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:32:18] Production.INFO: count ==1265 [2025-02-06 21:32:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:32:04 - End Time 2025-02-06 21:32:04 [2025-02-06 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417808', 'tblTempUsageDetail_20' ) start [2025-02-06 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417808', 'tblTempUsageDetail_20' ) end [2025-02-06 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417808', 'tblTempVendorCDR_20' ) start [2025-02-06 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417808', 'tblTempVendorCDR_20' ) end [2025-02-06 21:32:18] Production.INFO: ProcessCDR(1,14417808,1,1,2) [2025-02-06 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417808', 'tblTempUsageDetail_20' ) start [2025-02-06 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417808', 'tblTempUsageDetail_20' ) end [2025-02-06 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:32:21] Production.INFO: ==25961== Releasing lock... [2025-02-06 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:32:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-06 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:33:04 [end_date_ymd] => 2025-02-06 21:33:04 [RateCDR] => 1 ) [2025-02-06 21: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-06 18:33:04' and `end` < '2025-02-06 21: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-06 21:33:19] Production.INFO: count ==1257 [2025-02-06 21:33:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:33:04 - End Time 2025-02-06 21:33:04 [2025-02-06 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417813', 'tblTempUsageDetail_20' ) start [2025-02-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417813', 'tblTempUsageDetail_20' ) end [2025-02-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417813', 'tblTempVendorCDR_20' ) start [2025-02-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417813', 'tblTempVendorCDR_20' ) end [2025-02-06 21:33:19] Production.INFO: ProcessCDR(1,14417813,1,1,2) [2025-02-06 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417813', 'tblTempUsageDetail_20' ) start [2025-02-06 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417813', 'tblTempUsageDetail_20' ) end [2025-02-06 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:33:22] Production.INFO: ==26034== Releasing lock... [2025-02-06 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:33:22] Production.INFO: 37 MB #Memory Used# [2025-02-06 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:34:05 [end_date_ymd] => 2025-02-06 21:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:34:05' and `end` < '2025-02-06 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-06 21:34:19] Production.INFO: count ==1248 [2025-02-06 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:34:05 - End Time 2025-02-06 21:34:05 [2025-02-06 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417818', 'tblTempUsageDetail_20' ) start [2025-02-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417818', 'tblTempUsageDetail_20' ) end [2025-02-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417818', 'tblTempVendorCDR_20' ) start [2025-02-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417818', 'tblTempVendorCDR_20' ) end [2025-02-06 21:34:19] Production.INFO: ProcessCDR(1,14417818,1,1,2) [2025-02-06 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417818', 'tblTempUsageDetail_20' ) start [2025-02-06 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417818', 'tblTempUsageDetail_20' ) end [2025-02-06 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:34:22] Production.INFO: ==26110== Releasing lock... [2025-02-06 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:34:22] Production.INFO: 37 MB #Memory Used# [2025-02-06 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:35:05 [end_date_ymd] => 2025-02-06 21:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:35:05' and `end` < '2025-02-06 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-06 21:35:18] Production.INFO: count ==1243 [2025-02-06 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:35:05 - End Time 2025-02-06 21:35:05 [2025-02-06 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417823', 'tblTempUsageDetail_20' ) start [2025-02-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417823', 'tblTempUsageDetail_20' ) end [2025-02-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417823', 'tblTempVendorCDR_20' ) start [2025-02-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417823', 'tblTempVendorCDR_20' ) end [2025-02-06 21:35:18] Production.INFO: ProcessCDR(1,14417823,1,1,2) [2025-02-06 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417823', 'tblTempUsageDetail_20' ) start [2025-02-06 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417823', 'tblTempUsageDetail_20' ) end [2025-02-06 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:35:21] Production.INFO: ==26183== Releasing lock... [2025-02-06 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:35:21] Production.INFO: 37 MB #Memory Used# [2025-02-06 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:36:05 [end_date_ymd] => 2025-02-06 21:36:05 [RateCDR] => 1 ) [2025-02-06 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:36:05' and `end` < '2025-02-06 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:36:18] Production.INFO: count ==1243 [2025-02-06 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:36:05 - End Time 2025-02-06 21:36:05 [2025-02-06 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417828', 'tblTempUsageDetail_20' ) start [2025-02-06 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417828', 'tblTempUsageDetail_20' ) end [2025-02-06 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417828', 'tblTempVendorCDR_20' ) start [2025-02-06 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417828', 'tblTempVendorCDR_20' ) end [2025-02-06 21:36:19] Production.INFO: ProcessCDR(1,14417828,1,1,2) [2025-02-06 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417828', 'tblTempUsageDetail_20' ) start [2025-02-06 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417828', 'tblTempUsageDetail_20' ) end [2025-02-06 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:36:23] Production.INFO: ==26296== Releasing lock... [2025-02-06 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:36:23] Production.INFO: 37 MB #Memory Used# [2025-02-06 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:37:05 [end_date_ymd] => 2025-02-06 21:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:37:05' and `end` < '2025-02-06 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-06 21:37:19] Production.INFO: count ==1240 [2025-02-06 21:37:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:37:05 - End Time 2025-02-06 21:37:05 [2025-02-06 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417833', 'tblTempUsageDetail_20' ) start [2025-02-06 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417833', 'tblTempUsageDetail_20' ) end [2025-02-06 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417833', 'tblTempVendorCDR_20' ) start [2025-02-06 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417833', 'tblTempVendorCDR_20' ) end [2025-02-06 21:37:19] Production.INFO: ProcessCDR(1,14417833,1,1,2) [2025-02-06 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417833', 'tblTempUsageDetail_20' ) start [2025-02-06 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417833', 'tblTempUsageDetail_20' ) end [2025-02-06 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:37:23] Production.INFO: ==26370== Releasing lock... [2025-02-06 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:37:23] Production.INFO: 37 MB #Memory Used# [2025-02-06 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:38:05 [end_date_ymd] => 2025-02-06 21:38:05 [RateCDR] => 1 ) [2025-02-06 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:38:05' and `end` < '2025-02-06 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:38:18] Production.INFO: count ==1221 [2025-02-06 21:38:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:38:05 - End Time 2025-02-06 21:38:05 [2025-02-06 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417838', 'tblTempUsageDetail_20' ) start [2025-02-06 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417838', 'tblTempUsageDetail_20' ) end [2025-02-06 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417838', 'tblTempVendorCDR_20' ) start [2025-02-06 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417838', 'tblTempVendorCDR_20' ) end [2025-02-06 21:38:18] Production.INFO: ProcessCDR(1,14417838,1,1,2) [2025-02-06 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417838', 'tblTempUsageDetail_20' ) start [2025-02-06 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417838', 'tblTempUsageDetail_20' ) end [2025-02-06 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:38:21] Production.INFO: ==26449== Releasing lock... [2025-02-06 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:38:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:39:05 [end_date_ymd] => 2025-02-06 21:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:39:05' and `end` < '2025-02-06 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-06 21:39:19] Production.INFO: count ==1222 [2025-02-06 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:39:05 - End Time 2025-02-06 21:39:05 [2025-02-06 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417843', 'tblTempUsageDetail_20' ) start [2025-02-06 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417843', 'tblTempUsageDetail_20' ) end [2025-02-06 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417843', 'tblTempVendorCDR_20' ) start [2025-02-06 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417843', 'tblTempVendorCDR_20' ) end [2025-02-06 21:39:19] Production.INFO: ProcessCDR(1,14417843,1,1,2) [2025-02-06 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417843', 'tblTempUsageDetail_20' ) start [2025-02-06 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417843', 'tblTempUsageDetail_20' ) end [2025-02-06 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:39:22] Production.INFO: ==26526== Releasing lock... [2025-02-06 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:39:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:40:06 [end_date_ymd] => 2025-02-06 21:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 18:40:06' and `end` < '2025-02-06 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-06 21:40:19] Production.INFO: count ==1215 [2025-02-06 21:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:40:06 - End Time 2025-02-06 21:40:06 [2025-02-06 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417849', 'tblTempUsageDetail_20' ) start [2025-02-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417849', 'tblTempUsageDetail_20' ) end [2025-02-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417849', 'tblTempVendorCDR_20' ) start [2025-02-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417849', 'tblTempVendorCDR_20' ) end [2025-02-06 21:40:19] Production.INFO: ProcessCDR(1,14417849,1,1,2) [2025-02-06 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417849', 'tblTempUsageDetail_20' ) start [2025-02-06 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417849', 'tblTempUsageDetail_20' ) end [2025-02-06 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:40:22] Production.INFO: ==26607== Releasing lock... [2025-02-06 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:40:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:41:05 [end_date_ymd] => 2025-02-06 21:41:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:41:05' and `end` < '2025-02-06 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-06 21:41:18] Production.INFO: count ==1199 [2025-02-06 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:41:05 - End Time 2025-02-06 21:41:05 [2025-02-06 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417854', 'tblTempUsageDetail_20' ) start [2025-02-06 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417854', 'tblTempUsageDetail_20' ) end [2025-02-06 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417854', 'tblTempVendorCDR_20' ) start [2025-02-06 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417854', 'tblTempVendorCDR_20' ) end [2025-02-06 21:41:19] Production.INFO: ProcessCDR(1,14417854,1,1,2) [2025-02-06 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417854', 'tblTempUsageDetail_20' ) start [2025-02-06 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417854', 'tblTempUsageDetail_20' ) end [2025-02-06 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:41:22] Production.INFO: ==26689== Releasing lock... [2025-02-06 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-06 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:42:05 [end_date_ymd] => 2025-02-06 21:42:05 [RateCDR] => 1 ) [2025-02-06 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 18:42:05' and `end` < '2025-02-06 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 21:42:18] Production.INFO: count ==1213 [2025-02-06 21:42:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:42:05 - End Time 2025-02-06 21:42:05 [2025-02-06 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417859', 'tblTempUsageDetail_20' ) start [2025-02-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417859', 'tblTempUsageDetail_20' ) end [2025-02-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417859', 'tblTempVendorCDR_20' ) start [2025-02-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417859', 'tblTempVendorCDR_20' ) end [2025-02-06 21:42:18] Production.INFO: ProcessCDR(1,14417859,1,1,2) [2025-02-06 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417859', 'tblTempUsageDetail_20' ) start [2025-02-06 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417859', 'tblTempUsageDetail_20' ) end [2025-02-06 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:42:22] Production.INFO: ==26767== Releasing lock... [2025-02-06 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:42:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:43:05 [end_date_ymd] => 2025-02-06 21:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:43:05' and `end` < '2025-02-06 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-06 21:43:18] Production.INFO: count ==1214 [2025-02-06 21:43:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:43:05 - End Time 2025-02-06 21:43:05 [2025-02-06 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417864', 'tblTempUsageDetail_20' ) start [2025-02-06 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417864', 'tblTempUsageDetail_20' ) end [2025-02-06 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417864', 'tblTempVendorCDR_20' ) start [2025-02-06 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417864', 'tblTempVendorCDR_20' ) end [2025-02-06 21:43:18] Production.INFO: ProcessCDR(1,14417864,1,1,2) [2025-02-06 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417864', 'tblTempUsageDetail_20' ) start [2025-02-06 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417864', 'tblTempUsageDetail_20' ) end [2025-02-06 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:43:23] Production.INFO: ==26853== Releasing lock... [2025-02-06 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:43:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:44:05 [end_date_ymd] => 2025-02-06 21:44:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:44:05' and `end` < '2025-02-06 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-06 21:44:18] Production.INFO: count ==1213 [2025-02-06 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:44:05 - End Time 2025-02-06 21:44:05 [2025-02-06 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417869', 'tblTempUsageDetail_20' ) start [2025-02-06 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417869', 'tblTempUsageDetail_20' ) end [2025-02-06 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417869', 'tblTempVendorCDR_20' ) start [2025-02-06 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417869', 'tblTempVendorCDR_20' ) end [2025-02-06 21:44:18] Production.INFO: ProcessCDR(1,14417869,1,1,2) [2025-02-06 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417869', 'tblTempUsageDetail_20' ) start [2025-02-06 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417869', 'tblTempUsageDetail_20' ) end [2025-02-06 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:44:23] Production.INFO: ==26959== Releasing lock... [2025-02-06 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:44:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:45:05 [end_date_ymd] => 2025-02-06 21:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:45:05' and `end` < '2025-02-06 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-06 21:45:18] Production.INFO: count ==1209 [2025-02-06 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:45:05 - End Time 2025-02-06 21:45:05 [2025-02-06 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417874', 'tblTempUsageDetail_20' ) start [2025-02-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417874', 'tblTempUsageDetail_20' ) end [2025-02-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417874', 'tblTempVendorCDR_20' ) start [2025-02-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417874', 'tblTempVendorCDR_20' ) end [2025-02-06 21:45:18] Production.INFO: ProcessCDR(1,14417874,1,1,2) [2025-02-06 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417874', 'tblTempUsageDetail_20' ) start [2025-02-06 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417874', 'tblTempUsageDetail_20' ) end [2025-02-06 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:45:22] Production.INFO: ==27076== Releasing lock... [2025-02-06 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:45:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-06 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:46:05 [end_date_ymd] => 2025-02-06 21:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:46:05' and `end` < '2025-02-06 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-06 21:46:18] Production.INFO: count ==1202 [2025-02-06 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:46:05 - End Time 2025-02-06 21:46:05 [2025-02-06 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417875', 'tblTempUsageDetail_20' ) start [2025-02-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417875', 'tblTempUsageDetail_20' ) end [2025-02-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417875', 'tblTempVendorCDR_20' ) start [2025-02-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417875', 'tblTempVendorCDR_20' ) end [2025-02-06 21:46:19] Production.INFO: ProcessCDR(1,14417875,1,1,2) [2025-02-06 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417875', 'tblTempUsageDetail_20' ) start [2025-02-06 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417875', 'tblTempUsageDetail_20' ) end [2025-02-06 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:46:22] Production.INFO: ==27184== Releasing lock... [2025-02-06 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:46:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-06 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:47:05 [end_date_ymd] => 2025-02-06 21:47:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:47:05' and `end` < '2025-02-06 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-06 21:47:18] Production.INFO: count ==1201 [2025-02-06 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:47:05 - End Time 2025-02-06 21:47:05 [2025-02-06 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417884', 'tblTempUsageDetail_20' ) start [2025-02-06 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417884', 'tblTempUsageDetail_20' ) end [2025-02-06 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417884', 'tblTempVendorCDR_20' ) start [2025-02-06 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417884', 'tblTempVendorCDR_20' ) end [2025-02-06 21:47:19] Production.INFO: ProcessCDR(1,14417884,1,1,2) [2025-02-06 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417884', 'tblTempUsageDetail_20' ) start [2025-02-06 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417884', 'tblTempUsageDetail_20' ) end [2025-02-06 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:47:22] Production.INFO: ==27297== Releasing lock... [2025-02-06 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:47:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-06 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:48:05 [end_date_ymd] => 2025-02-06 21:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:48:05' and `end` < '2025-02-06 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-06 21:48:19] Production.INFO: count ==1201 [2025-02-06 21:48:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:48:05 - End Time 2025-02-06 21:48:05 [2025-02-06 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417889', 'tblTempUsageDetail_20' ) start [2025-02-06 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417889', 'tblTempUsageDetail_20' ) end [2025-02-06 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417889', 'tblTempVendorCDR_20' ) start [2025-02-06 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417889', 'tblTempVendorCDR_20' ) end [2025-02-06 21:48:19] Production.INFO: ProcessCDR(1,14417889,1,1,2) [2025-02-06 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417889', 'tblTempUsageDetail_20' ) start [2025-02-06 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417889', 'tblTempUsageDetail_20' ) end [2025-02-06 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:48:22] Production.INFO: ==27412== Releasing lock... [2025-02-06 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:48:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-06 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:49:05 [end_date_ymd] => 2025-02-06 21:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:49:05' and `end` < '2025-02-06 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-06 21:49:18] Production.INFO: count ==1202 [2025-02-06 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:49:05 - End Time 2025-02-06 21:49:05 [2025-02-06 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417894', 'tblTempUsageDetail_20' ) start [2025-02-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417894', 'tblTempUsageDetail_20' ) end [2025-02-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417894', 'tblTempVendorCDR_20' ) start [2025-02-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417894', 'tblTempVendorCDR_20' ) end [2025-02-06 21:49:18] Production.INFO: ProcessCDR(1,14417894,1,1,2) [2025-02-06 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417894', 'tblTempUsageDetail_20' ) start [2025-02-06 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417894', 'tblTempUsageDetail_20' ) end [2025-02-06 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:49:23] Production.INFO: ==27520== Releasing lock... [2025-02-06 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:49:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-06 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:50:06 [end_date_ymd] => 2025-02-06 21:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 18:50:06' and `end` < '2025-02-06 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-06 21:50:19] Production.INFO: count ==1168 [2025-02-06 21:50:20] Production.ERROR: pbx CDR StartTime 2025-02-06 18:50:06 - End Time 2025-02-06 21:50:06 [2025-02-06 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417900', 'tblTempUsageDetail_20' ) start [2025-02-06 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417900', 'tblTempUsageDetail_20' ) end [2025-02-06 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417900', 'tblTempVendorCDR_20' ) start [2025-02-06 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417900', 'tblTempVendorCDR_20' ) end [2025-02-06 21:50:20] Production.INFO: ProcessCDR(1,14417900,1,1,2) [2025-02-06 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417900', 'tblTempUsageDetail_20' ) start [2025-02-06 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417900', 'tblTempUsageDetail_20' ) end [2025-02-06 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:50:23] Production.INFO: ==27632== Releasing lock... [2025-02-06 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:50:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-06 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:51:05 [end_date_ymd] => 2025-02-06 21:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:51:05' and `end` < '2025-02-06 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-06 21:51:20] Production.INFO: count ==1106 [2025-02-06 21:51:21] Production.ERROR: pbx CDR StartTime 2025-02-06 18:51:05 - End Time 2025-02-06 21:51:05 [2025-02-06 21:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417905', 'tblTempUsageDetail_20' ) start [2025-02-06 21:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417905', 'tblTempUsageDetail_20' ) end [2025-02-06 21:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417905', 'tblTempVendorCDR_20' ) start [2025-02-06 21:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417905', 'tblTempVendorCDR_20' ) end [2025-02-06 21:51:21] Production.INFO: ProcessCDR(1,14417905,1,1,2) [2025-02-06 21:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417905', 'tblTempUsageDetail_20' ) start [2025-02-06 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417905', 'tblTempUsageDetail_20' ) end [2025-02-06 21:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:51:24] Production.INFO: ==27785== Releasing lock... [2025-02-06 21:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:51:24] Production.INFO: 36 MB #Memory Used# [2025-02-06 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:52:05 [end_date_ymd] => 2025-02-06 21:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:52:05' and `end` < '2025-02-06 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-06 21:52:18] Production.INFO: count ==1093 [2025-02-06 21:52:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:52:05 - End Time 2025-02-06 21:52:05 [2025-02-06 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417910', 'tblTempUsageDetail_20' ) start [2025-02-06 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417910', 'tblTempUsageDetail_20' ) end [2025-02-06 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417910', 'tblTempVendorCDR_20' ) start [2025-02-06 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417910', 'tblTempVendorCDR_20' ) end [2025-02-06 21:52:18] Production.INFO: ProcessCDR(1,14417910,1,1,2) [2025-02-06 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417910', 'tblTempUsageDetail_20' ) start [2025-02-06 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417910', 'tblTempUsageDetail_20' ) end [2025-02-06 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:52:22] Production.INFO: ==27904== Releasing lock... [2025-02-06 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:52:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-06 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:53:05 [end_date_ymd] => 2025-02-06 21:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:53:05' and `end` < '2025-02-06 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-06 21:53:18] Production.INFO: count ==1091 [2025-02-06 21:53:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:53:05 - End Time 2025-02-06 21:53:05 [2025-02-06 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417915', 'tblTempUsageDetail_20' ) start [2025-02-06 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417915', 'tblTempUsageDetail_20' ) end [2025-02-06 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417915', 'tblTempVendorCDR_20' ) start [2025-02-06 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417915', 'tblTempVendorCDR_20' ) end [2025-02-06 21:53:18] Production.INFO: ProcessCDR(1,14417915,1,1,2) [2025-02-06 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417915', 'tblTempUsageDetail_20' ) start [2025-02-06 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417915', 'tblTempUsageDetail_20' ) end [2025-02-06 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:53:21] Production.INFO: ==28013== Releasing lock... [2025-02-06 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:53:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-06 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:54:05 [end_date_ymd] => 2025-02-06 21:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:54:05' and `end` < '2025-02-06 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-06 21:54:19] Production.INFO: count ==1090 [2025-02-06 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:54:05 - End Time 2025-02-06 21:54:05 [2025-02-06 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417920', 'tblTempUsageDetail_20' ) start [2025-02-06 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417920', 'tblTempUsageDetail_20' ) end [2025-02-06 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417920', 'tblTempVendorCDR_20' ) start [2025-02-06 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417920', 'tblTempVendorCDR_20' ) end [2025-02-06 21:54:19] Production.INFO: ProcessCDR(1,14417920,1,1,2) [2025-02-06 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417920', 'tblTempUsageDetail_20' ) start [2025-02-06 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417920', 'tblTempUsageDetail_20' ) end [2025-02-06 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:54:22] Production.INFO: ==28128== Releasing lock... [2025-02-06 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:54:22] Production.INFO: 36 MB #Memory Used# [2025-02-06 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:55:05 [end_date_ymd] => 2025-02-06 21:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:55:05' and `end` < '2025-02-06 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-06 21:55:19] Production.INFO: count ==1088 [2025-02-06 21:55:19] Production.ERROR: pbx CDR StartTime 2025-02-06 18:55:05 - End Time 2025-02-06 21:55:05 [2025-02-06 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417925', 'tblTempUsageDetail_20' ) start [2025-02-06 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417925', 'tblTempUsageDetail_20' ) end [2025-02-06 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417925', 'tblTempVendorCDR_20' ) start [2025-02-06 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417925', 'tblTempVendorCDR_20' ) end [2025-02-06 21:55:19] Production.INFO: ProcessCDR(1,14417925,1,1,2) [2025-02-06 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417925', 'tblTempUsageDetail_20' ) start [2025-02-06 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417925', 'tblTempUsageDetail_20' ) end [2025-02-06 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:55:22] Production.INFO: ==28242== Releasing lock... [2025-02-06 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:55:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-06 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:56:05 [end_date_ymd] => 2025-02-06 21:56:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:56:05' and `end` < '2025-02-06 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-06 21:56:18] Production.INFO: count ==1087 [2025-02-06 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:56:05 - End Time 2025-02-06 21:56:05 [2025-02-06 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417930', 'tblTempUsageDetail_20' ) start [2025-02-06 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417930', 'tblTempUsageDetail_20' ) end [2025-02-06 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417930', 'tblTempVendorCDR_20' ) start [2025-02-06 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417930', 'tblTempVendorCDR_20' ) end [2025-02-06 21:56:18] Production.INFO: ProcessCDR(1,14417930,1,1,2) [2025-02-06 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417930', 'tblTempUsageDetail_20' ) start [2025-02-06 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417930', 'tblTempUsageDetail_20' ) end [2025-02-06 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:56:21] Production.INFO: ==28346== Releasing lock... [2025-02-06 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:56:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-06 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:57:05 [end_date_ymd] => 2025-02-06 21:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:57:05' and `end` < '2025-02-06 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-06 21:57:18] Production.INFO: count ==1088 [2025-02-06 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:57:05 - End Time 2025-02-06 21:57:05 [2025-02-06 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417935', 'tblTempUsageDetail_20' ) start [2025-02-06 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417935', 'tblTempUsageDetail_20' ) end [2025-02-06 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417935', 'tblTempVendorCDR_20' ) start [2025-02-06 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417935', 'tblTempVendorCDR_20' ) end [2025-02-06 21:57:19] Production.INFO: ProcessCDR(1,14417935,1,1,2) [2025-02-06 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417935', 'tblTempUsageDetail_20' ) start [2025-02-06 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417935', 'tblTempUsageDetail_20' ) end [2025-02-06 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:57:23] Production.INFO: ==28459== Releasing lock... [2025-02-06 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:57:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-06 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:58:04 [end_date_ymd] => 2025-02-06 21:58:04 [RateCDR] => 1 ) [2025-02-06 21: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-06 18:58:04' and `end` < '2025-02-06 21: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-06 21:58:17] Production.INFO: count ==1083 [2025-02-06 21:58:17] Production.ERROR: pbx CDR StartTime 2025-02-06 18:58:04 - End Time 2025-02-06 21:58:04 [2025-02-06 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417940', 'tblTempUsageDetail_20' ) start [2025-02-06 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417940', 'tblTempUsageDetail_20' ) end [2025-02-06 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417940', 'tblTempVendorCDR_20' ) start [2025-02-06 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417940', 'tblTempVendorCDR_20' ) end [2025-02-06 21:58:17] Production.INFO: ProcessCDR(1,14417940,1,1,2) [2025-02-06 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417940', 'tblTempUsageDetail_20' ) start [2025-02-06 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417940', 'tblTempUsageDetail_20' ) end [2025-02-06 21:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:58:20] Production.INFO: ==28570== Releasing lock... [2025-02-06 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:58:20] Production.INFO: 35.75 MB #Memory Used# [2025-02-06 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 18:59:05 [end_date_ymd] => 2025-02-06 21:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 18:59:05' and `end` < '2025-02-06 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-06 21:59:18] Production.INFO: count ==1082 [2025-02-06 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-06 18:59:05 - End Time 2025-02-06 21:59:05 [2025-02-06 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417945', 'tblTempUsageDetail_20' ) start [2025-02-06 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417945', 'tblTempUsageDetail_20' ) end [2025-02-06 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417945', 'tblTempVendorCDR_20' ) start [2025-02-06 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417945', 'tblTempVendorCDR_20' ) end [2025-02-06 21:59:18] Production.INFO: ProcessCDR(1,14417945,1,1,2) [2025-02-06 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417945', 'tblTempUsageDetail_20' ) start [2025-02-06 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417945', 'tblTempUsageDetail_20' ) end [2025-02-06 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 21:59:22] Production.INFO: ==28685== Releasing lock... [2025-02-06 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 21:59:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-06 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:00:07 [end_date_ymd] => 2025-02-06 22:00:07 [RateCDR] => 1 ) [2025-02-06 22: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-06 19:00:07' and `end` < '2025-02-06 22: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-06 22:00:20] Production.INFO: count ==1078 [2025-02-06 22:00:20] Production.ERROR: pbx CDR StartTime 2025-02-06 19:00:07 - End Time 2025-02-06 22:00:07 [2025-02-06 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417951', 'tblTempUsageDetail_20' ) start [2025-02-06 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417951', 'tblTempUsageDetail_20' ) end [2025-02-06 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417951', 'tblTempVendorCDR_20' ) start [2025-02-06 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417951', 'tblTempVendorCDR_20' ) end [2025-02-06 22:00:20] Production.INFO: ProcessCDR(1,14417951,1,1,2) [2025-02-06 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417951', 'tblTempUsageDetail_20' ) start [2025-02-06 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417951', 'tblTempUsageDetail_20' ) end [2025-02-06 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:00:24] Production.INFO: ==28802== Releasing lock... [2025-02-06 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:00:24] Production.INFO: 35.75 MB #Memory Used# [2025-02-06 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:01:05 [end_date_ymd] => 2025-02-06 22:01:05 [RateCDR] => 1 ) [2025-02-06 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:01:05' and `end` < '2025-02-06 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:01:18] Production.INFO: count ==1044 [2025-02-06 22:01:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:01:05 - End Time 2025-02-06 22:01:05 [2025-02-06 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417956', 'tblTempUsageDetail_20' ) start [2025-02-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417956', 'tblTempUsageDetail_20' ) end [2025-02-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417956', 'tblTempVendorCDR_20' ) start [2025-02-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417956', 'tblTempVendorCDR_20' ) end [2025-02-06 22:01:18] Production.INFO: ProcessCDR(1,14417956,1,1,2) [2025-02-06 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417956', 'tblTempUsageDetail_20' ) start [2025-02-06 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417956', 'tblTempUsageDetail_20' ) end [2025-02-06 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:01:21] Production.INFO: ==28929== Releasing lock... [2025-02-06 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:01:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:02:06 [end_date_ymd] => 2025-02-06 22:02:06 [RateCDR] => 1 ) [2025-02-06 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:02:06' and `end` < '2025-02-06 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:02:19] Production.INFO: count ==1044 [2025-02-06 22:02:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:02:06 - End Time 2025-02-06 22:02:06 [2025-02-06 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417961', 'tblTempUsageDetail_20' ) start [2025-02-06 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417961', 'tblTempUsageDetail_20' ) end [2025-02-06 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417961', 'tblTempVendorCDR_20' ) start [2025-02-06 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417961', 'tblTempVendorCDR_20' ) end [2025-02-06 22:02:19] Production.INFO: ProcessCDR(1,14417961,1,1,2) [2025-02-06 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417961', 'tblTempUsageDetail_20' ) start [2025-02-06 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417961', 'tblTempUsageDetail_20' ) end [2025-02-06 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:02:23] Production.INFO: ==29043== Releasing lock... [2025-02-06 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:02:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:03:05 [end_date_ymd] => 2025-02-06 22:03:05 [RateCDR] => 1 ) [2025-02-06 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:03:05' and `end` < '2025-02-06 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:03:19] Production.INFO: count ==1041 [2025-02-06 22:03:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:03:05 - End Time 2025-02-06 22:03:05 [2025-02-06 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417966', 'tblTempUsageDetail_20' ) start [2025-02-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417966', 'tblTempUsageDetail_20' ) end [2025-02-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417966', 'tblTempVendorCDR_20' ) start [2025-02-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417966', 'tblTempVendorCDR_20' ) end [2025-02-06 22:03:19] Production.INFO: ProcessCDR(1,14417966,1,1,2) [2025-02-06 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417966', 'tblTempUsageDetail_20' ) start [2025-02-06 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417966', 'tblTempUsageDetail_20' ) end [2025-02-06 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:03:22] Production.INFO: ==29152== Releasing lock... [2025-02-06 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:03:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:04:05 [end_date_ymd] => 2025-02-06 22:04:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:04:05' and `end` < '2025-02-06 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-06 22:04:18] Production.INFO: count ==1041 [2025-02-06 22:04:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:04:05 - End Time 2025-02-06 22:04:05 [2025-02-06 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417971', 'tblTempUsageDetail_20' ) start [2025-02-06 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417971', 'tblTempUsageDetail_20' ) end [2025-02-06 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417971', 'tblTempVendorCDR_20' ) start [2025-02-06 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417971', 'tblTempVendorCDR_20' ) end [2025-02-06 22:04:19] Production.INFO: ProcessCDR(1,14417971,1,1,2) [2025-02-06 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417971', 'tblTempUsageDetail_20' ) start [2025-02-06 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417971', 'tblTempUsageDetail_20' ) end [2025-02-06 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:04:22] Production.INFO: ==29266== Releasing lock... [2025-02-06 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:04:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:05:05 [end_date_ymd] => 2025-02-06 22:05:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:05:05' and `end` < '2025-02-06 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-06 22:05:18] Production.INFO: count ==1044 [2025-02-06 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:05:05 - End Time 2025-02-06 22:05:05 [2025-02-06 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417976', 'tblTempUsageDetail_20' ) start [2025-02-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417976', 'tblTempUsageDetail_20' ) end [2025-02-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417976', 'tblTempVendorCDR_20' ) start [2025-02-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417976', 'tblTempVendorCDR_20' ) end [2025-02-06 22:05:18] Production.INFO: ProcessCDR(1,14417976,1,1,2) [2025-02-06 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417976', 'tblTempUsageDetail_20' ) start [2025-02-06 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417976', 'tblTempUsageDetail_20' ) end [2025-02-06 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:05:22] Production.INFO: ==29375== Releasing lock... [2025-02-06 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:05:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:06:06 [end_date_ymd] => 2025-02-06 22:06:06 [RateCDR] => 1 ) [2025-02-06 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:06:06' and `end` < '2025-02-06 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:06:19] Production.INFO: count ==1048 [2025-02-06 22:06:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:06:06 - End Time 2025-02-06 22:06:06 [2025-02-06 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417981', 'tblTempUsageDetail_20' ) start [2025-02-06 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417981', 'tblTempUsageDetail_20' ) end [2025-02-06 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417981', 'tblTempVendorCDR_20' ) start [2025-02-06 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417981', 'tblTempVendorCDR_20' ) end [2025-02-06 22:06:19] Production.INFO: ProcessCDR(1,14417981,1,1,2) [2025-02-06 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417981', 'tblTempUsageDetail_20' ) start [2025-02-06 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417981', 'tblTempUsageDetail_20' ) end [2025-02-06 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:06:23] Production.INFO: ==29488== Releasing lock... [2025-02-06 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:06:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:07:04 [end_date_ymd] => 2025-02-06 22:07:04 [RateCDR] => 1 ) [2025-02-06 22: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-06 19:07:04' and `end` < '2025-02-06 22: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-06 22:07:19] Production.INFO: count ==1045 [2025-02-06 22:07:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:07:04 - End Time 2025-02-06 22:07:04 [2025-02-06 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417986', 'tblTempUsageDetail_20' ) start [2025-02-06 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417986', 'tblTempUsageDetail_20' ) end [2025-02-06 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417986', 'tblTempVendorCDR_20' ) start [2025-02-06 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417986', 'tblTempVendorCDR_20' ) end [2025-02-06 22:07:19] Production.INFO: ProcessCDR(1,14417986,1,1,2) [2025-02-06 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417986', 'tblTempUsageDetail_20' ) start [2025-02-06 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417986', 'tblTempUsageDetail_20' ) end [2025-02-06 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:07:22] Production.INFO: ==29607== Releasing lock... [2025-02-06 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:07:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:08:05 [end_date_ymd] => 2025-02-06 22:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:08:05' and `end` < '2025-02-06 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-06 22:08:19] Production.INFO: count ==1048 [2025-02-06 22:08:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:08:05 - End Time 2025-02-06 22:08:05 [2025-02-06 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417991', 'tblTempUsageDetail_20' ) start [2025-02-06 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417991', 'tblTempUsageDetail_20' ) end [2025-02-06 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417991', 'tblTempVendorCDR_20' ) start [2025-02-06 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417991', 'tblTempVendorCDR_20' ) end [2025-02-06 22:08:19] Production.INFO: ProcessCDR(1,14417991,1,1,2) [2025-02-06 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417991', 'tblTempUsageDetail_20' ) start [2025-02-06 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417991', 'tblTempUsageDetail_20' ) end [2025-02-06 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:08:22] Production.INFO: ==29688== Releasing lock... [2025-02-06 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:08:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-06 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:09:05 [end_date_ymd] => 2025-02-06 22:09:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:09:05' and `end` < '2025-02-06 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-06 22:09:18] Production.INFO: count ==1037 [2025-02-06 22:09:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:09:05 - End Time 2025-02-06 22:09:05 [2025-02-06 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417996', 'tblTempUsageDetail_20' ) start [2025-02-06 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14417996', 'tblTempUsageDetail_20' ) end [2025-02-06 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417996', 'tblTempVendorCDR_20' ) start [2025-02-06 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14417996', 'tblTempVendorCDR_20' ) end [2025-02-06 22:09:18] Production.INFO: ProcessCDR(1,14417996,1,1,2) [2025-02-06 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14417996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14417996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14417996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14417996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417996', 'tblTempUsageDetail_20' ) start [2025-02-06 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14417996', 'tblTempUsageDetail_20' ) end [2025-02-06 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:09:21] Production.INFO: ==29765== Releasing lock... [2025-02-06 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:09:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-06 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:10:05 [end_date_ymd] => 2025-02-06 22:10:05 [RateCDR] => 1 ) [2025-02-06 22: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-06 19:10:05' and `end` < '2025-02-06 22: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-06 22:10:18] Production.INFO: count ==1033 [2025-02-06 22:10:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:10:05 - End Time 2025-02-06 22:10:05 [2025-02-06 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418001', 'tblTempUsageDetail_20' ) start [2025-02-06 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418001', 'tblTempUsageDetail_20' ) end [2025-02-06 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418001', 'tblTempVendorCDR_20' ) start [2025-02-06 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418001', 'tblTempVendorCDR_20' ) end [2025-02-06 22:10:18] Production.INFO: ProcessCDR(1,14418001,1,1,2) [2025-02-06 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418001', 'tblTempUsageDetail_20' ) start [2025-02-06 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418001', 'tblTempUsageDetail_20' ) end [2025-02-06 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:10:21] Production.INFO: ==29846== Releasing lock... [2025-02-06 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:10:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-06 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:11:05 [end_date_ymd] => 2025-02-06 22:11:05 [RateCDR] => 1 ) [2025-02-06 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:11:05' and `end` < '2025-02-06 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:11:20] Production.INFO: count ==969 [2025-02-06 22:11:20] Production.ERROR: pbx CDR StartTime 2025-02-06 19:11:05 - End Time 2025-02-06 22:11:05 [2025-02-06 22:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418007', 'tblTempUsageDetail_20' ) start [2025-02-06 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418007', 'tblTempUsageDetail_20' ) end [2025-02-06 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418007', 'tblTempVendorCDR_20' ) start [2025-02-06 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418007', 'tblTempVendorCDR_20' ) end [2025-02-06 22:11:20] Production.INFO: ProcessCDR(1,14418007,1,1,2) [2025-02-06 22:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418007', 'tblTempUsageDetail_20' ) start [2025-02-06 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418007', 'tblTempUsageDetail_20' ) end [2025-02-06 22:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:11:24] Production.INFO: ==29930== Releasing lock... [2025-02-06 22:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:11:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:12:05 [end_date_ymd] => 2025-02-06 22:12:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:12:05' and `end` < '2025-02-06 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-06 22:12:18] Production.INFO: count ==964 [2025-02-06 22:12:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:12:05 - End Time 2025-02-06 22:12:05 [2025-02-06 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418012', 'tblTempUsageDetail_20' ) start [2025-02-06 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418012', 'tblTempUsageDetail_20' ) end [2025-02-06 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418012', 'tblTempVendorCDR_20' ) start [2025-02-06 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418012', 'tblTempVendorCDR_20' ) end [2025-02-06 22:12:18] Production.INFO: ProcessCDR(1,14418012,1,1,2) [2025-02-06 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418012', 'tblTempUsageDetail_20' ) start [2025-02-06 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418012', 'tblTempUsageDetail_20' ) end [2025-02-06 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:12:21] Production.INFO: ==30006== Releasing lock... [2025-02-06 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:12:21] Production.INFO: 35 MB #Memory Used# [2025-02-06 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:13:05 [end_date_ymd] => 2025-02-06 22:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:13:05' and `end` < '2025-02-06 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-06 22:13:18] Production.INFO: count ==961 [2025-02-06 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:13:05 - End Time 2025-02-06 22:13:05 [2025-02-06 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418017', 'tblTempUsageDetail_20' ) start [2025-02-06 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418017', 'tblTempUsageDetail_20' ) end [2025-02-06 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418017', 'tblTempVendorCDR_20' ) start [2025-02-06 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418017', 'tblTempVendorCDR_20' ) end [2025-02-06 22:13:19] Production.INFO: ProcessCDR(1,14418017,1,1,2) [2025-02-06 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418017', 'tblTempUsageDetail_20' ) start [2025-02-06 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418017', 'tblTempUsageDetail_20' ) end [2025-02-06 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:13:22] Production.INFO: ==30086== Releasing lock... [2025-02-06 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:13:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:14:06 [end_date_ymd] => 2025-02-06 22:14:06 [RateCDR] => 1 ) [2025-02-06 22:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:14:06' and `end` < '2025-02-06 22:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:14:19] Production.INFO: count ==961 [2025-02-06 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:14:06 - End Time 2025-02-06 22:14:06 [2025-02-06 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418022', 'tblTempUsageDetail_20' ) start [2025-02-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418022', 'tblTempUsageDetail_20' ) end [2025-02-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418022', 'tblTempVendorCDR_20' ) start [2025-02-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418022', 'tblTempVendorCDR_20' ) end [2025-02-06 22:14:19] Production.INFO: ProcessCDR(1,14418022,1,1,2) [2025-02-06 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418022', 'tblTempUsageDetail_20' ) start [2025-02-06 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418022', 'tblTempUsageDetail_20' ) end [2025-02-06 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:14:22] Production.INFO: ==30167== Releasing lock... [2025-02-06 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:14:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:15:05 [end_date_ymd] => 2025-02-06 22:15:05 [RateCDR] => 1 ) [2025-02-06 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:15:05' and `end` < '2025-02-06 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:15:18] Production.INFO: count ==956 [2025-02-06 22:15:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:15:05 - End Time 2025-02-06 22:15:05 [2025-02-06 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418027', 'tblTempUsageDetail_20' ) start [2025-02-06 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418027', 'tblTempUsageDetail_20' ) end [2025-02-06 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418027', 'tblTempVendorCDR_20' ) start [2025-02-06 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418027', 'tblTempVendorCDR_20' ) end [2025-02-06 22:15:18] Production.INFO: ProcessCDR(1,14418027,1,1,2) [2025-02-06 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418027', 'tblTempUsageDetail_20' ) start [2025-02-06 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418027', 'tblTempUsageDetail_20' ) end [2025-02-06 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:15:23] Production.INFO: ==30240== Releasing lock... [2025-02-06 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:15:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:16:05 [end_date_ymd] => 2025-02-06 22:16:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:16:05' and `end` < '2025-02-06 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-06 22:16:18] Production.INFO: count ==955 [2025-02-06 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:16:05 - End Time 2025-02-06 22:16:05 [2025-02-06 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418032', 'tblTempUsageDetail_20' ) start [2025-02-06 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418032', 'tblTempUsageDetail_20' ) end [2025-02-06 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418032', 'tblTempVendorCDR_20' ) start [2025-02-06 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418032', 'tblTempVendorCDR_20' ) end [2025-02-06 22:16:18] Production.INFO: ProcessCDR(1,14418032,1,1,2) [2025-02-06 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418032', 'tblTempUsageDetail_20' ) start [2025-02-06 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418032', 'tblTempUsageDetail_20' ) end [2025-02-06 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:16:21] Production.INFO: ==30320== Releasing lock... [2025-02-06 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:16:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:17:05 [end_date_ymd] => 2025-02-06 22:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:17:05' and `end` < '2025-02-06 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-06 22:17:19] Production.INFO: count ==957 [2025-02-06 22:17:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:17:05 - End Time 2025-02-06 22:17:05 [2025-02-06 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418037', 'tblTempUsageDetail_20' ) start [2025-02-06 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418037', 'tblTempUsageDetail_20' ) end [2025-02-06 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418037', 'tblTempVendorCDR_20' ) start [2025-02-06 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418037', 'tblTempVendorCDR_20' ) end [2025-02-06 22:17:19] Production.INFO: ProcessCDR(1,14418037,1,1,2) [2025-02-06 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418037', 'tblTempUsageDetail_20' ) start [2025-02-06 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418037', 'tblTempUsageDetail_20' ) end [2025-02-06 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:17:22] Production.INFO: ==30396== Releasing lock... [2025-02-06 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:17:22] Production.INFO: 35 MB #Memory Used# [2025-02-06 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:18:05 [end_date_ymd] => 2025-02-06 22:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:18:05' and `end` < '2025-02-06 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-06 22:18:19] Production.INFO: count ==954 [2025-02-06 22:18:20] Production.ERROR: pbx CDR StartTime 2025-02-06 19:18:05 - End Time 2025-02-06 22:18:05 [2025-02-06 22:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418042', 'tblTempUsageDetail_20' ) start [2025-02-06 22:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418042', 'tblTempUsageDetail_20' ) end [2025-02-06 22:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418042', 'tblTempVendorCDR_20' ) start [2025-02-06 22:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418042', 'tblTempVendorCDR_20' ) end [2025-02-06 22:18:20] Production.INFO: ProcessCDR(1,14418042,1,1,2) [2025-02-06 22:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418042', 'tblTempUsageDetail_20' ) start [2025-02-06 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418042', 'tblTempUsageDetail_20' ) end [2025-02-06 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:18:22] Production.INFO: ==30478== Releasing lock... [2025-02-06 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:18:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:19:05 [end_date_ymd] => 2025-02-06 22:19:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:19:05' and `end` < '2025-02-06 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-06 22:19:18] Production.INFO: count ==941 [2025-02-06 22:19:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:19:05 - End Time 2025-02-06 22:19:05 [2025-02-06 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418047', 'tblTempUsageDetail_20' ) start [2025-02-06 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418047', 'tblTempUsageDetail_20' ) end [2025-02-06 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418047', 'tblTempVendorCDR_20' ) start [2025-02-06 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418047', 'tblTempVendorCDR_20' ) end [2025-02-06 22:19:19] Production.INFO: ProcessCDR(1,14418047,1,1,2) [2025-02-06 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418047', 'tblTempUsageDetail_20' ) start [2025-02-06 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418047', 'tblTempUsageDetail_20' ) end [2025-02-06 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:19:21] Production.INFO: ==30554== Releasing lock... [2025-02-06 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:19:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-06 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:20:06 [end_date_ymd] => 2025-02-06 22:20:06 [RateCDR] => 1 ) [2025-02-06 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:20:06' and `end` < '2025-02-06 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:20:19] Production.INFO: count ==940 [2025-02-06 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:20:06 - End Time 2025-02-06 22:20:06 [2025-02-06 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418053', 'tblTempUsageDetail_20' ) start [2025-02-06 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418053', 'tblTempUsageDetail_20' ) end [2025-02-06 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418053', 'tblTempVendorCDR_20' ) start [2025-02-06 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418053', 'tblTempVendorCDR_20' ) end [2025-02-06 22:20:19] Production.INFO: ProcessCDR(1,14418053,1,1,2) [2025-02-06 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418053', 'tblTempUsageDetail_20' ) start [2025-02-06 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418053', 'tblTempUsageDetail_20' ) end [2025-02-06 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:20:22] Production.INFO: ==30632== Releasing lock... [2025-02-06 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:20:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-06 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:21:05 [end_date_ymd] => 2025-02-06 22:21:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:21:05' and `end` < '2025-02-06 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-06 22:21:18] Production.INFO: count ==907 [2025-02-06 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:21:05 - End Time 2025-02-06 22:21:05 [2025-02-06 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418058', 'tblTempUsageDetail_20' ) start [2025-02-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418058', 'tblTempUsageDetail_20' ) end [2025-02-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418058', 'tblTempVendorCDR_20' ) start [2025-02-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418058', 'tblTempVendorCDR_20' ) end [2025-02-06 22:21:18] Production.INFO: ProcessCDR(1,14418058,1,1,2) [2025-02-06 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418058', 'tblTempUsageDetail_20' ) start [2025-02-06 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418058', 'tblTempUsageDetail_20' ) end [2025-02-06 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:21:21] Production.INFO: ==30709== Releasing lock... [2025-02-06 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:21:21] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:22:05 [end_date_ymd] => 2025-02-06 22:22:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:22:05' and `end` < '2025-02-06 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-06 22:22:18] Production.INFO: count ==906 [2025-02-06 22:22:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:22:05 - End Time 2025-02-06 22:22:05 [2025-02-06 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418063', 'tblTempUsageDetail_20' ) start [2025-02-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418063', 'tblTempUsageDetail_20' ) end [2025-02-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418063', 'tblTempVendorCDR_20' ) start [2025-02-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418063', 'tblTempVendorCDR_20' ) end [2025-02-06 22:22:18] Production.INFO: ProcessCDR(1,14418063,1,1,2) [2025-02-06 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418063', 'tblTempUsageDetail_20' ) start [2025-02-06 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418063', 'tblTempUsageDetail_20' ) end [2025-02-06 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:22:21] Production.INFO: ==30823== Releasing lock... [2025-02-06 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:22:21] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:23:05 [end_date_ymd] => 2025-02-06 22:23:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:23:05' and `end` < '2025-02-06 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-06 22:23:18] Production.INFO: count ==898 [2025-02-06 22:23:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:23:05 - End Time 2025-02-06 22:23:05 [2025-02-06 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418066', 'tblTempUsageDetail_20' ) start [2025-02-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418066', 'tblTempUsageDetail_20' ) end [2025-02-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418066', 'tblTempVendorCDR_20' ) start [2025-02-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418066', 'tblTempVendorCDR_20' ) end [2025-02-06 22:23:18] Production.INFO: ProcessCDR(1,14418066,1,1,2) [2025-02-06 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418066', 'tblTempUsageDetail_20' ) start [2025-02-06 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418066', 'tblTempUsageDetail_20' ) end [2025-02-06 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:23:21] Production.INFO: ==30907== Releasing lock... [2025-02-06 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:23:21] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:24:06 [end_date_ymd] => 2025-02-06 22:24:06 [RateCDR] => 1 ) [2025-02-06 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-06 19:24:06' and `end` < '2025-02-06 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-06 22:24:20] Production.INFO: count ==898 [2025-02-06 22:24:20] Production.ERROR: pbx CDR StartTime 2025-02-06 19:24:06 - End Time 2025-02-06 22:24:06 [2025-02-06 22:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418073', 'tblTempUsageDetail_20' ) start [2025-02-06 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418073', 'tblTempUsageDetail_20' ) end [2025-02-06 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418073', 'tblTempVendorCDR_20' ) start [2025-02-06 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418073', 'tblTempVendorCDR_20' ) end [2025-02-06 22:24:20] Production.INFO: ProcessCDR(1,14418073,1,1,2) [2025-02-06 22:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418073', 'tblTempUsageDetail_20' ) start [2025-02-06 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418073', 'tblTempUsageDetail_20' ) end [2025-02-06 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:24:24] Production.INFO: ==30984== Releasing lock... [2025-02-06 22:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:24:24] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:25:04 [end_date_ymd] => 2025-02-06 22:25:04 [RateCDR] => 1 ) [2025-02-06 22: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-06 19:25:04' and `end` < '2025-02-06 22: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-06 22:25:17] Production.INFO: count ==900 [2025-02-06 22:25:17] Production.ERROR: pbx CDR StartTime 2025-02-06 19:25:04 - End Time 2025-02-06 22:25:04 [2025-02-06 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418078', 'tblTempUsageDetail_20' ) start [2025-02-06 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418078', 'tblTempUsageDetail_20' ) end [2025-02-06 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418078', 'tblTempVendorCDR_20' ) start [2025-02-06 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418078', 'tblTempVendorCDR_20' ) end [2025-02-06 22:25:17] Production.INFO: ProcessCDR(1,14418078,1,1,2) [2025-02-06 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418078', 'tblTempUsageDetail_20' ) start [2025-02-06 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418078', 'tblTempUsageDetail_20' ) end [2025-02-06 22:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:25:20] Production.INFO: ==31057== Releasing lock... [2025-02-06 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:25:20] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:26:05 [end_date_ymd] => 2025-02-06 22:26:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:26:05' and `end` < '2025-02-06 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-06 22:26:18] Production.INFO: count ==902 [2025-02-06 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:26:05 - End Time 2025-02-06 22:26:05 [2025-02-06 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418083', 'tblTempUsageDetail_20' ) start [2025-02-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418083', 'tblTempUsageDetail_20' ) end [2025-02-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418083', 'tblTempVendorCDR_20' ) start [2025-02-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418083', 'tblTempVendorCDR_20' ) end [2025-02-06 22:26:18] Production.INFO: ProcessCDR(1,14418083,1,1,2) [2025-02-06 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418083', 'tblTempUsageDetail_20' ) start [2025-02-06 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418083', 'tblTempUsageDetail_20' ) end [2025-02-06 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:26:21] Production.INFO: ==31133== Releasing lock... [2025-02-06 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:26:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-06 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:27:06 [end_date_ymd] => 2025-02-06 22:27:06 [RateCDR] => 1 ) [2025-02-06 22:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:27:06' and `end` < '2025-02-06 22:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:27:20] Production.INFO: count ==902 [2025-02-06 22:27:20] Production.ERROR: pbx CDR StartTime 2025-02-06 19:27:06 - End Time 2025-02-06 22:27:06 [2025-02-06 22:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418088', 'tblTempUsageDetail_20' ) start [2025-02-06 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418088', 'tblTempUsageDetail_20' ) end [2025-02-06 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418088', 'tblTempVendorCDR_20' ) start [2025-02-06 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418088', 'tblTempVendorCDR_20' ) end [2025-02-06 22:27:20] Production.INFO: ProcessCDR(1,14418088,1,1,2) [2025-02-06 22:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418088', 'tblTempUsageDetail_20' ) start [2025-02-06 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418088', 'tblTempUsageDetail_20' ) end [2025-02-06 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:27:23] Production.INFO: ==31211== Releasing lock... [2025-02-06 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:27:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-06 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:28:05 [end_date_ymd] => 2025-02-06 22:28:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:28:05' and `end` < '2025-02-06 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-06 22:28:18] Production.INFO: count ==901 [2025-02-06 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:28:05 - End Time 2025-02-06 22:28:05 [2025-02-06 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418093', 'tblTempUsageDetail_20' ) start [2025-02-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418093', 'tblTempUsageDetail_20' ) end [2025-02-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418093', 'tblTempVendorCDR_20' ) start [2025-02-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418093', 'tblTempVendorCDR_20' ) end [2025-02-06 22:28:18] Production.INFO: ProcessCDR(1,14418093,1,1,2) [2025-02-06 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418093', 'tblTempUsageDetail_20' ) start [2025-02-06 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418093', 'tblTempUsageDetail_20' ) end [2025-02-06 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:28:21] Production.INFO: ==31284== Releasing lock... [2025-02-06 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:28:21] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:29:06 [end_date_ymd] => 2025-02-06 22:29:06 [RateCDR] => 1 ) [2025-02-06 22:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:29:06' and `end` < '2025-02-06 22:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:29:19] Production.INFO: count ==901 [2025-02-06 22:29:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:29:06 - End Time 2025-02-06 22:29:06 [2025-02-06 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418098', 'tblTempUsageDetail_20' ) start [2025-02-06 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418098', 'tblTempUsageDetail_20' ) end [2025-02-06 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418098', 'tblTempVendorCDR_20' ) start [2025-02-06 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418098', 'tblTempVendorCDR_20' ) end [2025-02-06 22:29:19] Production.INFO: ProcessCDR(1,14418098,1,1,2) [2025-02-06 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418098', 'tblTempUsageDetail_20' ) start [2025-02-06 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418098', 'tblTempUsageDetail_20' ) end [2025-02-06 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:29:22] Production.INFO: ==31362== Releasing lock... [2025-02-06 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:29:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-06 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:30:06 [end_date_ymd] => 2025-02-06 22:30:06 [RateCDR] => 1 ) [2025-02-06 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:30:06' and `end` < '2025-02-06 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:30:19] Production.INFO: count ==899 [2025-02-06 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:30:06 - End Time 2025-02-06 22:30:06 [2025-02-06 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418103', 'tblTempUsageDetail_20' ) start [2025-02-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418103', 'tblTempUsageDetail_20' ) end [2025-02-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418103', 'tblTempVendorCDR_20' ) start [2025-02-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418103', 'tblTempVendorCDR_20' ) end [2025-02-06 22:30:19] Production.INFO: ProcessCDR(1,14418103,1,1,2) [2025-02-06 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418103', 'tblTempUsageDetail_20' ) start [2025-02-06 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418103', 'tblTempUsageDetail_20' ) end [2025-02-06 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:30:23] Production.INFO: ==31442== Releasing lock... [2025-02-06 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:30:23] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:31:05 [end_date_ymd] => 2025-02-06 22:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:31:05' and `end` < '2025-02-06 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-06 22:31:18] Production.INFO: count ==898 [2025-02-06 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:31:05 - End Time 2025-02-06 22:31:05 [2025-02-06 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418109', 'tblTempUsageDetail_20' ) start [2025-02-06 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418109', 'tblTempUsageDetail_20' ) end [2025-02-06 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418109', 'tblTempVendorCDR_20' ) start [2025-02-06 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418109', 'tblTempVendorCDR_20' ) end [2025-02-06 22:31:18] Production.INFO: ProcessCDR(1,14418109,1,1,2) [2025-02-06 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418109', 'tblTempUsageDetail_20' ) start [2025-02-06 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418109', 'tblTempUsageDetail_20' ) end [2025-02-06 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:31:23] Production.INFO: ==31519== Releasing lock... [2025-02-06 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:31:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-06 22:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:32:04 [end_date_ymd] => 2025-02-06 22:32:04 [RateCDR] => 1 ) [2025-02-06 22: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-06 19:32:04' and `end` < '2025-02-06 22: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-06 22:32:17] Production.INFO: count ==880 [2025-02-06 22:32:17] Production.ERROR: pbx CDR StartTime 2025-02-06 19:32:04 - End Time 2025-02-06 22:32:04 [2025-02-06 22:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418114', 'tblTempUsageDetail_20' ) start [2025-02-06 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418114', 'tblTempUsageDetail_20' ) end [2025-02-06 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418114', 'tblTempVendorCDR_20' ) start [2025-02-06 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418114', 'tblTempVendorCDR_20' ) end [2025-02-06 22:32:17] Production.INFO: ProcessCDR(1,14418114,1,1,2) [2025-02-06 22:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418114', 'tblTempUsageDetail_20' ) start [2025-02-06 22:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418114', 'tblTempUsageDetail_20' ) end [2025-02-06 22:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:32:20] Production.INFO: ==31592== Releasing lock... [2025-02-06 22:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:32:20] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:33:05 [end_date_ymd] => 2025-02-06 22:33:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:33:05' and `end` < '2025-02-06 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-06 22:33:18] Production.INFO: count ==877 [2025-02-06 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:33:05 - End Time 2025-02-06 22:33:05 [2025-02-06 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418119', 'tblTempUsageDetail_20' ) start [2025-02-06 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418119', 'tblTempUsageDetail_20' ) end [2025-02-06 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418119', 'tblTempVendorCDR_20' ) start [2025-02-06 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418119', 'tblTempVendorCDR_20' ) end [2025-02-06 22:33:19] Production.INFO: ProcessCDR(1,14418119,1,1,2) [2025-02-06 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418119', 'tblTempUsageDetail_20' ) start [2025-02-06 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418119', 'tblTempUsageDetail_20' ) end [2025-02-06 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:33:21] Production.INFO: ==31668== Releasing lock... [2025-02-06 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:34:05 [end_date_ymd] => 2025-02-06 22:34:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:34:05' and `end` < '2025-02-06 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-06 22:34:18] Production.INFO: count ==880 [2025-02-06 22:34:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:34:05 - End Time 2025-02-06 22:34:05 [2025-02-06 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418124', 'tblTempUsageDetail_20' ) start [2025-02-06 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418124', 'tblTempUsageDetail_20' ) end [2025-02-06 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418124', 'tblTempVendorCDR_20' ) start [2025-02-06 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418124', 'tblTempVendorCDR_20' ) end [2025-02-06 22:34:18] Production.INFO: ProcessCDR(1,14418124,1,1,2) [2025-02-06 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418124', 'tblTempUsageDetail_20' ) start [2025-02-06 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418124', 'tblTempUsageDetail_20' ) end [2025-02-06 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:34:22] Production.INFO: ==31747== Releasing lock... [2025-02-06 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:34:22] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:35:05 [end_date_ymd] => 2025-02-06 22:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:35:05' and `end` < '2025-02-06 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-06 22:35:18] Production.INFO: count ==876 [2025-02-06 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:35:05 - End Time 2025-02-06 22:35:05 [2025-02-06 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418129', 'tblTempUsageDetail_20' ) start [2025-02-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418129', 'tblTempUsageDetail_20' ) end [2025-02-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418129', 'tblTempVendorCDR_20' ) start [2025-02-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418129', 'tblTempVendorCDR_20' ) end [2025-02-06 22:35:18] Production.INFO: ProcessCDR(1,14418129,1,1,2) [2025-02-06 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418129', 'tblTempUsageDetail_20' ) start [2025-02-06 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418129', 'tblTempUsageDetail_20' ) end [2025-02-06 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:35:21] Production.INFO: ==31820== Releasing lock... [2025-02-06 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:35:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:36:06 [end_date_ymd] => 2025-02-06 22:36:06 [RateCDR] => 1 ) [2025-02-06 22:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:36:06' and `end` < '2025-02-06 22:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:36:20] Production.INFO: count ==878 [2025-02-06 22:36:21] Production.ERROR: pbx CDR StartTime 2025-02-06 19:36:06 - End Time 2025-02-06 22:36:06 [2025-02-06 22:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418134', 'tblTempUsageDetail_20' ) start [2025-02-06 22:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418134', 'tblTempUsageDetail_20' ) end [2025-02-06 22:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418134', 'tblTempVendorCDR_20' ) start [2025-02-06 22:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418134', 'tblTempVendorCDR_20' ) end [2025-02-06 22:36:21] Production.INFO: ProcessCDR(1,14418134,1,1,2) [2025-02-06 22:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418134', 'tblTempUsageDetail_20' ) start [2025-02-06 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418134', 'tblTempUsageDetail_20' ) end [2025-02-06 22:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:36:24] Production.INFO: ==31893== Releasing lock... [2025-02-06 22:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:36:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:37:05 [end_date_ymd] => 2025-02-06 22:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:37:05' and `end` < '2025-02-06 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-06 22:37:18] Production.INFO: count ==874 [2025-02-06 22:37:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:37:05 - End Time 2025-02-06 22:37:05 [2025-02-06 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418139', 'tblTempUsageDetail_20' ) start [2025-02-06 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418139', 'tblTempUsageDetail_20' ) end [2025-02-06 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418139', 'tblTempVendorCDR_20' ) start [2025-02-06 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418139', 'tblTempVendorCDR_20' ) end [2025-02-06 22:37:19] Production.INFO: ProcessCDR(1,14418139,1,1,2) [2025-02-06 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418139', 'tblTempUsageDetail_20' ) start [2025-02-06 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418139', 'tblTempUsageDetail_20' ) end [2025-02-06 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:37:22] Production.INFO: ==31972== Releasing lock... [2025-02-06 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:37:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:38:05 [end_date_ymd] => 2025-02-06 22:38:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:38:05' and `end` < '2025-02-06 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-06 22:38:18] Production.INFO: count ==868 [2025-02-06 22:38:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:38:05 - End Time 2025-02-06 22:38:05 [2025-02-06 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418144', 'tblTempUsageDetail_20' ) start [2025-02-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418144', 'tblTempUsageDetail_20' ) end [2025-02-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418144', 'tblTempVendorCDR_20' ) start [2025-02-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418144', 'tblTempVendorCDR_20' ) end [2025-02-06 22:38:18] Production.INFO: ProcessCDR(1,14418144,1,1,2) [2025-02-06 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418144', 'tblTempUsageDetail_20' ) start [2025-02-06 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418144', 'tblTempUsageDetail_20' ) end [2025-02-06 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:38:21] Production.INFO: ==32094== Releasing lock... [2025-02-06 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:38:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:39:06 [end_date_ymd] => 2025-02-06 22:39:06 [RateCDR] => 1 ) [2025-02-06 22:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:39:06' and `end` < '2025-02-06 22:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:39:20] Production.INFO: count ==872 [2025-02-06 22:39:20] Production.ERROR: pbx CDR StartTime 2025-02-06 19:39:06 - End Time 2025-02-06 22:39:06 [2025-02-06 22:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418149', 'tblTempUsageDetail_20' ) start [2025-02-06 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418149', 'tblTempUsageDetail_20' ) end [2025-02-06 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418149', 'tblTempVendorCDR_20' ) start [2025-02-06 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418149', 'tblTempVendorCDR_20' ) end [2025-02-06 22:39:20] Production.INFO: ProcessCDR(1,14418149,1,1,2) [2025-02-06 22:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418149', 'tblTempUsageDetail_20' ) start [2025-02-06 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418149', 'tblTempUsageDetail_20' ) end [2025-02-06 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:39:23] Production.INFO: ==32174== Releasing lock... [2025-02-06 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:39:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:40:06 [end_date_ymd] => 2025-02-06 22:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 19:40:06' and `end` < '2025-02-06 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-06 22:40:19] Production.INFO: count ==874 [2025-02-06 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:40:06 - End Time 2025-02-06 22:40:06 [2025-02-06 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418155', 'tblTempUsageDetail_20' ) start [2025-02-06 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418155', 'tblTempUsageDetail_20' ) end [2025-02-06 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418155', 'tblTempVendorCDR_20' ) start [2025-02-06 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418155', 'tblTempVendorCDR_20' ) end [2025-02-06 22:40:19] Production.INFO: ProcessCDR(1,14418155,1,1,2) [2025-02-06 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418155', 'tblTempUsageDetail_20' ) start [2025-02-06 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418155', 'tblTempUsageDetail_20' ) end [2025-02-06 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:40:22] Production.INFO: ==32265== Releasing lock... [2025-02-06 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:40:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:41:04 [end_date_ymd] => 2025-02-06 22:41:04 [RateCDR] => 1 ) [2025-02-06 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:41:04' and `end` < '2025-02-06 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:41:19] Production.INFO: count ==885 [2025-02-06 22:41:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:41:04 - End Time 2025-02-06 22:41:04 [2025-02-06 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418160', 'tblTempUsageDetail_20' ) start [2025-02-06 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418160', 'tblTempUsageDetail_20' ) end [2025-02-06 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418160', 'tblTempVendorCDR_20' ) start [2025-02-06 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418160', 'tblTempVendorCDR_20' ) end [2025-02-06 22:41:19] Production.INFO: ProcessCDR(1,14418160,1,1,2) [2025-02-06 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418160', 'tblTempUsageDetail_20' ) start [2025-02-06 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418160', 'tblTempUsageDetail_20' ) end [2025-02-06 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:41:23] Production.INFO: ==32344== Releasing lock... [2025-02-06 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:41:23] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:42:05 [end_date_ymd] => 2025-02-06 22:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:42:05' and `end` < '2025-02-06 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-06 22:42:19] Production.INFO: count ==885 [2025-02-06 22:42:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:42:05 - End Time 2025-02-06 22:42:05 [2025-02-06 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418165', 'tblTempUsageDetail_20' ) start [2025-02-06 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418165', 'tblTempUsageDetail_20' ) end [2025-02-06 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418165', 'tblTempVendorCDR_20' ) start [2025-02-06 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418165', 'tblTempVendorCDR_20' ) end [2025-02-06 22:42:19] Production.INFO: ProcessCDR(1,14418165,1,1,2) [2025-02-06 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418165', 'tblTempUsageDetail_20' ) start [2025-02-06 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418165', 'tblTempUsageDetail_20' ) end [2025-02-06 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:42:22] Production.INFO: ==32425== Releasing lock... [2025-02-06 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:42:22] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:43:05 [end_date_ymd] => 2025-02-06 22:43:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:43:05' and `end` < '2025-02-06 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-06 22:43:18] Production.INFO: count ==885 [2025-02-06 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:43:05 - End Time 2025-02-06 22:43:05 [2025-02-06 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418170', 'tblTempUsageDetail_20' ) start [2025-02-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418170', 'tblTempUsageDetail_20' ) end [2025-02-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418170', 'tblTempVendorCDR_20' ) start [2025-02-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418170', 'tblTempVendorCDR_20' ) end [2025-02-06 22:43:18] Production.INFO: ProcessCDR(1,14418170,1,1,2) [2025-02-06 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418170', 'tblTempUsageDetail_20' ) start [2025-02-06 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418170', 'tblTempUsageDetail_20' ) end [2025-02-06 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:43:21] Production.INFO: ==32511== Releasing lock... [2025-02-06 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:43:21] Production.INFO: 34 MB #Memory Used# [2025-02-06 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:44:05 [end_date_ymd] => 2025-02-06 22:44:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:44:05' and `end` < '2025-02-06 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-06 22:44:18] Production.INFO: count ==886 [2025-02-06 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:44:05 - End Time 2025-02-06 22:44:05 [2025-02-06 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418175', 'tblTempUsageDetail_20' ) start [2025-02-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418175', 'tblTempUsageDetail_20' ) end [2025-02-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418175', 'tblTempVendorCDR_20' ) start [2025-02-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418175', 'tblTempVendorCDR_20' ) end [2025-02-06 22:44:18] Production.INFO: ProcessCDR(1,14418175,1,1,2) [2025-02-06 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418175', 'tblTempUsageDetail_20' ) start [2025-02-06 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418175', 'tblTempUsageDetail_20' ) end [2025-02-06 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:44:22] Production.INFO: ==32593== Releasing lock... [2025-02-06 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:45:05 [end_date_ymd] => 2025-02-06 22:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:45:05' and `end` < '2025-02-06 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-06 22:45:18] Production.INFO: count ==884 [2025-02-06 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:45:05 - End Time 2025-02-06 22:45:05 [2025-02-06 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418180', 'tblTempUsageDetail_20' ) start [2025-02-06 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418180', 'tblTempUsageDetail_20' ) end [2025-02-06 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418180', 'tblTempVendorCDR_20' ) start [2025-02-06 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418180', 'tblTempVendorCDR_20' ) end [2025-02-06 22:45:19] Production.INFO: ProcessCDR(1,14418180,1,1,2) [2025-02-06 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418180', 'tblTempUsageDetail_20' ) start [2025-02-06 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418180', 'tblTempUsageDetail_20' ) end [2025-02-06 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:45:21] Production.INFO: ==32676== Releasing lock... [2025-02-06 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:45:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:46:05 [end_date_ymd] => 2025-02-06 22:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:46:05' and `end` < '2025-02-06 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-06 22:46:18] Production.INFO: count ==886 [2025-02-06 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:46:05 - End Time 2025-02-06 22:46:05 [2025-02-06 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418185', 'tblTempUsageDetail_20' ) start [2025-02-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418185', 'tblTempUsageDetail_20' ) end [2025-02-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418185', 'tblTempVendorCDR_20' ) start [2025-02-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418185', 'tblTempVendorCDR_20' ) end [2025-02-06 22:46:18] Production.INFO: ProcessCDR(1,14418185,1,1,2) [2025-02-06 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418185', 'tblTempUsageDetail_20' ) start [2025-02-06 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418185', 'tblTempUsageDetail_20' ) end [2025-02-06 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:46:21] Production.INFO: ==32756== Releasing lock... [2025-02-06 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:46:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:47:05 [end_date_ymd] => 2025-02-06 22:47:05 [RateCDR] => 1 ) [2025-02-06 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:47:05' and `end` < '2025-02-06 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:47:19] Production.INFO: count ==886 [2025-02-06 22:47:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:47:05 - End Time 2025-02-06 22:47:05 [2025-02-06 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418190', 'tblTempUsageDetail_20' ) start [2025-02-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418190', 'tblTempUsageDetail_20' ) end [2025-02-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418190', 'tblTempVendorCDR_20' ) start [2025-02-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418190', 'tblTempVendorCDR_20' ) end [2025-02-06 22:47:19] Production.INFO: ProcessCDR(1,14418190,1,1,2) [2025-02-06 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418190', 'tblTempUsageDetail_20' ) start [2025-02-06 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418190', 'tblTempUsageDetail_20' ) end [2025-02-06 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:47:22] Production.INFO: ==385== Releasing lock... [2025-02-06 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:48:06 [end_date_ymd] => 2025-02-06 22:48:06 [RateCDR] => 1 ) [2025-02-06 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:48:06' and `end` < '2025-02-06 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:48:20] Production.INFO: count ==889 [2025-02-06 22:48:20] Production.ERROR: pbx CDR StartTime 2025-02-06 19:48:06 - End Time 2025-02-06 22:48:06 [2025-02-06 22:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418195', 'tblTempUsageDetail_20' ) start [2025-02-06 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418195', 'tblTempUsageDetail_20' ) end [2025-02-06 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418195', 'tblTempVendorCDR_20' ) start [2025-02-06 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418195', 'tblTempVendorCDR_20' ) end [2025-02-06 22:48:20] Production.INFO: ProcessCDR(1,14418195,1,1,2) [2025-02-06 22:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418195', 'tblTempUsageDetail_20' ) start [2025-02-06 22:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418195', 'tblTempUsageDetail_20' ) end [2025-02-06 22:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:48:25] Production.INFO: ==467== Releasing lock... [2025-02-06 22:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:48:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:49:05 [end_date_ymd] => 2025-02-06 22:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:49:05' and `end` < '2025-02-06 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-06 22:49:18] Production.INFO: count ==882 [2025-02-06 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:49:05 - End Time 2025-02-06 22:49:05 [2025-02-06 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418200', 'tblTempUsageDetail_20' ) start [2025-02-06 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418200', 'tblTempUsageDetail_20' ) end [2025-02-06 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418200', 'tblTempVendorCDR_20' ) start [2025-02-06 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418200', 'tblTempVendorCDR_20' ) end [2025-02-06 22:49:18] Production.INFO: ProcessCDR(1,14418200,1,1,2) [2025-02-06 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418200', 'tblTempUsageDetail_20' ) start [2025-02-06 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418200', 'tblTempUsageDetail_20' ) end [2025-02-06 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:49:21] Production.INFO: ==555== Releasing lock... [2025-02-06 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:49:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:50:06 [end_date_ymd] => 2025-02-06 22:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 19:50:06' and `end` < '2025-02-06 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-06 22:50:19] Production.INFO: count ==881 [2025-02-06 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:50:06 - End Time 2025-02-06 22:50:06 [2025-02-06 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418206', 'tblTempUsageDetail_20' ) start [2025-02-06 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418206', 'tblTempUsageDetail_20' ) end [2025-02-06 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418206', 'tblTempVendorCDR_20' ) start [2025-02-06 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418206', 'tblTempVendorCDR_20' ) end [2025-02-06 22:50:19] Production.INFO: ProcessCDR(1,14418206,1,1,2) [2025-02-06 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418206', 'tblTempUsageDetail_20' ) start [2025-02-06 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418206', 'tblTempUsageDetail_20' ) end [2025-02-06 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:50:23] Production.INFO: ==645== Releasing lock... [2025-02-06 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:50:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:51:06 [end_date_ymd] => 2025-02-06 22:51:06 [RateCDR] => 1 ) [2025-02-06 22: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-06 19:51:06' and `end` < '2025-02-06 22: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-06 22:51:19] Production.INFO: count ==849 [2025-02-06 22:51:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:51:06 - End Time 2025-02-06 22:51:06 [2025-02-06 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418211', 'tblTempUsageDetail_20' ) start [2025-02-06 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418211', 'tblTempUsageDetail_20' ) end [2025-02-06 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418211', 'tblTempVendorCDR_20' ) start [2025-02-06 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418211', 'tblTempVendorCDR_20' ) end [2025-02-06 22:51:19] Production.INFO: ProcessCDR(1,14418211,1,1,2) [2025-02-06 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418211', 'tblTempUsageDetail_20' ) start [2025-02-06 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418211', 'tblTempUsageDetail_20' ) end [2025-02-06 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:51:22] Production.INFO: ==765== Releasing lock... [2025-02-06 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:51:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:52:05 [end_date_ymd] => 2025-02-06 22:52:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:52:05' and `end` < '2025-02-06 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-06 22:52:18] Production.INFO: count ==845 [2025-02-06 22:52:19] Production.ERROR: pbx CDR StartTime 2025-02-06 19:52:05 - End Time 2025-02-06 22:52:05 [2025-02-06 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418216', 'tblTempUsageDetail_20' ) start [2025-02-06 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418216', 'tblTempUsageDetail_20' ) end [2025-02-06 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418216', 'tblTempVendorCDR_20' ) start [2025-02-06 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418216', 'tblTempVendorCDR_20' ) end [2025-02-06 22:52:19] Production.INFO: ProcessCDR(1,14418216,1,1,2) [2025-02-06 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418216', 'tblTempUsageDetail_20' ) start [2025-02-06 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418216', 'tblTempUsageDetail_20' ) end [2025-02-06 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:52:22] Production.INFO: ==849== Releasing lock... [2025-02-06 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:52:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:53:05 [end_date_ymd] => 2025-02-06 22:53:05 [RateCDR] => 1 ) [2025-02-06 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 19:53:05' and `end` < '2025-02-06 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 22:53:20] Production.INFO: count ==847 [2025-02-06 22:53:20] Production.ERROR: pbx CDR StartTime 2025-02-06 19:53:05 - End Time 2025-02-06 22:53:05 [2025-02-06 22:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418221', 'tblTempUsageDetail_20' ) start [2025-02-06 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418221', 'tblTempUsageDetail_20' ) end [2025-02-06 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418221', 'tblTempVendorCDR_20' ) start [2025-02-06 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418221', 'tblTempVendorCDR_20' ) end [2025-02-06 22:53:20] Production.INFO: ProcessCDR(1,14418221,1,1,2) [2025-02-06 22:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418221', 'tblTempUsageDetail_20' ) start [2025-02-06 22:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418221', 'tblTempUsageDetail_20' ) end [2025-02-06 22:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:53:25] Production.INFO: ==965== Releasing lock... [2025-02-06 22:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:53:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:54:05 [end_date_ymd] => 2025-02-06 22:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:54:05' and `end` < '2025-02-06 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-06 22:54:18] Production.INFO: count ==847 [2025-02-06 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:54:05 - End Time 2025-02-06 22:54:05 [2025-02-06 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418226', 'tblTempUsageDetail_20' ) start [2025-02-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418226', 'tblTempUsageDetail_20' ) end [2025-02-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418226', 'tblTempVendorCDR_20' ) start [2025-02-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418226', 'tblTempVendorCDR_20' ) end [2025-02-06 22:54:18] Production.INFO: ProcessCDR(1,14418226,1,1,2) [2025-02-06 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418226', 'tblTempUsageDetail_20' ) start [2025-02-06 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418226', 'tblTempUsageDetail_20' ) end [2025-02-06 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:54:21] Production.INFO: ==1049== Releasing lock... [2025-02-06 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:55:05 [end_date_ymd] => 2025-02-06 22:55:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:55:05' and `end` < '2025-02-06 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-06 22:55:18] Production.INFO: count ==850 [2025-02-06 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:55:05 - End Time 2025-02-06 22:55:05 [2025-02-06 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418231', 'tblTempUsageDetail_20' ) start [2025-02-06 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418231', 'tblTempUsageDetail_20' ) end [2025-02-06 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418231', 'tblTempVendorCDR_20' ) start [2025-02-06 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418231', 'tblTempVendorCDR_20' ) end [2025-02-06 22:55:18] Production.INFO: ProcessCDR(1,14418231,1,1,2) [2025-02-06 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418231', 'tblTempUsageDetail_20' ) start [2025-02-06 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418231', 'tblTempUsageDetail_20' ) end [2025-02-06 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:55:21] Production.INFO: ==1134== Releasing lock... [2025-02-06 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:56:05 [end_date_ymd] => 2025-02-06 22:56:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:56:05' and `end` < '2025-02-06 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-06 22:56:18] Production.INFO: count ==851 [2025-02-06 22:56:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:56:05 - End Time 2025-02-06 22:56:05 [2025-02-06 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418236', 'tblTempUsageDetail_20' ) start [2025-02-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418236', 'tblTempUsageDetail_20' ) end [2025-02-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418236', 'tblTempVendorCDR_20' ) start [2025-02-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418236', 'tblTempVendorCDR_20' ) end [2025-02-06 22:56:18] Production.INFO: ProcessCDR(1,14418236,1,1,2) [2025-02-06 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418236', 'tblTempUsageDetail_20' ) start [2025-02-06 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418236', 'tblTempUsageDetail_20' ) end [2025-02-06 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:56:21] Production.INFO: ==1219== Releasing lock... [2025-02-06 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:56:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:57:05 [end_date_ymd] => 2025-02-06 22:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:57:05' and `end` < '2025-02-06 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-06 22:57:18] Production.INFO: count ==854 [2025-02-06 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:57:05 - End Time 2025-02-06 22:57:05 [2025-02-06 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418241', 'tblTempUsageDetail_20' ) start [2025-02-06 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418241', 'tblTempUsageDetail_20' ) end [2025-02-06 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418241', 'tblTempVendorCDR_20' ) start [2025-02-06 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418241', 'tblTempVendorCDR_20' ) end [2025-02-06 22:57:19] Production.INFO: ProcessCDR(1,14418241,1,1,2) [2025-02-06 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418241', 'tblTempUsageDetail_20' ) start [2025-02-06 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418241', 'tblTempUsageDetail_20' ) end [2025-02-06 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:57:23] Production.INFO: ==1320== Releasing lock... [2025-02-06 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:58:05 [end_date_ymd] => 2025-02-06 22:58:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:58:05' and `end` < '2025-02-06 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-06 22:58:18] Production.INFO: count ==854 [2025-02-06 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:58:05 - End Time 2025-02-06 22:58:05 [2025-02-06 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418246', 'tblTempUsageDetail_20' ) start [2025-02-06 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418246', 'tblTempUsageDetail_20' ) end [2025-02-06 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418246', 'tblTempVendorCDR_20' ) start [2025-02-06 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418246', 'tblTempVendorCDR_20' ) end [2025-02-06 22:58:18] Production.INFO: ProcessCDR(1,14418246,1,1,2) [2025-02-06 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418246', 'tblTempUsageDetail_20' ) start [2025-02-06 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418246', 'tblTempUsageDetail_20' ) end [2025-02-06 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:58:22] Production.INFO: ==1398== Releasing lock... [2025-02-06 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:58:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 19:59:05 [end_date_ymd] => 2025-02-06 22:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 19:59:05' and `end` < '2025-02-06 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-06 22:59:18] Production.INFO: count ==848 [2025-02-06 22:59:18] Production.ERROR: pbx CDR StartTime 2025-02-06 19:59:05 - End Time 2025-02-06 22:59:05 [2025-02-06 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418251', 'tblTempUsageDetail_20' ) start [2025-02-06 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418251', 'tblTempUsageDetail_20' ) end [2025-02-06 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418251', 'tblTempVendorCDR_20' ) start [2025-02-06 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418251', 'tblTempVendorCDR_20' ) end [2025-02-06 22:59:18] Production.INFO: ProcessCDR(1,14418251,1,1,2) [2025-02-06 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418251', 'tblTempUsageDetail_20' ) start [2025-02-06 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418251', 'tblTempUsageDetail_20' ) end [2025-02-06 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 22:59:21] Production.INFO: ==1481== Releasing lock... [2025-02-06 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 22:59:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:00:06 [end_date_ymd] => 2025-02-06 23:00:06 [RateCDR] => 1 ) [2025-02-06 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-06 20:00:06' and `end` < '2025-02-06 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-06 23:00:19] Production.INFO: count ==850 [2025-02-06 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:00:06 - End Time 2025-02-06 23:00:06 [2025-02-06 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418256', 'tblTempUsageDetail_20' ) start [2025-02-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418256', 'tblTempUsageDetail_20' ) end [2025-02-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418256', 'tblTempVendorCDR_20' ) start [2025-02-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418256', 'tblTempVendorCDR_20' ) end [2025-02-06 23:00:19] Production.INFO: ProcessCDR(1,14418256,1,1,2) [2025-02-06 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418256', 'tblTempUsageDetail_20' ) start [2025-02-06 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418256', 'tblTempUsageDetail_20' ) end [2025-02-06 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:00:22] Production.INFO: ==1599== Releasing lock... [2025-02-06 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:00:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:01:05 [end_date_ymd] => 2025-02-06 23:01:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:01:05' and `end` < '2025-02-06 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-06 23:01:18] Production.INFO: count ==840 [2025-02-06 23:01:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:01:05 - End Time 2025-02-06 23:01:05 [2025-02-06 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418262', 'tblTempUsageDetail_20' ) start [2025-02-06 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418262', 'tblTempUsageDetail_20' ) end [2025-02-06 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418262', 'tblTempVendorCDR_20' ) start [2025-02-06 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418262', 'tblTempVendorCDR_20' ) end [2025-02-06 23:01:19] Production.INFO: ProcessCDR(1,14418262,1,1,2) [2025-02-06 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418262', 'tblTempUsageDetail_20' ) start [2025-02-06 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418262', 'tblTempUsageDetail_20' ) end [2025-02-06 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:01:22] Production.INFO: ==1773== Releasing lock... [2025-02-06 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:01:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:02:05 [end_date_ymd] => 2025-02-06 23:02:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:02:05' and `end` < '2025-02-06 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-06 23:02:19] Production.INFO: count ==843 [2025-02-06 23:02:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:02:05 - End Time 2025-02-06 23:02:05 [2025-02-06 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418267', 'tblTempUsageDetail_20' ) start [2025-02-06 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418267', 'tblTempUsageDetail_20' ) end [2025-02-06 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418267', 'tblTempVendorCDR_20' ) start [2025-02-06 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418267', 'tblTempVendorCDR_20' ) end [2025-02-06 23:02:19] Production.INFO: ProcessCDR(1,14418267,1,1,2) [2025-02-06 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418267', 'tblTempUsageDetail_20' ) start [2025-02-06 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418267', 'tblTempUsageDetail_20' ) end [2025-02-06 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:02:23] Production.INFO: ==1861== Releasing lock... [2025-02-06 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:02:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:03:05 [end_date_ymd] => 2025-02-06 23:03:05 [RateCDR] => 1 ) [2025-02-06 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:03:05' and `end` < '2025-02-06 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:03:18] Production.INFO: count ==843 [2025-02-06 23:03:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:03:05 - End Time 2025-02-06 23:03:05 [2025-02-06 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418272', 'tblTempUsageDetail_20' ) start [2025-02-06 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418272', 'tblTempUsageDetail_20' ) end [2025-02-06 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418272', 'tblTempVendorCDR_20' ) start [2025-02-06 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418272', 'tblTempVendorCDR_20' ) end [2025-02-06 23:03:19] Production.INFO: ProcessCDR(1,14418272,1,1,2) [2025-02-06 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418272', 'tblTempUsageDetail_20' ) start [2025-02-06 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418272', 'tblTempUsageDetail_20' ) end [2025-02-06 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:03:22] Production.INFO: ==1947== Releasing lock... [2025-02-06 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:03:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:04:05 [end_date_ymd] => 2025-02-06 23:04:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:04:05' and `end` < '2025-02-06 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-06 23:04:18] Production.INFO: count ==840 [2025-02-06 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:04:05 - End Time 2025-02-06 23:04:05 [2025-02-06 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418277', 'tblTempUsageDetail_20' ) start [2025-02-06 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418277', 'tblTempUsageDetail_20' ) end [2025-02-06 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418277', 'tblTempVendorCDR_20' ) start [2025-02-06 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418277', 'tblTempVendorCDR_20' ) end [2025-02-06 23:04:18] Production.INFO: ProcessCDR(1,14418277,1,1,2) [2025-02-06 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418277', 'tblTempUsageDetail_20' ) start [2025-02-06 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418277', 'tblTempUsageDetail_20' ) end [2025-02-06 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:04:21] Production.INFO: ==2028== Releasing lock... [2025-02-06 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:04:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:05:06 [end_date_ymd] => 2025-02-06 23:05:06 [RateCDR] => 1 ) [2025-02-06 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:05:06' and `end` < '2025-02-06 23:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:05:19] Production.INFO: count ==840 [2025-02-06 23:05:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:05:06 - End Time 2025-02-06 23:05:06 [2025-02-06 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418282', 'tblTempUsageDetail_20' ) start [2025-02-06 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418282', 'tblTempUsageDetail_20' ) end [2025-02-06 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418282', 'tblTempVendorCDR_20' ) start [2025-02-06 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418282', 'tblTempVendorCDR_20' ) end [2025-02-06 23:05:19] Production.INFO: ProcessCDR(1,14418282,1,1,2) [2025-02-06 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418282', 'tblTempUsageDetail_20' ) start [2025-02-06 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418282', 'tblTempUsageDetail_20' ) end [2025-02-06 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:05:22] Production.INFO: ==2196== Releasing lock... [2025-02-06 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:06:05 [end_date_ymd] => 2025-02-06 23:06:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:06:05' and `end` < '2025-02-06 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-06 23:06:18] Production.INFO: count ==841 [2025-02-06 23:06:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:06:05 - End Time 2025-02-06 23:06:05 [2025-02-06 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418287', 'tblTempUsageDetail_20' ) start [2025-02-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418287', 'tblTempUsageDetail_20' ) end [2025-02-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418287', 'tblTempVendorCDR_20' ) start [2025-02-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418287', 'tblTempVendorCDR_20' ) end [2025-02-06 23:06:18] Production.INFO: ProcessCDR(1,14418287,1,1,2) [2025-02-06 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418287', 'tblTempUsageDetail_20' ) start [2025-02-06 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418287', 'tblTempUsageDetail_20' ) end [2025-02-06 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:06:23] Production.INFO: ==2277== Releasing lock... [2025-02-06 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:06:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:07:05 [end_date_ymd] => 2025-02-06 23:07:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:07:05' and `end` < '2025-02-06 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-06 23:07:19] Production.INFO: count ==843 [2025-02-06 23:07:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:07:05 - End Time 2025-02-06 23:07:05 [2025-02-06 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418292', 'tblTempUsageDetail_20' ) start [2025-02-06 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418292', 'tblTempUsageDetail_20' ) end [2025-02-06 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418292', 'tblTempVendorCDR_20' ) start [2025-02-06 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418292', 'tblTempVendorCDR_20' ) end [2025-02-06 23:07:19] Production.INFO: ProcessCDR(1,14418292,1,1,2) [2025-02-06 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418292', 'tblTempUsageDetail_20' ) start [2025-02-06 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418292', 'tblTempUsageDetail_20' ) end [2025-02-06 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:07:22] Production.INFO: ==2356== Releasing lock... [2025-02-06 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:07:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:08:05 [end_date_ymd] => 2025-02-06 23:08:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:08:05' and `end` < '2025-02-06 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-06 23:08:18] Production.INFO: count ==842 [2025-02-06 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:08:05 - End Time 2025-02-06 23:08:05 [2025-02-06 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418297', 'tblTempUsageDetail_20' ) start [2025-02-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418297', 'tblTempUsageDetail_20' ) end [2025-02-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418297', 'tblTempVendorCDR_20' ) start [2025-02-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418297', 'tblTempVendorCDR_20' ) end [2025-02-06 23:08:18] Production.INFO: ProcessCDR(1,14418297,1,1,2) [2025-02-06 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418297', 'tblTempUsageDetail_20' ) start [2025-02-06 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418297', 'tblTempUsageDetail_20' ) end [2025-02-06 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:08:21] Production.INFO: ==2553== Releasing lock... [2025-02-06 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:09:05 [end_date_ymd] => 2025-02-06 23:09:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:09:05' and `end` < '2025-02-06 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-06 23:09:18] Production.INFO: count ==841 [2025-02-06 23:09:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:09:05 - End Time 2025-02-06 23:09:05 [2025-02-06 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418302', 'tblTempUsageDetail_20' ) start [2025-02-06 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418302', 'tblTempUsageDetail_20' ) end [2025-02-06 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418302', 'tblTempVendorCDR_20' ) start [2025-02-06 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418302', 'tblTempVendorCDR_20' ) end [2025-02-06 23:09:19] Production.INFO: ProcessCDR(1,14418302,1,1,2) [2025-02-06 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418302', 'tblTempUsageDetail_20' ) start [2025-02-06 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418302', 'tblTempUsageDetail_20' ) end [2025-02-06 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:09:22] Production.INFO: ==2630== Releasing lock... [2025-02-06 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:09:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:10:06 [end_date_ymd] => 2025-02-06 23:10:06 [RateCDR] => 1 ) [2025-02-06 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-06 20:10:06' and `end` < '2025-02-06 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-06 23:10:19] Production.INFO: count ==838 [2025-02-06 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:10:06 - End Time 2025-02-06 23:10:06 [2025-02-06 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418308', 'tblTempUsageDetail_20' ) start [2025-02-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418308', 'tblTempUsageDetail_20' ) end [2025-02-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418308', 'tblTempVendorCDR_20' ) start [2025-02-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418308', 'tblTempVendorCDR_20' ) end [2025-02-06 23:10:19] Production.INFO: ProcessCDR(1,14418308,1,1,2) [2025-02-06 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418308', 'tblTempUsageDetail_20' ) start [2025-02-06 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418308', 'tblTempUsageDetail_20' ) end [2025-02-06 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:10:22] Production.INFO: ==2711== Releasing lock... [2025-02-06 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:11:06 [end_date_ymd] => 2025-02-06 23:11:06 [RateCDR] => 1 ) [2025-02-06 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:11:06' and `end` < '2025-02-06 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:11:19] Production.INFO: count ==830 [2025-02-06 23:11:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:11:06 - End Time 2025-02-06 23:11:06 [2025-02-06 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418313', 'tblTempUsageDetail_20' ) start [2025-02-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418313', 'tblTempUsageDetail_20' ) end [2025-02-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418313', 'tblTempVendorCDR_20' ) start [2025-02-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418313', 'tblTempVendorCDR_20' ) end [2025-02-06 23:11:19] Production.INFO: ProcessCDR(1,14418313,1,1,2) [2025-02-06 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418313', 'tblTempUsageDetail_20' ) start [2025-02-06 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418313', 'tblTempUsageDetail_20' ) end [2025-02-06 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:11:22] Production.INFO: ==2789== Releasing lock... [2025-02-06 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:11:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:12:04 [end_date_ymd] => 2025-02-06 23:12:04 [RateCDR] => 1 ) [2025-02-06 23:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:12:04' and `end` < '2025-02-06 23:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:12:18] Production.INFO: count ==835 [2025-02-06 23:12:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:12:04 - End Time 2025-02-06 23:12:04 [2025-02-06 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418318', 'tblTempUsageDetail_20' ) start [2025-02-06 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418318', 'tblTempUsageDetail_20' ) end [2025-02-06 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418318', 'tblTempVendorCDR_20' ) start [2025-02-06 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418318', 'tblTempVendorCDR_20' ) end [2025-02-06 23:12:19] Production.INFO: ProcessCDR(1,14418318,1,1,2) [2025-02-06 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418318', 'tblTempUsageDetail_20' ) start [2025-02-06 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418318', 'tblTempUsageDetail_20' ) end [2025-02-06 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:12:23] Production.INFO: ==2959== Releasing lock... [2025-02-06 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:12:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:13:05 [end_date_ymd] => 2025-02-06 23:13:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:13:05' and `end` < '2025-02-06 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-06 23:13:19] Production.INFO: count ==833 [2025-02-06 23:13:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:13:05 - End Time 2025-02-06 23:13:05 [2025-02-06 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418323', 'tblTempUsageDetail_20' ) start [2025-02-06 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418323', 'tblTempUsageDetail_20' ) end [2025-02-06 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418323', 'tblTempVendorCDR_20' ) start [2025-02-06 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418323', 'tblTempVendorCDR_20' ) end [2025-02-06 23:13:19] Production.INFO: ProcessCDR(1,14418323,1,1,2) [2025-02-06 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418323', 'tblTempUsageDetail_20' ) start [2025-02-06 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418323', 'tblTempUsageDetail_20' ) end [2025-02-06 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:13:22] Production.INFO: ==3034== Releasing lock... [2025-02-06 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:13:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:14:05 [end_date_ymd] => 2025-02-06 23:14:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:14:05' and `end` < '2025-02-06 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-06 23:14:18] Production.INFO: count ==835 [2025-02-06 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:14:05 - End Time 2025-02-06 23:14:05 [2025-02-06 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418328', 'tblTempUsageDetail_20' ) start [2025-02-06 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418328', 'tblTempUsageDetail_20' ) end [2025-02-06 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418328', 'tblTempVendorCDR_20' ) start [2025-02-06 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418328', 'tblTempVendorCDR_20' ) end [2025-02-06 23:14:18] Production.INFO: ProcessCDR(1,14418328,1,1,2) [2025-02-06 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418328', 'tblTempUsageDetail_20' ) start [2025-02-06 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418328', 'tblTempUsageDetail_20' ) end [2025-02-06 23:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:14:23] Production.INFO: ==3118== Releasing lock... [2025-02-06 23:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:14:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:15:05 [end_date_ymd] => 2025-02-06 23:15:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:15:05' and `end` < '2025-02-06 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-06 23:15:19] Production.INFO: count ==845 [2025-02-06 23:15:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:15:05 - End Time 2025-02-06 23:15:05 [2025-02-06 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418333', 'tblTempUsageDetail_20' ) start [2025-02-06 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418333', 'tblTempUsageDetail_20' ) end [2025-02-06 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418333', 'tblTempVendorCDR_20' ) start [2025-02-06 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418333', 'tblTempVendorCDR_20' ) end [2025-02-06 23:15:19] Production.INFO: ProcessCDR(1,14418333,1,1,2) [2025-02-06 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418333', 'tblTempUsageDetail_20' ) start [2025-02-06 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418333', 'tblTempUsageDetail_20' ) end [2025-02-06 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:15:23] Production.INFO: ==3273== Releasing lock... [2025-02-06 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:15:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:16:06 [end_date_ymd] => 2025-02-06 23:16:06 [RateCDR] => 1 ) [2025-02-06 23: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-06 20:16:06' and `end` < '2025-02-06 23: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-06 23:16:19] Production.INFO: count ==832 [2025-02-06 23:16:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:16:06 - End Time 2025-02-06 23:16:06 [2025-02-06 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418338', 'tblTempUsageDetail_20' ) start [2025-02-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418338', 'tblTempUsageDetail_20' ) end [2025-02-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418338', 'tblTempVendorCDR_20' ) start [2025-02-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418338', 'tblTempVendorCDR_20' ) end [2025-02-06 23:16:19] Production.INFO: ProcessCDR(1,14418338,1,1,2) [2025-02-06 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418338', 'tblTempUsageDetail_20' ) start [2025-02-06 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418338', 'tblTempUsageDetail_20' ) end [2025-02-06 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:16:22] Production.INFO: ==3357== Releasing lock... [2025-02-06 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:17:05 [end_date_ymd] => 2025-02-06 23:17:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:17:05' and `end` < '2025-02-06 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-06 23:17:19] Production.INFO: count ==831 [2025-02-06 23:17:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:17:05 - End Time 2025-02-06 23:17:05 [2025-02-06 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418343', 'tblTempUsageDetail_20' ) start [2025-02-06 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418343', 'tblTempUsageDetail_20' ) end [2025-02-06 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418343', 'tblTempVendorCDR_20' ) start [2025-02-06 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418343', 'tblTempVendorCDR_20' ) end [2025-02-06 23:17:19] Production.INFO: ProcessCDR(1,14418343,1,1,2) [2025-02-06 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418343', 'tblTempUsageDetail_20' ) start [2025-02-06 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418343', 'tblTempUsageDetail_20' ) end [2025-02-06 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:17:22] Production.INFO: ==3438== Releasing lock... [2025-02-06 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:17:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:18:05 [end_date_ymd] => 2025-02-06 23:18:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:18:05' and `end` < '2025-02-06 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-06 23:18:18] Production.INFO: count ==830 [2025-02-06 23:18:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:18:05 - End Time 2025-02-06 23:18:05 [2025-02-06 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418348', 'tblTempUsageDetail_20' ) start [2025-02-06 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418348', 'tblTempUsageDetail_20' ) end [2025-02-06 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418348', 'tblTempVendorCDR_20' ) start [2025-02-06 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418348', 'tblTempVendorCDR_20' ) end [2025-02-06 23:18:19] Production.INFO: ProcessCDR(1,14418348,1,1,2) [2025-02-06 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418348', 'tblTempUsageDetail_20' ) start [2025-02-06 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418348', 'tblTempUsageDetail_20' ) end [2025-02-06 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:18:22] Production.INFO: ==3522== Releasing lock... [2025-02-06 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:19:05 [end_date_ymd] => 2025-02-06 23:19:05 [RateCDR] => 1 ) [2025-02-06 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:19:05' and `end` < '2025-02-06 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:19:19] Production.INFO: count ==827 [2025-02-06 23:19:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:19:05 - End Time 2025-02-06 23:19:05 [2025-02-06 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418353', 'tblTempUsageDetail_20' ) start [2025-02-06 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418353', 'tblTempUsageDetail_20' ) end [2025-02-06 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418353', 'tblTempVendorCDR_20' ) start [2025-02-06 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418353', 'tblTempVendorCDR_20' ) end [2025-02-06 23:19:19] Production.INFO: ProcessCDR(1,14418353,1,1,2) [2025-02-06 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418353', 'tblTempUsageDetail_20' ) start [2025-02-06 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418353', 'tblTempUsageDetail_20' ) end [2025-02-06 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:19:22] Production.INFO: ==3604== Releasing lock... [2025-02-06 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:19:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:20:06 [end_date_ymd] => 2025-02-06 23:20:06 [RateCDR] => 1 ) [2025-02-06 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:20:06' and `end` < '2025-02-06 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:20:19] Production.INFO: count ==828 [2025-02-06 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:20:06 - End Time 2025-02-06 23:20:06 [2025-02-06 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418359', 'tblTempUsageDetail_20' ) start [2025-02-06 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418359', 'tblTempUsageDetail_20' ) end [2025-02-06 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418359', 'tblTempVendorCDR_20' ) start [2025-02-06 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418359', 'tblTempVendorCDR_20' ) end [2025-02-06 23:20:19] Production.INFO: ProcessCDR(1,14418359,1,1,2) [2025-02-06 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418359', 'tblTempUsageDetail_20' ) start [2025-02-06 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418359', 'tblTempUsageDetail_20' ) end [2025-02-06 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:20:22] Production.INFO: ==3678== Releasing lock... [2025-02-06 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:21:04 [end_date_ymd] => 2025-02-06 23:21:04 [RateCDR] => 1 ) [2025-02-06 23:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:21:04' and `end` < '2025-02-06 23:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:21:17] Production.INFO: count ==833 [2025-02-06 23:21:17] Production.ERROR: pbx CDR StartTime 2025-02-06 20:21:04 - End Time 2025-02-06 23:21:04 [2025-02-06 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418364', 'tblTempUsageDetail_20' ) start [2025-02-06 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418364', 'tblTempUsageDetail_20' ) end [2025-02-06 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418364', 'tblTempVendorCDR_20' ) start [2025-02-06 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418364', 'tblTempVendorCDR_20' ) end [2025-02-06 23:21:17] Production.INFO: ProcessCDR(1,14418364,1,1,2) [2025-02-06 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418364', 'tblTempUsageDetail_20' ) start [2025-02-06 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418364', 'tblTempUsageDetail_20' ) end [2025-02-06 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:21:20] Production.INFO: ==3753== Releasing lock... [2025-02-06 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:21:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:22:05 [end_date_ymd] => 2025-02-06 23:22:05 [RateCDR] => 1 ) [2025-02-06 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:22:05' and `end` < '2025-02-06 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:22:18] Production.INFO: count ==832 [2025-02-06 23:22:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:22:05 - End Time 2025-02-06 23:22:05 [2025-02-06 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418369', 'tblTempUsageDetail_20' ) start [2025-02-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418369', 'tblTempUsageDetail_20' ) end [2025-02-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418369', 'tblTempVendorCDR_20' ) start [2025-02-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418369', 'tblTempVendorCDR_20' ) end [2025-02-06 23:22:18] Production.INFO: ProcessCDR(1,14418369,1,1,2) [2025-02-06 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418369', 'tblTempUsageDetail_20' ) start [2025-02-06 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418369', 'tblTempUsageDetail_20' ) end [2025-02-06 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:22:21] Production.INFO: ==3825== Releasing lock... [2025-02-06 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:22:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:23:06 [end_date_ymd] => 2025-02-06 23:23:06 [RateCDR] => 1 ) [2025-02-06 23:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:23:06' and `end` < '2025-02-06 23:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:23:20] Production.INFO: count ==831 [2025-02-06 23:23:20] Production.ERROR: pbx CDR StartTime 2025-02-06 20:23:06 - End Time 2025-02-06 23:23:06 [2025-02-06 23:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418374', 'tblTempUsageDetail_20' ) start [2025-02-06 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418374', 'tblTempUsageDetail_20' ) end [2025-02-06 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418374', 'tblTempVendorCDR_20' ) start [2025-02-06 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418374', 'tblTempVendorCDR_20' ) end [2025-02-06 23:23:20] Production.INFO: ProcessCDR(1,14418374,1,1,2) [2025-02-06 23:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418374', 'tblTempUsageDetail_20' ) start [2025-02-06 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418374', 'tblTempUsageDetail_20' ) end [2025-02-06 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:23:23] Production.INFO: ==3898== Releasing lock... [2025-02-06 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:23:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:24:05 [end_date_ymd] => 2025-02-06 23:24:05 [RateCDR] => 1 ) [2025-02-06 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:24:05' and `end` < '2025-02-06 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:24:18] Production.INFO: count ==831 [2025-02-06 23:24:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:24:05 - End Time 2025-02-06 23:24:05 [2025-02-06 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418379', 'tblTempUsageDetail_20' ) start [2025-02-06 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418379', 'tblTempUsageDetail_20' ) end [2025-02-06 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418379', 'tblTempVendorCDR_20' ) start [2025-02-06 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418379', 'tblTempVendorCDR_20' ) end [2025-02-06 23:24:18] Production.INFO: ProcessCDR(1,14418379,1,1,2) [2025-02-06 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418379', 'tblTempUsageDetail_20' ) start [2025-02-06 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418379', 'tblTempUsageDetail_20' ) end [2025-02-06 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:24:22] Production.INFO: ==4010== Releasing lock... [2025-02-06 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:24:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-06 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:25:05 [end_date_ymd] => 2025-02-06 23:25:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:25:05' and `end` < '2025-02-06 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-06 23:25:18] Production.INFO: count ==834 [2025-02-06 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:25:05 - End Time 2025-02-06 23:25:05 [2025-02-06 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418384', 'tblTempUsageDetail_20' ) start [2025-02-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418384', 'tblTempUsageDetail_20' ) end [2025-02-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418384', 'tblTempVendorCDR_20' ) start [2025-02-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418384', 'tblTempVendorCDR_20' ) end [2025-02-06 23:25:18] Production.INFO: ProcessCDR(1,14418384,1,1,2) [2025-02-06 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418384', 'tblTempUsageDetail_20' ) start [2025-02-06 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418384', 'tblTempUsageDetail_20' ) end [2025-02-06 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:25:22] Production.INFO: ==4082== Releasing lock... [2025-02-06 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:25:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:26:05 [end_date_ymd] => 2025-02-06 23:26:05 [RateCDR] => 1 ) [2025-02-06 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:26:05' and `end` < '2025-02-06 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:26:19] Production.INFO: count ==824 [2025-02-06 23:26:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:26:05 - End Time 2025-02-06 23:26:05 [2025-02-06 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418389', 'tblTempUsageDetail_20' ) start [2025-02-06 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418389', 'tblTempUsageDetail_20' ) end [2025-02-06 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418389', 'tblTempVendorCDR_20' ) start [2025-02-06 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418389', 'tblTempVendorCDR_20' ) end [2025-02-06 23:26:19] Production.INFO: ProcessCDR(1,14418389,1,1,2) [2025-02-06 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418389', 'tblTempUsageDetail_20' ) start [2025-02-06 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418389', 'tblTempUsageDetail_20' ) end [2025-02-06 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:26:22] Production.INFO: ==4155== Releasing lock... [2025-02-06 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:26:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:27:05 [end_date_ymd] => 2025-02-06 23:27:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:27:05' and `end` < '2025-02-06 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-06 23:27:19] Production.INFO: count ==823 [2025-02-06 23:27:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:27:05 - End Time 2025-02-06 23:27:05 [2025-02-06 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418394', 'tblTempUsageDetail_20' ) start [2025-02-06 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418394', 'tblTempUsageDetail_20' ) end [2025-02-06 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418394', 'tblTempVendorCDR_20' ) start [2025-02-06 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418394', 'tblTempVendorCDR_20' ) end [2025-02-06 23:27:19] Production.INFO: ProcessCDR(1,14418394,1,1,2) [2025-02-06 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418394', 'tblTempUsageDetail_20' ) start [2025-02-06 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418394', 'tblTempUsageDetail_20' ) end [2025-02-06 23:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:27:23] Production.INFO: ==4225== Releasing lock... [2025-02-06 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:27:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:28:05 [end_date_ymd] => 2025-02-06 23:28:05 [RateCDR] => 1 ) [2025-02-06 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:28:05' and `end` < '2025-02-06 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:28:18] Production.INFO: count ==823 [2025-02-06 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:28:05 - End Time 2025-02-06 23:28:05 [2025-02-06 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418399', 'tblTempUsageDetail_20' ) start [2025-02-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418399', 'tblTempUsageDetail_20' ) end [2025-02-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418399', 'tblTempVendorCDR_20' ) start [2025-02-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418399', 'tblTempVendorCDR_20' ) end [2025-02-06 23:28:18] Production.INFO: ProcessCDR(1,14418399,1,1,2) [2025-02-06 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418399', 'tblTempUsageDetail_20' ) start [2025-02-06 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418399', 'tblTempUsageDetail_20' ) end [2025-02-06 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:28:21] Production.INFO: ==4300== Releasing lock... [2025-02-06 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:29:05 [end_date_ymd] => 2025-02-06 23:29:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:29:05' and `end` < '2025-02-06 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-06 23:29:19] Production.INFO: count ==820 [2025-02-06 23:29:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:29:05 - End Time 2025-02-06 23:29:05 [2025-02-06 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418404', 'tblTempUsageDetail_20' ) start [2025-02-06 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418404', 'tblTempUsageDetail_20' ) end [2025-02-06 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418404', 'tblTempVendorCDR_20' ) start [2025-02-06 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418404', 'tblTempVendorCDR_20' ) end [2025-02-06 23:29:19] Production.INFO: ProcessCDR(1,14418404,1,1,2) [2025-02-06 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418404', 'tblTempUsageDetail_20' ) start [2025-02-06 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418404', 'tblTempUsageDetail_20' ) end [2025-02-06 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:29:22] Production.INFO: ==4372== Releasing lock... [2025-02-06 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:29:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:30:05 [end_date_ymd] => 2025-02-06 23:30:05 [RateCDR] => 1 ) [2025-02-06 23: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-06 20:30:05' and `end` < '2025-02-06 23: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-06 23:30:18] Production.INFO: count ==819 [2025-02-06 23:30:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:30:05 - End Time 2025-02-06 23:30:05 [2025-02-06 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418409', 'tblTempUsageDetail_20' ) start [2025-02-06 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418409', 'tblTempUsageDetail_20' ) end [2025-02-06 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418409', 'tblTempVendorCDR_20' ) start [2025-02-06 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418409', 'tblTempVendorCDR_20' ) end [2025-02-06 23:30:18] Production.INFO: ProcessCDR(1,14418409,1,1,2) [2025-02-06 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418409', 'tblTempUsageDetail_20' ) start [2025-02-06 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418409', 'tblTempUsageDetail_20' ) end [2025-02-06 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:30:22] Production.INFO: ==4444== Releasing lock... [2025-02-06 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:30:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:31:05 [end_date_ymd] => 2025-02-06 23:31:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:31:05' and `end` < '2025-02-06 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-06 23:31:19] Production.INFO: count ==797 [2025-02-06 23:31:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:31:05 - End Time 2025-02-06 23:31:05 [2025-02-06 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418415', 'tblTempUsageDetail_20' ) start [2025-02-06 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418415', 'tblTempUsageDetail_20' ) end [2025-02-06 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418415', 'tblTempVendorCDR_20' ) start [2025-02-06 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418415', 'tblTempVendorCDR_20' ) end [2025-02-06 23:31:19] Production.INFO: ProcessCDR(1,14418415,1,1,2) [2025-02-06 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418415', 'tblTempUsageDetail_20' ) start [2025-02-06 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418415', 'tblTempUsageDetail_20' ) end [2025-02-06 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:31:22] Production.INFO: ==4523== Releasing lock... [2025-02-06 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:31:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:32:06 [end_date_ymd] => 2025-02-06 23:32:06 [RateCDR] => 1 ) [2025-02-06 23: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-06 20:32:06' and `end` < '2025-02-06 23: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-06 23:32:20] Production.INFO: count ==800 [2025-02-06 23:32:20] Production.ERROR: pbx CDR StartTime 2025-02-06 20:32:06 - End Time 2025-02-06 23:32:06 [2025-02-06 23:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418420', 'tblTempUsageDetail_20' ) start [2025-02-06 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418420', 'tblTempUsageDetail_20' ) end [2025-02-06 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418420', 'tblTempVendorCDR_20' ) start [2025-02-06 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418420', 'tblTempVendorCDR_20' ) end [2025-02-06 23:32:20] Production.INFO: ProcessCDR(1,14418420,1,1,2) [2025-02-06 23:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418420', 'tblTempUsageDetail_20' ) start [2025-02-06 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418420', 'tblTempUsageDetail_20' ) end [2025-02-06 23:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:32:24] Production.INFO: ==4603== Releasing lock... [2025-02-06 23:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:32:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:33:05 [end_date_ymd] => 2025-02-06 23:33:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:33:05' and `end` < '2025-02-06 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-06 23:33:20] Production.INFO: count ==800 [2025-02-06 23:33:20] Production.ERROR: pbx CDR StartTime 2025-02-06 20:33:05 - End Time 2025-02-06 23:33:05 [2025-02-06 23:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418425', 'tblTempUsageDetail_20' ) start [2025-02-06 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418425', 'tblTempUsageDetail_20' ) end [2025-02-06 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418425', 'tblTempVendorCDR_20' ) start [2025-02-06 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418425', 'tblTempVendorCDR_20' ) end [2025-02-06 23:33:20] Production.INFO: ProcessCDR(1,14418425,1,1,2) [2025-02-06 23:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418425', 'tblTempUsageDetail_20' ) start [2025-02-06 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418425', 'tblTempUsageDetail_20' ) end [2025-02-06 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:33:23] Production.INFO: ==4676== Releasing lock... [2025-02-06 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:33:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:34:06 [end_date_ymd] => 2025-02-06 23:34:06 [RateCDR] => 1 ) [2025-02-06 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-06 20:34:06' and `end` < '2025-02-06 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-06 23:34:19] Production.INFO: count ==800 [2025-02-06 23:34:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:34:06 - End Time 2025-02-06 23:34:06 [2025-02-06 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418430', 'tblTempUsageDetail_20' ) start [2025-02-06 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418430', 'tblTempUsageDetail_20' ) end [2025-02-06 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418430', 'tblTempVendorCDR_20' ) start [2025-02-06 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418430', 'tblTempVendorCDR_20' ) end [2025-02-06 23:34:19] Production.INFO: ProcessCDR(1,14418430,1,1,2) [2025-02-06 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418430', 'tblTempUsageDetail_20' ) start [2025-02-06 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418430', 'tblTempUsageDetail_20' ) end [2025-02-06 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:34:22] Production.INFO: ==4748== Releasing lock... [2025-02-06 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:34:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-06 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:35:05 [end_date_ymd] => 2025-02-06 23:35:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:35:05' and `end` < '2025-02-06 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-06 23:35:19] Production.INFO: count ==796 [2025-02-06 23:35:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:35:05 - End Time 2025-02-06 23:35:05 [2025-02-06 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418435', 'tblTempUsageDetail_20' ) start [2025-02-06 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418435', 'tblTempUsageDetail_20' ) end [2025-02-06 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418435', 'tblTempVendorCDR_20' ) start [2025-02-06 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418435', 'tblTempVendorCDR_20' ) end [2025-02-06 23:35:19] Production.INFO: ProcessCDR(1,14418435,1,1,2) [2025-02-06 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418435', 'tblTempUsageDetail_20' ) start [2025-02-06 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418435', 'tblTempUsageDetail_20' ) end [2025-02-06 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:35:22] Production.INFO: ==4818== Releasing lock... [2025-02-06 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:35:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:36:05 [end_date_ymd] => 2025-02-06 23:36:05 [RateCDR] => 1 ) [2025-02-06 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:36:05' and `end` < '2025-02-06 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:36:21] Production.INFO: count ==796 [2025-02-06 23:36:21] Production.ERROR: pbx CDR StartTime 2025-02-06 20:36:05 - End Time 2025-02-06 23:36:05 [2025-02-06 23:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418440', 'tblTempUsageDetail_20' ) start [2025-02-06 23:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418440', 'tblTempUsageDetail_20' ) end [2025-02-06 23:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418440', 'tblTempVendorCDR_20' ) start [2025-02-06 23:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418440', 'tblTempVendorCDR_20' ) end [2025-02-06 23:36:21] Production.INFO: ProcessCDR(1,14418440,1,1,2) [2025-02-06 23:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418440', 'tblTempUsageDetail_20' ) start [2025-02-06 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418440', 'tblTempUsageDetail_20' ) end [2025-02-06 23:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:36:24] Production.INFO: ==4895== Releasing lock... [2025-02-06 23:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:36:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:37:05 [end_date_ymd] => 2025-02-06 23:37:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:37:05' and `end` < '2025-02-06 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-06 23:37:18] Production.INFO: count ==799 [2025-02-06 23:37:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:37:05 - End Time 2025-02-06 23:37:05 [2025-02-06 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418445', 'tblTempUsageDetail_20' ) start [2025-02-06 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418445', 'tblTempUsageDetail_20' ) end [2025-02-06 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418445', 'tblTempVendorCDR_20' ) start [2025-02-06 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418445', 'tblTempVendorCDR_20' ) end [2025-02-06 23:37:18] Production.INFO: ProcessCDR(1,14418445,1,1,2) [2025-02-06 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418445', 'tblTempUsageDetail_20' ) start [2025-02-06 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418445', 'tblTempUsageDetail_20' ) end [2025-02-06 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:37:21] Production.INFO: ==4966== Releasing lock... [2025-02-06 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:37:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:38:06 [end_date_ymd] => 2025-02-06 23:38:06 [RateCDR] => 1 ) [2025-02-06 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-06 20:38:06' and `end` < '2025-02-06 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-06 23:38:18] Production.INFO: count ==799 [2025-02-06 23:38:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:38:06 - End Time 2025-02-06 23:38:06 [2025-02-06 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418450', 'tblTempUsageDetail_20' ) start [2025-02-06 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418450', 'tblTempUsageDetail_20' ) end [2025-02-06 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418450', 'tblTempVendorCDR_20' ) start [2025-02-06 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418450', 'tblTempVendorCDR_20' ) end [2025-02-06 23:38:19] Production.INFO: ProcessCDR(1,14418450,1,1,2) [2025-02-06 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418450', 'tblTempUsageDetail_20' ) start [2025-02-06 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418450', 'tblTempUsageDetail_20' ) end [2025-02-06 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:38:22] Production.INFO: ==5038== Releasing lock... [2025-02-06 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:39:05 [end_date_ymd] => 2025-02-06 23:39:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:39:05' and `end` < '2025-02-06 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-06 23:39:20] Production.INFO: count ==799 [2025-02-06 23:39:20] Production.ERROR: pbx CDR StartTime 2025-02-06 20:39:05 - End Time 2025-02-06 23:39:05 [2025-02-06 23:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418455', 'tblTempUsageDetail_20' ) start [2025-02-06 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418455', 'tblTempUsageDetail_20' ) end [2025-02-06 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418455', 'tblTempVendorCDR_20' ) start [2025-02-06 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418455', 'tblTempVendorCDR_20' ) end [2025-02-06 23:39:20] Production.INFO: ProcessCDR(1,14418455,1,1,2) [2025-02-06 23:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418455', 'tblTempUsageDetail_20' ) start [2025-02-06 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418455', 'tblTempUsageDetail_20' ) end [2025-02-06 23:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:39:23] Production.INFO: ==5148== Releasing lock... [2025-02-06 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:39:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:40:06 [end_date_ymd] => 2025-02-06 23:40:06 [RateCDR] => 1 ) [2025-02-06 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-06 20:40:06' and `end` < '2025-02-06 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-06 23:40:19] Production.INFO: count ==796 [2025-02-06 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:40:06 - End Time 2025-02-06 23:40:06 [2025-02-06 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418460', 'tblTempUsageDetail_20' ) start [2025-02-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418460', 'tblTempUsageDetail_20' ) end [2025-02-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418460', 'tblTempVendorCDR_20' ) start [2025-02-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418460', 'tblTempVendorCDR_20' ) end [2025-02-06 23:40:19] Production.INFO: ProcessCDR(1,14418460,1,1,2) [2025-02-06 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418460', 'tblTempUsageDetail_20' ) start [2025-02-06 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418460', 'tblTempUsageDetail_20' ) end [2025-02-06 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:40:22] Production.INFO: ==5222== Releasing lock... [2025-02-06 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:40:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 23:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:41:06 [end_date_ymd] => 2025-02-06 23:41:06 [RateCDR] => 1 ) [2025-02-06 23:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:41:06' and `end` < '2025-02-06 23:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:41:20] Production.INFO: count ==761 [2025-02-06 23:41:20] Production.ERROR: pbx CDR StartTime 2025-02-06 20:41:06 - End Time 2025-02-06 23:41:06 [2025-02-06 23:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418466', 'tblTempUsageDetail_20' ) start [2025-02-06 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418466', 'tblTempUsageDetail_20' ) end [2025-02-06 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418466', 'tblTempVendorCDR_20' ) start [2025-02-06 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418466', 'tblTempVendorCDR_20' ) end [2025-02-06 23:41:20] Production.INFO: ProcessCDR(1,14418466,1,1,2) [2025-02-06 23:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418466', 'tblTempUsageDetail_20' ) start [2025-02-06 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418466', 'tblTempUsageDetail_20' ) end [2025-02-06 23:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:41:23] Production.INFO: ==5296== Releasing lock... [2025-02-06 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:41:23] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:42:05 [end_date_ymd] => 2025-02-06 23:42:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:42:05' and `end` < '2025-02-06 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-06 23:42:20] Production.INFO: count ==761 [2025-02-06 23:42:20] Production.ERROR: pbx CDR StartTime 2025-02-06 20:42:05 - End Time 2025-02-06 23:42:05 [2025-02-06 23:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418471', 'tblTempUsageDetail_20' ) start [2025-02-06 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418471', 'tblTempUsageDetail_20' ) end [2025-02-06 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418471', 'tblTempVendorCDR_20' ) start [2025-02-06 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418471', 'tblTempVendorCDR_20' ) end [2025-02-06 23:42:20] Production.INFO: ProcessCDR(1,14418471,1,1,2) [2025-02-06 23:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418471', 'tblTempUsageDetail_20' ) start [2025-02-06 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418471', 'tblTempUsageDetail_20' ) end [2025-02-06 23:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:42:23] Production.INFO: ==5365== Releasing lock... [2025-02-06 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:42:23] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:43:05 [end_date_ymd] => 2025-02-06 23:43:05 [RateCDR] => 1 ) [2025-02-06 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:43:05' and `end` < '2025-02-06 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:43:18] Production.INFO: count ==760 [2025-02-06 23:43:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:43:05 - End Time 2025-02-06 23:43:05 [2025-02-06 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418476', 'tblTempUsageDetail_20' ) start [2025-02-06 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418476', 'tblTempUsageDetail_20' ) end [2025-02-06 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418476', 'tblTempVendorCDR_20' ) start [2025-02-06 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418476', 'tblTempVendorCDR_20' ) end [2025-02-06 23:43:18] Production.INFO: ProcessCDR(1,14418476,1,1,2) [2025-02-06 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418476', 'tblTempUsageDetail_20' ) start [2025-02-06 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418476', 'tblTempUsageDetail_20' ) end [2025-02-06 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:43:22] Production.INFO: ==5435== Releasing lock... [2025-02-06 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:43:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:44:04 [end_date_ymd] => 2025-02-06 23:44:04 [RateCDR] => 1 ) [2025-02-06 23:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:44:04' and `end` < '2025-02-06 23:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:44:19] Production.INFO: count ==762 [2025-02-06 23:44:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:44:04 - End Time 2025-02-06 23:44:04 [2025-02-06 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418481', 'tblTempUsageDetail_20' ) start [2025-02-06 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418481', 'tblTempUsageDetail_20' ) end [2025-02-06 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418481', 'tblTempVendorCDR_20' ) start [2025-02-06 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418481', 'tblTempVendorCDR_20' ) end [2025-02-06 23:44:19] Production.INFO: ProcessCDR(1,14418481,1,1,2) [2025-02-06 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418481', 'tblTempUsageDetail_20' ) start [2025-02-06 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418481', 'tblTempUsageDetail_20' ) end [2025-02-06 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:44:23] Production.INFO: ==5507== Releasing lock... [2025-02-06 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:44:23] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:45:05 [end_date_ymd] => 2025-02-06 23:45:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:45:05' and `end` < '2025-02-06 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-06 23:45:19] Production.INFO: count ==760 [2025-02-06 23:45:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:45:05 - End Time 2025-02-06 23:45:05 [2025-02-06 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418486', 'tblTempUsageDetail_20' ) start [2025-02-06 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418486', 'tblTempUsageDetail_20' ) end [2025-02-06 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418486', 'tblTempVendorCDR_20' ) start [2025-02-06 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418486', 'tblTempVendorCDR_20' ) end [2025-02-06 23:45:19] Production.INFO: ProcessCDR(1,14418486,1,1,2) [2025-02-06 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418486', 'tblTempUsageDetail_20' ) start [2025-02-06 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418486', 'tblTempUsageDetail_20' ) end [2025-02-06 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:45:22] Production.INFO: ==5578== Releasing lock... [2025-02-06 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:45:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:46:05 [end_date_ymd] => 2025-02-06 23:46:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:46:05' and `end` < '2025-02-06 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-06 23:46:18] Production.INFO: count ==760 [2025-02-06 23:46:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:46:05 - End Time 2025-02-06 23:46:05 [2025-02-06 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418491', 'tblTempUsageDetail_20' ) start [2025-02-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418491', 'tblTempUsageDetail_20' ) end [2025-02-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418491', 'tblTempVendorCDR_20' ) start [2025-02-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418491', 'tblTempVendorCDR_20' ) end [2025-02-06 23:46:18] Production.INFO: ProcessCDR(1,14418491,1,1,2) [2025-02-06 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418491', 'tblTempUsageDetail_20' ) start [2025-02-06 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418491', 'tblTempUsageDetail_20' ) end [2025-02-06 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:46:21] Production.INFO: ==5649== Releasing lock... [2025-02-06 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:46:21] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:47:06 [end_date_ymd] => 2025-02-06 23:47:06 [RateCDR] => 1 ) [2025-02-06 23: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-06 20:47:06' and `end` < '2025-02-06 23: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-06 23:47:19] Production.INFO: count ==763 [2025-02-06 23:47:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:47:06 - End Time 2025-02-06 23:47:06 [2025-02-06 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418496', 'tblTempUsageDetail_20' ) start [2025-02-06 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418496', 'tblTempUsageDetail_20' ) end [2025-02-06 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418496', 'tblTempVendorCDR_20' ) start [2025-02-06 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418496', 'tblTempVendorCDR_20' ) end [2025-02-06 23:47:19] Production.INFO: ProcessCDR(1,14418496,1,1,2) [2025-02-06 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418496', 'tblTempUsageDetail_20' ) start [2025-02-06 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418496', 'tblTempUsageDetail_20' ) end [2025-02-06 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:47:22] Production.INFO: ==5722== Releasing lock... [2025-02-06 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:47:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:48:05 [end_date_ymd] => 2025-02-06 23:48:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:48:05' and `end` < '2025-02-06 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-06 23:48:18] Production.INFO: count ==764 [2025-02-06 23:48:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:48:05 - End Time 2025-02-06 23:48:05 [2025-02-06 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418501', 'tblTempUsageDetail_20' ) start [2025-02-06 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418501', 'tblTempUsageDetail_20' ) end [2025-02-06 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418501', 'tblTempVendorCDR_20' ) start [2025-02-06 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418501', 'tblTempVendorCDR_20' ) end [2025-02-06 23:48:18] Production.INFO: ProcessCDR(1,14418501,1,1,2) [2025-02-06 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418501', 'tblTempUsageDetail_20' ) start [2025-02-06 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418501', 'tblTempUsageDetail_20' ) end [2025-02-06 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:48:22] Production.INFO: ==5792== Releasing lock... [2025-02-06 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:48:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:49:05 [end_date_ymd] => 2025-02-06 23:49:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:49:05' and `end` < '2025-02-06 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-06 23:49:18] Production.INFO: count ==765 [2025-02-06 23:49:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:49:05 - End Time 2025-02-06 23:49:05 [2025-02-06 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418506', 'tblTempUsageDetail_20' ) start [2025-02-06 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418506', 'tblTempUsageDetail_20' ) end [2025-02-06 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418506', 'tblTempVendorCDR_20' ) start [2025-02-06 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418506', 'tblTempVendorCDR_20' ) end [2025-02-06 23:49:18] Production.INFO: ProcessCDR(1,14418506,1,1,2) [2025-02-06 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418506', 'tblTempUsageDetail_20' ) start [2025-02-06 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418506', 'tblTempUsageDetail_20' ) end [2025-02-06 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:49:22] Production.INFO: ==5866== Releasing lock... [2025-02-06 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:49:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:50:06 [end_date_ymd] => 2025-02-06 23:50:06 [RateCDR] => 1 ) [2025-02-06 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-06 20:50:06' and `end` < '2025-02-06 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-06 23:50:19] Production.INFO: count ==770 [2025-02-06 23:50:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:50:06 - End Time 2025-02-06 23:50:06 [2025-02-06 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418512', 'tblTempUsageDetail_20' ) start [2025-02-06 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418512', 'tblTempUsageDetail_20' ) end [2025-02-06 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418512', 'tblTempVendorCDR_20' ) start [2025-02-06 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418512', 'tblTempVendorCDR_20' ) end [2025-02-06 23:50:19] Production.INFO: ProcessCDR(1,14418512,1,1,2) [2025-02-06 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418512', 'tblTempUsageDetail_20' ) start [2025-02-06 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418512', 'tblTempUsageDetail_20' ) end [2025-02-06 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:50:24] Production.INFO: ==5939== Releasing lock... [2025-02-06 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:50:24] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:51:05 [end_date_ymd] => 2025-02-06 23:51:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:51:05' and `end` < '2025-02-06 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-06 23:51:21] Production.INFO: count ==785 [2025-02-06 23:51:21] Production.ERROR: pbx CDR StartTime 2025-02-06 20:51:05 - End Time 2025-02-06 23:51:05 [2025-02-06 23:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418517', 'tblTempUsageDetail_20' ) start [2025-02-06 23:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418517', 'tblTempUsageDetail_20' ) end [2025-02-06 23:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418517', 'tblTempVendorCDR_20' ) start [2025-02-06 23:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418517', 'tblTempVendorCDR_20' ) end [2025-02-06 23:51:21] Production.INFO: ProcessCDR(1,14418517,1,1,2) [2025-02-06 23:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418517', 'tblTempUsageDetail_20' ) start [2025-02-06 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418517', 'tblTempUsageDetail_20' ) end [2025-02-06 23:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:51:24] Production.INFO: ==6013== Releasing lock... [2025-02-06 23:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:51:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-06 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:52:06 [end_date_ymd] => 2025-02-06 23:52:06 [RateCDR] => 1 ) [2025-02-06 23:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:52:06' and `end` < '2025-02-06 23:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:52:20] Production.INFO: count ==786 [2025-02-06 23:52:20] Production.ERROR: pbx CDR StartTime 2025-02-06 20:52:06 - End Time 2025-02-06 23:52:06 [2025-02-06 23:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418522', 'tblTempUsageDetail_20' ) start [2025-02-06 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418522', 'tblTempUsageDetail_20' ) end [2025-02-06 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418522', 'tblTempVendorCDR_20' ) start [2025-02-06 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418522', 'tblTempVendorCDR_20' ) end [2025-02-06 23:52:20] Production.INFO: ProcessCDR(1,14418522,1,1,2) [2025-02-06 23:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418522', 'tblTempUsageDetail_20' ) start [2025-02-06 23:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418522', 'tblTempUsageDetail_20' ) end [2025-02-06 23:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:52:25] Production.INFO: ==6082== Releasing lock... [2025-02-06 23:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:52:25] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:53:05 [end_date_ymd] => 2025-02-06 23:53:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:53:05' and `end` < '2025-02-06 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-06 23:53:20] Production.INFO: count ==788 [2025-02-06 23:53:20] Production.ERROR: pbx CDR StartTime 2025-02-06 20:53:05 - End Time 2025-02-06 23:53:05 [2025-02-06 23:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418527', 'tblTempUsageDetail_20' ) start [2025-02-06 23:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418527', 'tblTempUsageDetail_20' ) end [2025-02-06 23:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418527', 'tblTempVendorCDR_20' ) start [2025-02-06 23:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418527', 'tblTempVendorCDR_20' ) end [2025-02-06 23:53:20] Production.INFO: ProcessCDR(1,14418527,1,1,2) [2025-02-06 23:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418527', 'tblTempUsageDetail_20' ) start [2025-02-06 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418527', 'tblTempUsageDetail_20' ) end [2025-02-06 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:53:23] Production.INFO: ==6153== Releasing lock... [2025-02-06 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:53:23] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:54:05 [end_date_ymd] => 2025-02-06 23:54:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:54:05' and `end` < '2025-02-06 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-06 23:54:19] Production.INFO: count ==785 [2025-02-06 23:54:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:54:05 - End Time 2025-02-06 23:54:05 [2025-02-06 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418532', 'tblTempUsageDetail_20' ) start [2025-02-06 23:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418532', 'tblTempUsageDetail_20' ) end [2025-02-06 23:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418532', 'tblTempVendorCDR_20' ) start [2025-02-06 23:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418532', 'tblTempVendorCDR_20' ) end [2025-02-06 23:54:20] Production.INFO: ProcessCDR(1,14418532,1,1,2) [2025-02-06 23:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418532', 'tblTempUsageDetail_20' ) start [2025-02-06 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418532', 'tblTempUsageDetail_20' ) end [2025-02-06 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:54:23] Production.INFO: ==6223== Releasing lock... [2025-02-06 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:54:23] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:55:05 [end_date_ymd] => 2025-02-06 23:55:05 [RateCDR] => 1 ) [2025-02-06 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:55:05' and `end` < '2025-02-06 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-06 23:55:18] Production.INFO: count ==785 [2025-02-06 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:55:05 - End Time 2025-02-06 23:55:05 [2025-02-06 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418537', 'tblTempUsageDetail_20' ) start [2025-02-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418537', 'tblTempUsageDetail_20' ) end [2025-02-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418537', 'tblTempVendorCDR_20' ) start [2025-02-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418537', 'tblTempVendorCDR_20' ) end [2025-02-06 23:55:18] Production.INFO: ProcessCDR(1,14418537,1,1,2) [2025-02-06 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418537', 'tblTempUsageDetail_20' ) start [2025-02-06 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418537', 'tblTempUsageDetail_20' ) end [2025-02-06 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:55:22] Production.INFO: ==6337== Releasing lock... [2025-02-06 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:55:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:56:05 [end_date_ymd] => 2025-02-06 23:56:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:56:05' and `end` < '2025-02-06 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-06 23:56:18] Production.INFO: count ==783 [2025-02-06 23:56:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:56:05 - End Time 2025-02-06 23:56:05 [2025-02-06 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418542', 'tblTempUsageDetail_20' ) start [2025-02-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418542', 'tblTempUsageDetail_20' ) end [2025-02-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418542', 'tblTempVendorCDR_20' ) start [2025-02-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418542', 'tblTempVendorCDR_20' ) end [2025-02-06 23:56:18] Production.INFO: ProcessCDR(1,14418542,1,1,2) [2025-02-06 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418542', 'tblTempUsageDetail_20' ) start [2025-02-06 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418542', 'tblTempUsageDetail_20' ) end [2025-02-06 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:56:21] Production.INFO: ==6407== Releasing lock... [2025-02-06 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:56:21] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:57:05 [end_date_ymd] => 2025-02-06 23:57:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:57:05' and `end` < '2025-02-06 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-06 23:57:18] Production.INFO: count ==779 [2025-02-06 23:57:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:57:05 - End Time 2025-02-06 23:57:05 [2025-02-06 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418547', 'tblTempUsageDetail_20' ) start [2025-02-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418547', 'tblTempUsageDetail_20' ) end [2025-02-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418547', 'tblTempVendorCDR_20' ) start [2025-02-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418547', 'tblTempVendorCDR_20' ) end [2025-02-06 23:57:18] Production.INFO: ProcessCDR(1,14418547,1,1,2) [2025-02-06 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418547', 'tblTempUsageDetail_20' ) start [2025-02-06 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418547', 'tblTempUsageDetail_20' ) end [2025-02-06 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:57:21] Production.INFO: ==6479== Releasing lock... [2025-02-06 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:57:21] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:58:05 [end_date_ymd] => 2025-02-06 23:58:05 [RateCDR] => 1 ) [2025-02-06 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 20:58:05' and `end` < '2025-02-06 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-06 23:58:18] Production.INFO: count ==781 [2025-02-06 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-06 20:58:05 - End Time 2025-02-06 23:58:05 [2025-02-06 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418552', 'tblTempUsageDetail_20' ) start [2025-02-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418552', 'tblTempUsageDetail_20' ) end [2025-02-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418552', 'tblTempVendorCDR_20' ) start [2025-02-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418552', 'tblTempVendorCDR_20' ) end [2025-02-06 23:58:18] Production.INFO: ProcessCDR(1,14418552,1,1,2) [2025-02-06 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418552', 'tblTempUsageDetail_20' ) start [2025-02-06 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418552', 'tblTempUsageDetail_20' ) end [2025-02-06 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:58:22] Production.INFO: ==6551== Releasing lock... [2025-02-06 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:58:22] Production.INFO: 33 MB #Memory Used# [2025-02-06 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 20:59:05 [end_date_ymd] => 2025-02-06 23:59:05 [RateCDR] => 1 ) [2025-02-06 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-06 20:59:05' and `end` < '2025-02-06 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-06 23:59:18] Production.INFO: count ==781 [2025-02-06 23:59:19] Production.ERROR: pbx CDR StartTime 2025-02-06 20:59:05 - End Time 2025-02-06 23:59:05 [2025-02-06 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-06 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418557', 'tblTempUsageDetail_20' ) start [2025-02-06 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418557', 'tblTempUsageDetail_20' ) end [2025-02-06 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418557', 'tblTempVendorCDR_20' ) start [2025-02-06 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418557', 'tblTempVendorCDR_20' ) end [2025-02-06 23:59:19] Production.INFO: ProcessCDR(1,14418557,1,1,2) [2025-02-06 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-06 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-06 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418557', 'tblTempUsageDetail_20' ) start [2025-02-06 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418557', 'tblTempUsageDetail_20' ) end [2025-02-06 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-06 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-06 23:59:22] Production.INFO: ==6620== Releasing lock... [2025-02-06 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-06 23:59:22] Production.INFO: 33 MB #Memory Used#